Bug 1643488 - Remove dead nsDocShell::mFullscreenAllowed. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D78385
This commit is contained in:
Emilio Cobos Álvarez
2020-06-04 20:41:29 +00:00
parent 4e11ef0fc7
commit 653cc0078a
2 changed files with 0 additions and 27 deletions

View File

@@ -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;