mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1239822: Part 2b - Destroy windowless browsers created for add-on SDK page workers.
--HG-- extra : commitid : 3U6icHHS9Cn extra : rebase_source : 116b75f5beec9fab22ca7aac8542111a830875fa
This commit is contained in:
parent
2f5c8d953a
commit
edebd593de
@ -57,6 +57,7 @@ const ChildPage = Class({
|
||||
dispose: function() {
|
||||
pages.delete(this.id);
|
||||
this.webProgress.removeProgressListener(this);
|
||||
this.webNav.close();
|
||||
this.webNav = null;
|
||||
},
|
||||
|
||||
|
@ -55,9 +55,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=565388
|
||||
|
||||
var systemPrincipal = Cc["@mozilla.org/systemprincipal;1"].
|
||||
createInstance(Ci.nsIPrincipal);
|
||||
var docShell = Cc["@mozilla.org/appshell/appShellService;1"].
|
||||
var webNav = Cc["@mozilla.org/appshell/appShellService;1"].
|
||||
getService(Ci.nsIAppShellService).
|
||||
createWindowlessBrowser(true).
|
||||
createWindowlessBrowser(true);
|
||||
var docShell = webNav.
|
||||
QueryInterface(Ci.nsIInterfaceRequestor).
|
||||
getInterface(Ci.nsIDocShell);
|
||||
docShell.createAboutBlankContentViewer(systemPrincipal);
|
||||
@ -65,6 +66,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=565388
|
||||
|
||||
progressListener.add(docShell, function(){
|
||||
is(win.document.documentURI, "data:application/vnd.mozilla.xul+xml;charset=utf-8,<window/>");
|
||||
webNav.close();
|
||||
SimpleTest.finish();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user