Public (by bobv@google.com)
Prevent a webkit plugin crash when closing the browser window by disabling pugin proxy objects as soon as the browser tells the plugin to shut down.
Patch by: bobv
Review by: knorton, rjrjr
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7844 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/plugins/webkit/Plugin/OophmWebScriptObject.mm b/plugins/webkit/Plugin/OophmWebScriptObject.mm
index f40522a..65ad797 100644
--- a/plugins/webkit/Plugin/OophmWebScriptObject.mm
+++ b/plugins/webkit/Plugin/OophmWebScriptObject.mm
@@ -248,7 +248,10 @@
- (void)finalizeForWebScript {
Debug::log(Debug::Info) << "Finalizing OophmWebScriptObject" << Debug::flush;
-
+
+ // Disable any lingering JS proxy objects
+ _hasCrashed = true;
+
// Free memory
delete _sessionHandler;