Backed out 3 changesets (bug 1496220) for browser_e10s_switchbrowser.js and test_findbar.xul failures CLOSED TREE

Backed out changeset 70505741627f (bug 1496220)
Backed out changeset daf7ced3bbcc (bug 1496220)
Backed out changeset abf2e04e30e4 (bug 1496220)
This commit is contained in:
Ciure Andrei 2018-10-11 01:03:27 +03:00
Родитель 446b765bc6
Коммит 74d2eeef4c
4 изменённых файлов: 6 добавлений и 22 удалений

Просмотреть файл

@ -43,8 +43,7 @@ Bug 1201597 - Sanity test that we can take a heap snapshot in an e10s child proc
"set": [
["dom.ipc.browser_frames.oop_by_default", true],
["dom.mozBrowserFramesEnabled", true],
["browser.pagethumbnails.capturing_disabled", true],
["network.disable.ipc.security", true],
["browser.pagethumbnails.capturing_disabled", true]
]
}, function() {
const iframe = document.createElement("iframe");

Просмотреть файл

@ -2,6 +2,6 @@
<head><title>Hello, world!</title></head>
<body>
<a id="targetBlankLink" target="_blank" href="newSession_child.html">target="_blank"</a>
<a id="noOpenerLink" target="_blank" rel="noopener" href="http://example.com">rel="noopener"</a>
<a id="noOpenerLink" target="_blank" rel="noopener" href="newSession_child.html">rel="noopener"</a>
</body>
</html>

Просмотреть файл

@ -73,25 +73,9 @@ class GeckoViewNavigation extends GeckoViewModule {
navFlags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_POPUPS;
}
let parsedUri;
let triggeringPrincipal;
try {
parsedUri = Services.io.newURI(uri);
if (parsedUri.schemeIs("about") || parsedUri.schemeIs("data") ||
parsedUri.schemeIs("file") || parsedUri.schemeIs("resource")) {
// Only allow privileged loading for certain URIs.
triggeringPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
}
} catch (ignored) {
}
if (!triggeringPrincipal) {
triggeringPrincipal = Services.scriptSecurityManager.createNullPrincipal({});
}
this.browser.loadURI(parsedUri ? parsedUri.spec : uri, {
this.browser.loadURI(uri, {
flags: navFlags,
referrerURI: referrer,
triggeringPrincipal,
});
break;
case "GeckoView:Reload":

Просмотреть файл

@ -105,8 +105,9 @@ RemoteWebNavigation.prototype = {
postData: aPostData ? Utils.serializeInputStream(aPostData) : null,
headers: aHeaders ? Utils.serializeInputStream(aHeaders) : null,
baseURI: aBaseURI ? aBaseURI.spec : null,
triggeringPrincipal: Utils.serializePrincipal(
aTriggeringPrincipal || Services.scriptSecurityManager.createNullPrincipal({})),
triggeringPrincipal: aTriggeringPrincipal
? Utils.serializePrincipal(aTriggeringPrincipal)
: Services.scriptSecurityManager.createNullPrincipal({}),
requestTime: Services.telemetry.msSystemNow(),
});
},