bool TabContext::UpdateTabContextAfterSwap(const TabContext& aContext) { // This is only used after already initialized. MOZ_ASSERT(mInitialized); // The only permissable change is to `mIsMozBrowserElement`. All other fields // must match for the change to be accepted. if (aContext.OwnAppId() != OwnAppId() || aContext.mContainingAppId != mContainingAppId || aContext.mOriginAttributes != mOriginAttributes || aContext.mSignedPkgOriginNoSuffix != mSignedPkgOriginNoSuffix) { return false; } mIsMozBrowserElement = aContext.mIsMozBrowserElement; return true; }
already_AddRefed<mozIApplication> TabContext::GetOwnApp() const { return GetAppForId(OwnAppId()); }