mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1643488 - Remove dead nsDocShell::mFullscreenAllowed. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D78385
This commit is contained in:
parent
525a47b947
commit
38b1a0ca2d
@ -364,7 +364,6 @@ nsDocShell::nsDocShell(BrowsingContext* aBrowsingContext,
|
||||
mJSRunToCompletionDepth(0),
|
||||
mTouchEventsOverride(nsIDocShell::TOUCHEVENTS_OVERRIDE_NONE),
|
||||
mMetaViewportOverride(nsIDocShell::META_VIEWPORT_OVERRIDE_NONE),
|
||||
mFullscreenAllowed(CHECK_ATTRIBUTES),
|
||||
mCreatingDocument(false),
|
||||
#ifdef DEBUG
|
||||
mInEnsureScriptEnv(false),
|
||||
@ -1747,13 +1746,6 @@ NS_IMETHODIMP
|
||||
nsDocShell::GetFullscreenAllowed(bool* aFullscreenAllowed) {
|
||||
NS_ENSURE_ARG_POINTER(aFullscreenAllowed);
|
||||
|
||||
// Browsers and apps have their mFullscreenAllowed retrieved from their
|
||||
// corresponding iframe in their parent upon creation.
|
||||
if (mFullscreenAllowed != CHECK_ATTRIBUTES) {
|
||||
*aFullscreenAllowed = (mFullscreenAllowed == PARENT_ALLOWS);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Assume false until we determine otherwise...
|
||||
*aFullscreenAllowed = false;
|
||||
|
||||
|
@ -1228,25 +1228,6 @@ class nsDocShell final : public nsDocLoader,
|
||||
// Possible values are defined as constants in nsIDocShell.idl.
|
||||
MetaViewportOverride mMetaViewportOverride;
|
||||
|
||||
// mFullscreenAllowed stores how we determine whether fullscreen is allowed
|
||||
// when GetFullscreenAllowed() is called. Fullscreen is allowed in a
|
||||
// docshell when all containing iframes have the allowfullscreen
|
||||
// attribute set to true. When mFullscreenAllowed is CHECK_ATTRIBUTES
|
||||
// we check this docshell's containing frame for the allowfullscreen
|
||||
// attribute, and recurse onto the parent docshell to ensure all containing
|
||||
// frames also have the allowfullscreen attribute. If we find an ancestor
|
||||
// docshell with mFullscreenAllowed not equal to CHECK_ATTRIBUTES, we've
|
||||
// reached a content boundary, and mFullscreenAllowed denotes whether the
|
||||
// parent across the content boundary has allowfullscreen=true in all its
|
||||
// containing iframes. mFullscreenAllowed defaults to CHECK_ATTRIBUTES and
|
||||
// is set otherwise when docshells which are content boundaries are created.
|
||||
enum FullscreenAllowedState : uint8_t {
|
||||
CHECK_ATTRIBUTES,
|
||||
PARENT_ALLOWS,
|
||||
PARENT_PROHIBITS
|
||||
};
|
||||
FullscreenAllowedState mFullscreenAllowed;
|
||||
|
||||
// The following two fields cannot be declared as bit fields
|
||||
// because of uses with AutoRestore.
|
||||
bool mCreatingDocument; // (should be) debugging only
|
||||
|
Loading…
Reference in New Issue
Block a user