| Index: ppapi/proxy/ppb_instance_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppb_instance_proxy.cc (revision 81764)
|
| +++ ppapi/proxy/ppb_instance_proxy.cc (working copy)
|
| @@ -120,6 +120,12 @@
|
| }
|
|
|
| bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| + // Prevent the dispatcher from going away during a call to ExecuteScript.
|
| + // This must happen OUTSIDE of ExecuteScript since the SerializedVars use
|
| + // the dispatcher upon return of the function (converting the
|
| + // SerializedVarReturnValue/OutParam to a SerializedVar in the destructor).
|
| + ScopedModuleReference death_grip(dispatcher());
|
| +
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(PPB_Instance_Proxy, msg)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_GetWindowObject,
|
|
|