зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset eaee8979fdc4 (bug 1594529) for Browser-chrome in toolkit/components/passwordmgr/test/browser/browser_doorhanger_crossframe.js. CLOSED TREE
This commit is contained in:
Родитель
6df4c46d72
Коммит
514f02d734
|
@ -388,6 +388,7 @@ nsDocShell::nsDocShell(BrowsingContext* aBrowsingContext,
|
|||
mHasLoadedNonBlankURI(false),
|
||||
mBlankTiming(false),
|
||||
mTitleValidForCurrentURI(false),
|
||||
mIsFrame(false),
|
||||
mSkipBrowsingContextDetachOnDestroy(false),
|
||||
mWatchedByDevtools(false),
|
||||
mIsNavigating(false) {
|
||||
|
@ -12087,6 +12088,8 @@ nsresult nsDocShell::EnsureFind() {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
bool nsDocShell::IsFrame() { return mIsFrame; }
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::IsBeingDestroyed(bool* aDoomed) {
|
||||
NS_ENSURE_ARG(aDoomed);
|
||||
|
|
|
@ -348,6 +348,8 @@ class nsDocShell final : public nsDocLoader,
|
|||
void SetInFrameSwap(bool aInSwap) { mInFrameSwap = aInSwap; }
|
||||
bool InFrameSwap();
|
||||
|
||||
void SetIsFrame() { mIsFrame = true; };
|
||||
|
||||
const mozilla::Encoding* GetForcedCharset() { return mForcedCharset; }
|
||||
|
||||
mozilla::HTMLEditor* GetHTMLEditorInternal();
|
||||
|
@ -969,7 +971,7 @@ class nsDocShell final : public nsDocLoader,
|
|||
void RecomputeCanExecuteScripts();
|
||||
void ClearFrameHistory(nsISHEntry* aEntry);
|
||||
void UpdateGlobalHistoryTitle(nsIURI* aURI);
|
||||
bool IsFrame() { return mBrowsingContext->GetParent(); }
|
||||
bool IsFrame();
|
||||
bool CanSetOriginAttributes();
|
||||
bool ShouldBlockLoadingForBackButton();
|
||||
bool ShouldDiscardLayoutState(nsIHttpChannel* aChannel);
|
||||
|
@ -1328,6 +1330,8 @@ class nsDocShell final : public nsDocLoader,
|
|||
// This flag indicates when the title is valid for the current URI.
|
||||
bool mTitleValidForCurrentURI : 1;
|
||||
|
||||
bool mIsFrame : 1;
|
||||
|
||||
// If mSkipBrowsingContextDetachOnDestroy is set to true, then when the
|
||||
// docshell is destroyed, the browsing context will not be detached. This is
|
||||
// for cases where we want to preserve the BC for future use.
|
||||
|
|
|
@ -2133,6 +2133,8 @@ nsresult nsFrameLoader::MaybeCreateDocShell() {
|
|||
|
||||
if (OwnerIsMozBrowserFrame()) {
|
||||
docShell->SetFrameType(nsIDocShell::FRAME_TYPE_BROWSER);
|
||||
} else if (mBrowsingContext->GetParent()) {
|
||||
docShell->SetIsFrame();
|
||||
}
|
||||
|
||||
// Apply sandbox flags even if our owner is not an iframe, as this copies
|
||||
|
|
Загрузка…
Ссылка в новой задаче