OSDN Git Service

Fixed browser crash when plugins remove themselves from the DOM.
authorDerek Sollenberger <djsollen@google.com>
Mon, 11 Oct 2010 16:59:16 +0000 (12:59 -0400)
committerDerek Sollenberger <djsollen@google.com>
Mon, 11 Oct 2010 17:05:50 +0000 (13:05 -0400)
commitaba5d8c5ae5ae0571265ccec8cf8aa948cca0e22
treed785e8bb11d2121b75b1a65b8b213f5f8b012d9d
parentadefffe9b3e320759a73b50ba793267e4aa8cf0c
Fixed browser crash when plugins remove themselves from the DOM.

If a plugin removes itself from the DOM and it is the only plugin
of that type on the page then the browser will attempt to unload
the plugin's shared library. This causes a problem since there is
plugin code still on the stack. The solution is to post a message
that removes the plugin's libary at a later time. This solution
was disabled in the past due to an unknown issue, but was tested
as working on both the Adobe plugin and a development sample plugin.

Change-Id: If60394336790f833d6b9333424836cbd32dc31e7
http://b/3084460
WebCore/plugins/PluginPackage.cpp