Bug 1857430, r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D192370
This commit is contained in:
Paul Zuehlcke 2023-11-07 10:46:42 +00:00
parent b79adce429
commit 603405aa9b

View File

@ -6,6 +6,8 @@
// This file is loaded into the browser window scope.
/* eslint-env mozilla/browser-window */
const FS_PERM_PROMPT_TIME_SHOWN_OFFSET_MS = 2000;
var PointerlockFsWarning = {
_element: null,
_origin: null,
@ -476,6 +478,11 @@ var FullScreen = {
this._permissionNotificationIDs
).filter(n => !n.dismissed).length
) {
if (PopupNotifications.panel.firstChild) {
PopupNotifications.panel.firstChild.notification.timeShown +=
FS_PERM_PROMPT_TIME_SHOWN_OFFSET_MS;
}
this.exitDomFullScreen();
this._logWarningPermissionPromptFS("fullScreenCanceled");
}