зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1616353 - Part 1: Remove unused aIsPreallocated flag from NotifyTabContextUpdated, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D67040 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e2b211270f
Коммит
bf755bc6c4
|
@ -501,7 +501,7 @@ nsresult BrowserChild::Init(mozIDOMWindowProxy* aParent,
|
|||
NS_ASSERTION(mWebNav, "nsWebBrowser doesn't implement nsIWebNavigation?");
|
||||
|
||||
// Set the tab context attributes then pass to docShell
|
||||
NotifyTabContextUpdated(false);
|
||||
NotifyTabContextUpdated();
|
||||
|
||||
// IPC uses a WebBrowser object for which DNS prefetching is turned off
|
||||
// by default. But here we really want it, so enable it explicitly
|
||||
|
@ -584,7 +584,7 @@ nsresult BrowserChild::Init(mozIDOMWindowProxy* aParent,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void BrowserChild::NotifyTabContextUpdated(bool aIsPreallocated) {
|
||||
void BrowserChild::NotifyTabContextUpdated() {
|
||||
nsCOMPtr<nsIDocShell> docShell = do_GetInterface(WebNavigation());
|
||||
MOZ_ASSERT(docShell);
|
||||
|
||||
|
@ -594,10 +594,6 @@ void BrowserChild::NotifyTabContextUpdated(bool aIsPreallocated) {
|
|||
|
||||
UpdateFrameType();
|
||||
|
||||
if (aIsPreallocated) {
|
||||
nsDocShell::Cast(docShell)->SetOriginAttributes(OriginAttributesRef());
|
||||
}
|
||||
|
||||
// Set SANDBOXED_AUXILIARY_NAVIGATION flag if this is a receiver page.
|
||||
if (!PresentationURL().IsEmpty()) {
|
||||
mBrowsingContext->SetSandboxFlags(SANDBOXED_AUXILIARY_NAVIGATION);
|
||||
|
|
|
@ -775,9 +775,7 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
|
|||
//
|
||||
// You should call this after calling TabContext::SetTabContext(). We also
|
||||
// call this during Init().
|
||||
//
|
||||
// @param aIsPreallocated true if this is called for Preallocated Tab.
|
||||
void NotifyTabContextUpdated(bool aIsPreallocated);
|
||||
void NotifyTabContextUpdated();
|
||||
|
||||
// Update the frameType on our docshell.
|
||||
void UpdateFrameType();
|
||||
|
|
Загрузка…
Ссылка в новой задаче