Bug 968480 - addon-page testaddon: TypeError: document.defaultView is null