Bug 1866661, r=hjones,reusable-components-reviewers,Gijs

Differential Revision: https://phabricator.services.mozilla.com/D235457
This commit is contained in:
Emma Zuehlcke
2025-02-04 14:26:29 +00:00
parent 6bb4358a74
commit c4bd8080a9
3 changed files with 132 additions and 8 deletions

View File

@@ -156,6 +156,12 @@
"browser.tabs.unloadTabInContextMenu",
false
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
"_notificationEnableDelay",
"security.notification_enable_delay",
500
);
if (AppConstants.MOZ_CRASHREPORTER) {
ChromeUtils.defineESModuleGetters(this, {
@@ -908,7 +914,7 @@
if (browser == this.selectedBrowser) {
this._updateVisibleNotificationBox(browser);
}
});
}, this._notificationEnableDelay);
}
return browser._notificationBox;
}