RESOLVED FIXED 113231
Cleanup plugin snapshotting autostart decision making
https://bugs.webkit.org/show_bug.cgi?id=113231
Summary Cleanup plugin snapshotting autostart decision making
Dean Jackson
Reported 2013-03-25 12:19:45 PDT
Make a few changes to the way plugins decide to autostart or snapshot: - move the hashing code from WebCore into the client layer (all WebCore should ask is given a tuple of plugin origin, page origin and mime type, will this plugin autostart?) - allow for two ways to decide on autostart in WK2. The first is the hash list based on user interaction, the second is an explicit set of autostarts that come from the host
Attachments
Patch (43.82 KB, patch)
2013-03-25 14:17 PDT, Dean Jackson
no flags
Patch (16.92 KB, patch)
2013-03-25 16:37 PDT, Dean Jackson
no flags
Radar WebKit Bug Importer
Comment 1 2013-03-25 12:20:22 PDT
Dean Jackson
Comment 2 2013-03-25 14:17:46 PDT
Dean Jackson
Comment 3 2013-03-25 14:19:14 PDT
That is the wrong radar. The real one is <rdar://problem/13475462>
Tim Horton
Comment 4 2013-03-25 15:12:57 PDT
Comment on attachment 194922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194922&action=review > Source/WebCore/html/HTMLPlugInImageElement.cpp:415 > + String otherMimeType = plugInImageElement->serviceType(); Other? > Source/WebKit2/WebProcess/Plugins/PluginView.cpp:586 > - if (m_pluginElement->displayState() < HTMLPlugInElement::Playing) > + if (m_pluginElement->displayState() == HTMLPlugInElement::RestartingWithPendingMouseClick) > m_pluginElement->dispatchPendingMouseClick(); Whoops. > Source/WebKit2/WebProcess/Plugins/PluginView.cpp:1653 > + // FIXME: webkit.org/b/113232 - Extend autostart timeout when this codepath is hit. I'm not sure how we usually format these, but I'm not sure this is it.
Dean Jackson
Comment 5 2013-03-25 15:35:04 PDT
Comment on attachment 194922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194922&action=review >> Source/WebCore/html/HTMLPlugInImageElement.cpp:415 >> + String otherMimeType = plugInImageElement->serviceType(); > > Other? Yeah, because we're comparing against the mimeType parameter that was passed in. Following the convention that we use in operator== overloads. I'll rename it to loadedMimeType. >> Source/WebKit2/WebProcess/Plugins/PluginView.cpp:1653 >> + // FIXME: webkit.org/b/113232 - Extend autostart timeout when this codepath is hit. > > I'm not sure how we usually format these, but I'm not sure this is it. OK!
Dean Jackson
Comment 6 2013-03-25 16:30:20 PDT
Dean Jackson
Comment 7 2013-03-25 16:36:59 PDT
Reopening to attach new patch.
Dean Jackson
Comment 8 2013-03-25 16:37:03 PDT
Dean Jackson
Comment 9 2013-03-25 16:37:44 PDT
Comment on attachment 194943 [details] Patch Sent to wrong bug.
Note You need to log in before you can comment on or make changes to this bug.