fune/browser/base/content/fullscreen-and-pointerlock.inc.xhtml
Edgar Chen 702158715c Bug 1821884 - Ensure consistent state for fullscreen/pointerlock warnings; r=Gijs
Fullscreen/PointerLock warnings are initialized with hidden="true", but
change to hidden="" after being shown and hidden again. I think this
started happening when we began using HTML elements instead of XUL as
they handle hidden attribute differently.

Differential Revision: https://phabricator.services.mozilla.com/D177790
2023-06-08 08:56:51 +00:00

30 lines
1.3 KiB
HTML

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<html:div id="fullscreen-and-pointerlock-wrapper">
<html:div id="fullscreen-warning" class="pointerlockfswarning" hidden="">
<html:div class="pointerlockfswarning-domain-text">
<html:span class="pointerlockfswarning-domain" data-l10n-name="domain"/>
</html:div>
<html:div class="pointerlockfswarning-generic-text"
data-l10n-id="fullscreen-warning-no-domain"></html:div>
<html:button id="fullscreen-exit-button"
onclick="FullScreen.exitDomFullScreen();"
#ifdef XP_MACOSX
data-l10n-id="fullscreen-exit-mac-button"
#else
data-l10n-id="fullscreen-exit-button"
#endif
>
</html:button>
</html:div>
<html:div id="pointerlock-warning" class="pointerlockfswarning" hidden="">
<html:div class="pointerlockfswarning-domain-text">
<html:span class="pointerlockfswarning-domain" data-l10n-name="domain"/>
</html:div>
<html:div class="pointerlockfswarning-generic-text"
data-l10n-id="pointerlock-warning-no-domain"></html:div>
</html:div>
</html:div>