| Index: chrome/plugin/npobject_stub.cc
|
| ===================================================================
|
| --- chrome/plugin/npobject_stub.cc (revision 2981)
|
| +++ chrome/plugin/npobject_stub.cc (working copy)
|
| @@ -260,6 +260,7 @@
|
| }
|
|
|
| void NPObjectStub::OnEvaluate(const std::string& script,
|
| + bool popups_allowed,
|
| IPC::Message* reply_msg) {
|
| if (IsPluginProcess()) {
|
| NOTREACHED() << "Should only be called on NPObjects in the renderer";
|
| @@ -277,7 +278,8 @@
|
| script_string.UTF8Characters = script.c_str();
|
| script_string.UTF8Length = static_cast<unsigned int>(script.length());
|
|
|
| - bool return_value = NPN_Evaluate(0, npobject_, &script_string, &result_var);
|
| + bool return_value = NPN_EvaluateHelper(0, popups_allowed, npobject_,
|
| + &script_string, &result_var);
|
|
|
| NPVariant_Param result_param;
|
| CreateNPVariantParam(result_var, local_channel, &result_param, true);
|
|
|