Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: webkit/glue/plugins/test/plugin_npobject_lifetime_test.cc

Issue 258026: Fix scripting during NPP_Destroy. Note that if the plugin is making a call t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h" 5 #include "webkit/glue/plugins/test/plugin_npobject_lifetime_test.h"
6 6
7 namespace NPAPIClient { 7 namespace NPAPIClient {
8 8
9 const int kNPObjectLifetimeTimer = 100; 9 const int kNPObjectLifetimeTimer = 100;
10 const int kNPObjectLifetimeTimerElapse = 2000; 10 const int kNPObjectLifetimeTimerElapse = 2000;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return; 145 return;
146 } 146 }
147 147
148 std::string script = "javascript:DeletePluginWithinScript()"; 148 std::string script = "javascript:DeletePluginWithinScript()";
149 NPString script_string; 149 NPString script_string;
150 script_string.UTF8Characters = script.c_str(); 150 script_string.UTF8Characters = script.c_str();
151 script_string.UTF8Length = 151 script_string.UTF8Length =
152 static_cast<unsigned int>(script.length()); 152 static_cast<unsigned int>(script.length());
153 153
154 NPVariant result_var; 154 NPVariant result_var;
155 NPError result = g_npn_evaluate_test_instance_->HostFunctions()->evaluate( 155 bool result = g_npn_evaluate_test_instance_->HostFunctions()->evaluate(
156 g_npn_evaluate_test_instance_->id(), window_obj, 156 g_npn_evaluate_test_instance_->id(), window_obj,
157 &script_string, &result_var); 157 &script_string, &result_var);
158 // If this test failed we would have crashed by now. 158 // If this test failed we would have crashed by now.
159 } 159 }
160 160
161 } // namespace NPAPIClient 161 } // namespace NPAPIClient
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698