Summary: | Don't snapshot plugins that can't be snapshotted | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||||||
Component: | Plug-ins | Assignee: | Dean Jackson <dino> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, thorton | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Dean Jackson
2013-05-20 18:59:42 PDT
Created attachment 202370 [details]
Patch
Created attachment 202372 [details]
Patch (build test)
Created attachment 202629 [details]
Patch
Comment on attachment 202629 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202629&action=review > Source/WebKit2/WebProcess/Plugins/PluginProxy.cpp:236 > + if (m_waitingOnAsynchronousInitialization) > + return false; Hmmmmmm. > Source/WebKit2/WebProcess/Plugins/PluginView.cpp:579 > + if (m_plugin->pluginLayer()) { > + if (frame()) { All-in-one-if > Source/WebKit2/WebProcess/Plugins/PluginView.cpp:1641 > + if (!m_plugin->supportsSnapshotting() && m_pluginElement->isPlugInImageElement()) { I think the first one is significantly more expensive to compute (needs IPC), should you swap these? (answer: it doesn't matter because this is not hot code at all). Committed r150556: <http://trac.webkit.org/changeset/150556> |