Bug 1653000 - Declare WindowGlobalInit and SyncedContextInitializer uncomparable and remove unused equality operators. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D84299
This commit is contained in:
Simon Giesecke 2020-07-22 11:48:11 +00:00
Родитель d824054ce7
Коммит 3d27322bc3
4 изменённых файлов: 2 добавлений и 19 удалений

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

@ -610,16 +610,6 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
uint64_t mRequestContextId = 0;
FieldTuple mFields;
bool operator==(const IPCInitializer& aOther) const {
return mId == aOther.mId && mParentId == aOther.mParentId &&
mWindowless == aOther.mWindowless &&
mUseRemoteTabs == aOther.mUseRemoteTabs &&
mUseRemoteSubframes == aOther.mUseRemoteSubframes &&
mOriginAttributes == aOther.mOriginAttributes &&
mRequestContextId == aOther.mRequestContextId &&
mFields == aOther.mFields;
}
};
// Create an IPCInitializer object for this BrowsingContext.

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

@ -99,13 +99,6 @@ class WindowContext : public nsISupports, public nsWrapperCache {
uint64_t mBrowsingContextId;
FieldTuple mFields;
bool operator==(const IPCInitializer& aOther) const {
return mInnerWindowId == aOther.mInnerWindowId &&
mOuterWindowId == aOther.mOuterWindowId &&
mBrowsingContextId == aOther.mBrowsingContextId &&
mFields == aOther.mFields;
}
};
IPCInitializer GetIPCInitializer();

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

@ -374,7 +374,7 @@ struct KeyValuePair
nsString value;
};
union SyncedContextInitializer
uncomparable union SyncedContextInitializer
{
BrowsingContextInitializer;
WindowContextInitializer;

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

@ -15,7 +15,7 @@ using refcounted class nsITransportSecurityInfo from "nsITransportSecurityInfo.h
namespace mozilla {
namespace dom {
struct WindowGlobalInit
uncomparable struct WindowGlobalInit
{
// Fields which are synchronized to other processes are found here.
WindowContextInitializer context;