From dba07065a9a9543f772dd98ff3d3358e72ce3c32 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Tue, 18 Dec 2018 22:04:23 +0100 Subject: [PATCH] first batch to transition nsIDOMWindow to nsPIDOMWindow at about TenFourFox level --- docshell/base/nsDSURIContentListener.cpp | 5 +- docshell/base/nsDocShell.cpp | 27 ++- dom/base/ThirdPartyUtil.cpp | 19 +- dom/base/nsContentUtils.cpp | 9 +- dom/base/nsContentUtils.h | 2 +- dom/base/nsDocument.cpp | 14 +- dom/base/nsGlobalWindow.cpp | 180 +++++++++---------- dom/base/nsGlobalWindow.h | 51 +++--- dom/base/nsObjectLoadingContent.cpp | 13 +- dom/base/nsPIDOMWindow.h | 17 ++ dom/base/nsWindowMemoryReporter.cpp | 6 +- dom/base/nsXMLHttpRequest.cpp | 3 +- dom/browser-element/BrowserElementParent.cpp | 6 +- dom/events/EventStateManager.cpp | 16 +- dom/html/nsGenericHTMLElement.cpp | 6 +- dom/interfaces/base/nsIDOMWindow.idl | 57 ------ dom/plugins/base/nsPluginInstanceOwner.cpp | 7 +- uriloader/base/nsDocLoader.cpp | 5 +- 18 files changed, 181 insertions(+), 262 deletions(-) diff --git a/docshell/base/nsDSURIContentListener.cpp b/docshell/base/nsDSURIContentListener.cpp index e72bdf49ccd..d0f65b63029 100755 --- a/docshell/base/nsDSURIContentListener.cpp +++ b/docshell/base/nsDSURIContentListener.cpp @@ -307,7 +307,7 @@ nsDSURIContentListener::CheckOneFrameOptionsPolicy(nsIHttpChannel* aHttpChannel, // window, if we're not the top. X-F-O: SAMEORIGIN requires that the // document must be same-origin with top window. X-F-O: DENY requires that // the document must never be framed. - nsCOMPtr thisWindow = mDocShell->GetWindow(); + nsCOMPtr thisWindow = mDocShell->GetWindow(); // If we don't have DOMWindow there is no risk of clickjacking if (!thisWindow) { return true; @@ -315,8 +315,7 @@ nsDSURIContentListener::CheckOneFrameOptionsPolicy(nsIHttpChannel* aHttpChannel, // GetScriptableTop, not GetTop, because we want this to respect //