On 7/15/2014 4:41 PM, Felipe Gomes wrote:
Ideally, on a crash, the plugin code should send a PluginCrashed event, one per
plugin instance, which is how it's done for the NPAPI plugins. Do these new
plugins use nsPluginHost et. al.?
No. They don't use nsPluginHost and they don't use
nsObjectLoadingContent. However, we can still fire an event at the DOM
window or document. That event can have the same properties that a NPAPI
plugin crashed event has: pluginName/pluginDumpID. The only thing that's
different is that because the event is fired directly at the window
instead of at a particular <object> element, the code which currently
tries to display the plugin crash in the element will need to
short-circuit all the way to the hidden-plugin case at
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-plugins.js#1268
--BDS
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media