- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Tue, 7 Apr 2009 14:48:40 +1200
On Tue, Apr 7, 2009 at 5:04 AM, Michael Nordman <michaeln at google.com> wrote: > Consider three threads > PageA > PageB > PluginC > > PageA > -grabs storage lock > > PluginC > -calls out to PageB (everything in NPAPI is synchronous) > -now waiting for PageB to return > > PageB > -while handling the plugins callback, attempts to grab the storage lock > -BLOCKED waiting for PageA to release it > > PageA > -calls plugin (sync method call) > -BLOCK waiting indirectly for PageB > > == DEADLOCK > What happens if we don't have storage locks but PageB does a sync XHR or alert() inside the callout from the plugin? All the other pages containing plugins of that type lock up? Rob -- "He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090407/e9dee08b/attachment.htm>
Received on Monday, 6 April 2009 19:48:40 UTC