Bug 1865914 - Part 3, r=Gijs,edgar

Differential Revision: https://phabricator.services.mozilla.com/D194886
This commit is contained in:
Paul Zuehlcke
2023-12-01 21:22:41 +00:00
parent ea29db3c09
commit 2d4274179b
7 changed files with 76 additions and 7 deletions

View File

@@ -6,8 +6,6 @@
// 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,
@@ -475,11 +473,6 @@ 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");
}