Bug 831365 - Always show the click-to-play doorhanger when the Navigation Toolbar is collapsed. r=gavin

This commit is contained in:
Jared Wein 2013-01-24 14:39:04 -05:00
parent ceb74b1d4d
commit f1053c34ff

View File

@ -655,6 +655,9 @@ var gPluginHandler = {
}];
let notification = PopupNotifications.getNotification("click-to-play-plugins", aBrowser);
let dismissed = notification ? notification.dismissed : true;
// Always show the doorhanger if the anchor is not available.
if (!isElementVisible(gURLBar))
dismissed = false;
let options = { dismissed: dismissed, centerActions: centerActions };
let icon = haveVulnerablePlugin ? "blocked-plugins-notification-icon" : "plugins-notification-icon"
PopupNotifications.show(aBrowser, "click-to-play-plugins",