Bug 1239822: Part 2a - [webext] Explicitly destroy windowless browsers on unload. r=billm

This commit is contained in:
Kris Maglione 2016-01-15 13:30:15 -08:00
parent 46940815b2
commit f965c5ec6f
3 changed files with 5 additions and 0 deletions

View File

@ -40,4 +40,6 @@ add_task(function* test_windowlessBrowserTroubleshootCrash() {
});
ok(data.graphics.windowLayerManagerType !== "None", "windowless browser window should not set windowLayerManagerType to 'None'");
webNav.close();
});

View File

@ -104,6 +104,7 @@ BackgroundPage.prototype = {
this.webNav = null;
this.chromeWebNav.loadURI("about:blank", 0, null, null, null);
this.chromeWebNav.close();
this.chromeWebNav = null;
},
};

View File

@ -59,6 +59,8 @@ function testWindowlessBrowser(chromePrivileged) {
}
ok(!exception, "window.external.AddSearchProvider should be ignore withour raising an exception");
webNav.close();
}
info("Test Bug 1214174 on a content privileged windowless browser");