Firefox is weird and doesn't have window available in the background page.