Closed
Bug 1438857
Opened 6 years ago
Closed 6 years ago
Remove the Flash plugin infobar
Categories
(Core Graveyard :: Plug-ins, enhancement, P1)
Core Graveyard
Plug-ins
Tracking
(firefox-esr52 wontfix, firefox-esr60 wontfix, firefox59 wontfix, firefox60 wontfix, firefox61 wontfix, firefox64 fixed)
RESOLVED
FIXED
mozilla64
People
(Reporter: Felipe, Assigned: prathiksha, Mentored)
References
Details
(Whiteboard: [lang=js])
Attachments
(2 files)
The Flash infobar is currently unused and will likely never be used again, so we should remove all the code supporting it. A suppress list was once implemented to hide this infobar for specific domains (bug 1369160), but after a while we entirely disabled the infobar (bug 1377036)
Updated•6 years ago
|
Priority: -- → P3
Summary: Remove the flash infobar → Remove the Flash plugin infobar
Whiteboard: [lang=js]
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → prathikshaprasadsuman
Status: NEW → ASSIGNED
Comment 1•6 years ago
|
||
We should ensure the PLUGINS_INFOBAR_* probes are removed as part of this work
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•6 years ago
|
||
Just something to note here, I will remove the "plugins.show_infobar" pref entirely in Bug 1453579 as it overlaps with some infobar blocklist code.
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8967285 [details] Bug 1438857 - Remove the Flash plugin infobar. https://reviewboard.mozilla.org/r/235972/#review241712 Code analysis found 3 defects in this patch: - 3 defects found by mozlint You can run this analysis locally with: - `./mach lint path/to/file` (JS/Python) If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: browser/modules/PluginContent.jsm:896 (Diff revision 1) > document = document || this.content.document; > > // We're only interested in the top-level document, since that's > // the one that provides the Principal that we send back to the > // parent. > let principal = document.defaultView.top.document.nodePrincipal; Error: 'principal' is assigned a value but never used. [eslint: no-unused-vars] ::: browser/modules/PluginContent.jsm:897 (Diff revision 1) > > // We're only interested in the top-level document, since that's > // the one that provides the Principal that we send back to the > // parent. > let principal = document.defaultView.top.document.nodePrincipal; > let location = document.location.href; Error: 'location' is assigned a value but never used. [eslint: no-unused-vars] ::: browser/modules/PluginContent.jsm:900 (Diff revision 1) > // parent. > let principal = document.defaultView.top.document.nodePrincipal; > let location = document.location.href; > > // Make a copy of the actions from the last popup notification. > let haveInsecure = false; Error: 'haveinsecure' is assigned a value but never used. [eslint: no-unused-vars]
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8967285 [details] Bug 1438857 - Remove the Flash plugin infobar. https://reviewboard.mozilla.org/r/235972/#review241880 Thank you for your note about plugins.show_infobar My r+ is for the Telemetry removal.
Attachment #8967285 -
Flags: review?(chutten) → review+
Updated•6 years ago
|
Priority: P3 → P1
Comment 7•6 years ago
|
||
Let's wait until the Nightly 62 dev cycle begins (May 7) to land Prathiksha's fix so this change gets more "bake time".
status-firefox59:
--- → wontfix
status-firefox60:
--- → wontfix
status-firefox61:
--- → wontfix
status-firefox-esr52:
--- → wontfix
status-firefox-esr60:
--- → wontfix
Reporter | ||
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8967285 [details] Bug 1438857 - Remove the Flash plugin infobar. https://reviewboard.mozilla.org/r/235972/#review248066 Hello Prathiksha! (Sorry for the delay.. due to the soft freeze on nightly I postponed this a bit and it fell off my radar) This looks great.. There are a few nits pointed out below (as well as the eslint msgs to be fixed), and two larger things: (1) the hideNotificationBar function from browser-plugins.js, and related code that triggers it from PluginContent.jsm, can also be removed. (2) the main issue remaining is that the updateHiddenPluginUI function was (arguably incorrectly) responsible for also displaying the blocked (insecure) plugin state (through the haveInsecure parameter that it sent to the parent). To solve (2), the best thing would be to handle the insecure plugin case together in the PluginContent:ShowClickToPlayNotification message. Probably this information is already available there in the msg.data.plugins array, so you might not even need to add a new parameter like haveInsecure. Alternatively, if it gets too complicated, you could undo the removal of the updateHiddenPluginUI function and just leave the part that is necessary for the haveInsecure flag, and then file a follow-up bug to do it the cleaner way ::: browser/app/profile/firefox.js:713 (Diff revision 2) > // Should plugins that are hidden show the infobar UI? > pref("plugins.show_infobar", false); > nit: this can be removed ::: toolkit/components/telemetry/TelemetryEnvironment.jsm:254 (Diff revision 2) > ["network.proxy.http", {what: RECORD_PREF_STATE}], > ["network.proxy.ssl", {what: RECORD_PREF_STATE}], > ["pdfjs.disabled", {what: RECORD_PREF_VALUE}], > ["places.history.enabled", {what: RECORD_PREF_VALUE}], > - ["plugins.remember_infobar_dismissal", {what: RECORD_PREF_VALUE}], > ["plugins.show_infobar", {what: RECORD_PREF_VALUE}], nit: this can be removed
Attachment #8967285 -
Flags: review?(felipc)
Assignee | ||
Comment 9•6 years ago
|
||
Remove Flash plugin infobar code.
Assignee | ||
Comment 10•6 years ago
|
||
> ::: browser/app/profile/firefox.js:713 > (Diff revision 2) > > // Should plugins that are hidden show the infobar UI? > > pref("plugins.show_infobar", false); > > > > nit: this can be removed > > ::: toolkit/components/telemetry/TelemetryEnvironment.jsm:254 > (Diff revision 2) > > ["network.proxy.http", {what: RECORD_PREF_STATE}], > > ["network.proxy.ssl", {what: RECORD_PREF_STATE}], > > ["pdfjs.disabled", {what: RECORD_PREF_VALUE}], > > ["places.history.enabled", {what: RECORD_PREF_VALUE}], > > - ["plugins.remember_infobar_dismissal", {what: RECORD_PREF_VALUE}], > > ["plugins.show_infobar", {what: RECORD_PREF_VALUE}], > > nit: this can be removed I address not removing the "plugins.show_infobar" pref in my original patch in Comment 3. The pref is still used here https://searchfox.org/mozilla-central/rev/f0c15db995198a1013e1c5f5b5bea54ef83f1049/toolkit/components/url-classifier/SafeBrowsing.jsm#241 :)
Reporter | ||
Comment 11•6 years ago
|
||
Comment on attachment 8998530 [details] Bug 1438857 - Remove the Flash plugin infobar. r?felipe :Felipe Gomes (needinfo me!) has approved the revision.
Attachment #8998530 -
Flags: review+
Comment 12•6 years ago
|
||
Pushed by prathikshaprasadsuman@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7ce626742482 Remove the Flash plugin infobar. r=Felipe
Comment 13•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7ce626742482
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•