зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1617063 - Part 1: Remove duplicate InnerWindowId and OuterWindowId fields from WindowGlobalParent, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64223 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5d3acf0d14
Коммит
09ea5ff76e
|
@ -29,6 +29,7 @@ class WindowContext : public nsISupports, public nsWrapperCache {
|
|||
BrowsingContextGroup* Group() const;
|
||||
uint64_t Id() const { return InnerWindowId(); }
|
||||
uint64_t InnerWindowId() const { return mInnerWindowId; }
|
||||
uint64_t OuterWindowId() const { return GetOuterWindowId(); }
|
||||
bool IsDiscarded() const { return mIsDiscarded; }
|
||||
|
||||
// Cast this object to it's parent-process canonical form.
|
||||
|
|
|
@ -53,8 +53,6 @@ WindowGlobalParent::WindowGlobalParent(const WindowGlobalInit& aInit,
|
|||
: WindowContext(aInit.browsingContext().get(), aInit.innerWindowId(), {}),
|
||||
mDocumentPrincipal(aInit.principal()),
|
||||
mDocumentURI(aInit.documentURI()),
|
||||
mInnerWindowId(aInit.innerWindowId()),
|
||||
mOuterWindowId(aInit.outerWindowId()),
|
||||
mInProcess(aInProcess),
|
||||
mIsInitialDocument(false),
|
||||
mHasBeforeUnload(false) {
|
||||
|
|
|
@ -102,10 +102,6 @@ class WindowGlobalParent final : public WindowContext,
|
|||
|
||||
const nsString& GetDocumentTitle() const { return mDocumentTitle; }
|
||||
|
||||
// Window IDs for inner/outer windows.
|
||||
uint64_t OuterWindowId() { return mOuterWindowId; }
|
||||
uint64_t InnerWindowId() { return mInnerWindowId; }
|
||||
|
||||
uint64_t ContentParentId();
|
||||
|
||||
int32_t OsPid();
|
||||
|
@ -196,8 +192,6 @@ class WindowGlobalParent final : public WindowContext,
|
|||
|
||||
RefPtr<CanonicalBrowsingContext> mBrowsingContext;
|
||||
nsRefPtrHashtable<nsStringHashKey, JSWindowActorParent> mWindowActors;
|
||||
uint64_t mInnerWindowId;
|
||||
uint64_t mOuterWindowId;
|
||||
bool mInProcess;
|
||||
bool mIsInitialDocument;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче