Bug 1320361 - Make PopupNotifications panels noautohide by default. r=past
MozReview-Commit-ID: vb2xTvyLHJ
--- a/browser/base/content/popup-notifications.inc
+++ b/browser/base/content/popup-notifications.inc
@@ -1,16 +1,17 @@
# to be included inside a popupset element
<panel id="notification-popup"
type="arrow"
position="after_start"
hidden="true"
orient="vertical"
noautofocus="true"
+ noautohide="true"
role="alert"/>
<popupnotification id="webRTC-shareDevices-notification" hidden="true">
<popupnotificationcontent id="webRTC-selectCamera" orient="vertical">
<label value="&getUserMedia.selectCamera.label;"
accesskey="&getUserMedia.selectCamera.accesskey;"
control="webRTC-selectCamera-menulist"/>
<menulist id="webRTC-selectCamera-menulist">
--- a/toolkit/modules/PopupNotifications.jsm
+++ b/toolkit/modules/PopupNotifications.jsm
@@ -634,16 +634,17 @@ PopupNotifications.prototype = {
if (notificationEl) {
notificationEl.notification.options.persistent = false;
}
}
let browser = this.panel.firstChild &&
this.panel.firstChild.notification.browser;
this.panel.hidePopup();
+ this.panel.ownerGlobal.focus();
if (browser)
browser.focus();
},
/**
* Hides the notification popup.
*/
_hidePanel: function PopupNotifications_hide() {