mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Bug 831365 - Always show the click-to-play doorhanger when the Navigation Toolbar is collapsed. r=gavin
This commit is contained in:
parent
c2263b0a46
commit
2bc168b99d
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user