Commit 80ee144a authored by andersca's avatar andersca
Browse files

Reviewed by Geoff.

        Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
        for a given plug-in.

        * WebCore.exp:
        * page/Frame.cpp:
        (WebCore::Frame::cleanupScriptObjectsForPlugin):
        * page/Frame.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1d23cad5
2007-06-14 Anders Carlsson <andersca@apple.com>
Reviewed by Geoff.
Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
for a given plug-in.
* WebCore.exp:
* page/Frame.cpp:
(WebCore::Frame::cleanupScriptObjectsForPlugin):
* page/Frame.h:
2007-06-14 Anders Carlsson <andersca@apple.com>
 
Reviewed by Geoff.
......@@ -685,3 +685,4 @@ _wkSignalCFReadStreamEnd
_wkSignalCFReadStreamError
_wkSignalCFReadStreamHasBytes
_wkSupportsMultipartXMixedReplace
__ZN7WebCore5Frame29cleanupScriptObjectsForPluginEPv
......@@ -1092,6 +1092,17 @@ NPObject* Frame::windowScriptNPObject()
return d->m_windowScriptNPObject;
}
void Frame::cleanupScriptObjectsForPlugin(void* nativeHandle)
{
RootObjectMap::iterator it = d->m_rootObjects.find(nativeHandle);
if (it == d->m_rootObjects.end())
return;
it->second->invalidate();
d->m_rootObjects.remove(it);
}
void Frame::cleanupScriptObjects()
{
cleanupPlatformScriptObjects();
......
......@@ -233,6 +233,7 @@ public:
void dashboardRegionsChanged();
void cleanupScriptObjects();
void cleanupScriptObjectsForPlugin(void*);
private:
void cleanupPlatformScriptObjects();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment