mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1857430, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192370
This commit is contained in:
parent
b79adce429
commit
603405aa9b
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user