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:
Boris Zbarsky
2018-08-03 00:05:07 +00:00
parent 6460a97414
commit 2ffdfa654d
20 changed files with 80 additions and 81 deletions

View File

@@ -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;