Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2669
This commit is contained in:
@@ -118,9 +118,8 @@ class ContentPage {
|
||||
|
||||
let system = Services.scriptSecurityManager.getSystemPrincipal();
|
||||
|
||||
let chromeShell = this.windowlessBrowser.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDocShell)
|
||||
.QueryInterface(Ci.nsIWebNavigation);
|
||||
let chromeShell = this.windowlessBrowser.docShell
|
||||
.QueryInterface(Ci.nsIWebNavigation);
|
||||
|
||||
chromeShell.createAboutBlankContentViewer(system);
|
||||
chromeShell.useGlobalHistory = false;
|
||||
|
||||
Reference in New Issue
Block a user