replace extension.getBackgroundPage() with runtime.getBackgroundPage()