bug 1289496 - Ask to Activate makes Flash plugin dropdown appear on every github pageload r=mconley
authorBrad Lassey <blassey@mozilla.com>
Tue, 26 Jul 2016 17:07:02 -0400
changeset 346829 86ee73866fc0482659456b3d6055ab0503e09a91
parent 346828 84237932bc5a203f67024cd1bb37cfe335219e1c
child 346830 8457e2d24535a319b3ef7d5cda4d201b7f78e3b1
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1289496
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1289496 - Ask to Activate makes Flash plugin dropdown appear on every github pageload r=mconley
browser/modules/PluginContent.jsm
--- a/browser/modules/PluginContent.jsm
+++ b/browser/modules/PluginContent.jsm
@@ -392,19 +392,19 @@ PluginContent.prototype = {
       // <embed> element), this call is for a window-global plugin.
       this.onPluginCrashed(event.target, event);
       return;
     }
 
     if (eventType == "HiddenPlugin") {
       let pluginTag = event.tag.QueryInterface(Ci.nsIPluginTag);
       if (event.target.defaultView.top.document != this.content.document) {
-	return;
+        return;
       }
-      this._showClickToPlayNotification(pluginTag, true);
+      this._showClickToPlayNotification(pluginTag, false);
     }
 
     let plugin = event.target;
     let doc = plugin.ownerDocument;
 
     if (!(plugin instanceof Ci.nsIObjectLoadingContent))
       return;