From 2bc168b99db353b607fb545dc7ce17b5b2de4315 Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Thu, 24 Jan 2013 14:39:04 -0500 Subject: [PATCH] Bug 831365 - Always show the click-to-play doorhanger when the Navigation Toolbar is collapsed. r=gavin --- browser/base/content/browser-plugins.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/base/content/browser-plugins.js b/browser/base/content/browser-plugins.js index 9a814d3dc29d..99935e210f89 100644 --- a/browser/base/content/browser-plugins.js +++ b/browser/base/content/browser-plugins.js @@ -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",