hfiguiere / no-flash

A WebExtension to help eradicate the Flash pandemic.
Mozilla Public License 2.0
42 stars 5 forks source link

Listen for the PluginBindingAttached event instead of checking every <object> #11

Closed edmorley closed 10 years ago

edmorley commented 10 years ago

Broken out from: http://www.figuiere.net/hub/blog/?2014/06/04/849-hack-the-web-no-flash#c62848

Justin Dolske said:

Driveby comment: it might be more efficient to have a content script listening for the PluginBindingAttached event we fire, instead of checking every object in every document. See toolkit/mozapps/plugins/content/pluginProblem.xml and browser/base/content/browser-plugins.js for how this works in-browser.

hfiguiere commented 10 years ago

Definitely. And this probably should fix bug #3 at the same time.