Index: webkit/glue/webframeloaderclient_impl.cc |
=================================================================== |
--- webkit/glue/webframeloaderclient_impl.cc (revision 14894) |
+++ webkit/glue/webframeloaderclient_impl.cc (working copy) |
@@ -154,7 +154,9 @@ |
} |
void WebFrameLoaderClient::detachedFromParent3() { |
- // Nothing to do here. |
+ // Close down the proxy. This is done at this point to avoid any problems |
+ // when ScriptController::clearWindowShell is called later. |
+ webframe_->frame()->script()->proxy()->clearForClose(); |
} |
// This function is responsible for associating the |identifier| with a given |