зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435615 - Reuse the same process when loading URIs on about:newtab when requests have POST data. r=mconley
MozReview-Commit-ID: 201VupYACvX --HG-- extra : rebase_source : 724f0dcf4331db4862e1ff7f5467b64615adb5ff
This commit is contained in:
Родитель
3680eea14f
Коммит
8a52412213
|
@ -237,11 +237,15 @@ var E10SUtils = {
|
|||
this.getRemoteTypeForURIObject(aURI, true, remoteType, webNav.currentURI);
|
||||
}
|
||||
|
||||
if (sessionHistory.count == 1 && webNav.currentURI.spec == "about:newtab") {
|
||||
if (!aHasPostData &&
|
||||
Services.appinfo.remoteType == WEB_REMOTE_TYPE &&
|
||||
sessionHistory.count == 1 &&
|
||||
webNav.currentURI.spec == "about:newtab") {
|
||||
// This is possibly a preloaded browser and we're about to navigate away for
|
||||
// the first time. On the child side there is no way to tell for sure if that
|
||||
// is the case, so let's redirect this request to the parent to decide if a new
|
||||
// process is needed.
|
||||
// process is needed. But we don't currently properly handle POST data in
|
||||
// redirects (bug 1457520), so if there is POST data, don't return false here.
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче