The plugin's layers are always hosted in the app, but the rest of the layer tree is (if requested) window-server-hosted. We need to conditionally create the plugin’s layers in the WindowServer if need be. <rdar://problem/14717572>
Created attachment 208578 [details] patch
Created attachment 208667 [details] patch with dynamic updating
Comment on attachment 208667 [details] patch with dynamic updating View in context: https://bugs.webkit.org/attachment.cgi?id=208667&action=review > Source/WebKit/mac/Plugins/Hosted/WebHostedNetscapePluginView.mm:259 > + BOOL shouldHostLayersInWindowServer = [self windowHostsLayersInWindowServer]; I think you should declare this as bool instead. > Source/WebKit/mac/Plugins/Hosted/WebHostedNetscapePluginView.mm:260 > + if (_hostsLayersInWindowServer != shouldHostLayersInWindowServer) Otherwise this might not do what you want it to.
Thanks, Anders! http://trac.webkit.org/changeset/154019
This made many plugin tests time out: http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK1%20(Tests)/r154019%20(9412)/results.html
Reverted in http://trac.webkit.org/changeset/154050. Caused >50 layout tests to fail, breaking the WebKit1 test bots completely.
Reopening since it's reverted. The tests all pass locally, I'll have to test on Mountain Lion.
MIG .defs were in the wrong order http://trac.webkit.org/changeset/154078