Prevent the WebPluginContainer being destroyed inside scriptableObject()
Current re-entrancy inside WebPluginContainer::scriptableObject can cause the plugin to be deleted, as well as the WebPluginContainer. This can cause UAFs. This change holds a reference to the plugin container to prevent it from being destroyed while in the function. This also prevents the WebPlugin associated with it from being destroyed since the lifetime of WebPlugin is managed by the WebPluginContainer. BUG=458776 Review URL: https://codereview.chromium.org/933653004 git-svn-id: svn://svn.chromium.org/blink/trunk@190700 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment