1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-29 14:17:11 +02:00
Fixing #1149
This commit is contained in:
Chris Aljoudi 2015-04-07 00:40:45 -06:00
commit 6c877ee06a
2 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,12 @@ function startup(data, reason) {
}
let hiddenDoc = appShell.hiddenDOMWindow.document;
if ( hiddenDoc.readyState === 'loading' ) {
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
return;
}
bgProcess = hiddenDoc.documentElement.appendChild(
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
);

View File

@ -65,7 +65,7 @@ vAPI.app.restart = function() {
var cleanupTasks = [];
// This must be updated manually, every time a new task is added/removed
var expectedNumberOfCleanups = 7;
var expectedNumberOfCleanups = 6; // 7 instances of cleanupTasks.push, but one is unique to fennec, and one to desktop.
window.addEventListener('unload', function() {
for ( var cleanup of cleanupTasks ) {