зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1394520 - [2.1] Add support for external URI loading with e10s in GeckoView. r=snorp
This commit is contained in:
Родитель
fbf9ec3f92
Коммит
fd55cf9695
|
@ -129,35 +129,45 @@ class GeckoViewNavigation extends GeckoViewModule {
|
|||
throw Cr.NS_ERROR_ABORT;
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow::openURI implementation.
|
||||
openURI(aUri, aOpener, aWhere, aFlags, aTriggeringPrincipal) {
|
||||
return this.createContentWindow(aUri, aOpener, aWhere, aFlags,
|
||||
aTriggeringPrincipal);
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow::openURIInFrame implementation.
|
||||
openURIInFrame(aUri, aParams, aWhere, aFlags, aNextTabParentId, aName) {
|
||||
debug("openURIInFrame: aUri=" + (aUri && aUri.spec) +
|
||||
// nsIBrowserDOMWindow.
|
||||
createContentWindowInFrame(aUri, aParams, aWhere, aFlags, aNextTabParentId,
|
||||
aName) {
|
||||
debug("createContentWindowInFrame: aUri=" + (aUri && aUri.spec) +
|
||||
" aParams=" + aParams +
|
||||
" aWhere=" + aWhere +
|
||||
" aFlags=" + aFlags +
|
||||
" aNextTabParentId=" + aNextTabParentId +
|
||||
" aName=" + aName);
|
||||
|
||||
if (aWhere === Ci.nsIBrowserDOMWindow.OPEN_DEFAULTWINDOW ||
|
||||
aWhere === Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW) {
|
||||
let handled = this.handleLoadUri(aUri, null, aWhere, aFlags, null);
|
||||
if (!handled &&
|
||||
(aWhere === Ci.nsIBrowserDOMWindow.OPEN_DEFAULTWINDOW ||
|
||||
aWhere === Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW)) {
|
||||
return this.browser;
|
||||
}
|
||||
|
||||
throw Cr.NS_ERROR_ABORT;
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow.
|
||||
openURI(aUri, aOpener, aWhere, aFlags, aTriggeringPrincipal) {
|
||||
return this.createContentWindow(aUri, aOpener, aWhere, aFlags,
|
||||
aTriggeringPrincipal);
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow.
|
||||
openURIInFrame(aUri, aParams, aWhere, aFlags, aNextTabParentId, aName) {
|
||||
return this.createContentWindowInFrame(aUri, aParams, aWhere, aFlags,
|
||||
aNextTabParentId, aName);
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow.
|
||||
isTabContentWindow(aWindow) {
|
||||
debug("isTabContentWindow " + this.browser.contentWindow === aWindow);
|
||||
return this.browser.contentWindow === aWindow;
|
||||
}
|
||||
|
||||
// nsIBrowserDOMWindow::canClose implementation.
|
||||
// nsIBrowserDOMWindow.
|
||||
canClose() {
|
||||
debug("canClose");
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче