WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(16.92 KB, patch)
2013-03-25 16:37 PDT
,
Dean Jackson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-03-25 12:20:22 PDT
<
rdar://problem/13497730
>
Dean Jackson
Comment 2
2013-03-25 14:17:46 PDT
Created
attachment 194922
[details]
Patch
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
Committed
r146823
: <
http://trac.webkit.org/changeset/146823
>
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
Created
attachment 194943
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug