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

Unified Diff: ppapi/example/example.html

Issue 9655019: Fix a crash related to PPAPI scripting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/example/example.cc ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/example/example.html
diff --git a/ppapi/example/example.html b/ppapi/example/example.html
index dd8ee8c4824247f492d87c88c2cd2bdb82ec91b2..9a5c5a418530f4f27733289f198beadc29d032e7 100644
--- a/ppapi/example/example.html
+++ b/ppapi/example/example.html
@@ -6,9 +6,13 @@
isPluginDefaultSize = true;
function Test() {
- plugin = document.getElementById('plugin');
- // Confirm that this no longer segfaults.
- alert(plugin.toString(new Array(10)));
+ var plugin = document.getElementById('plugin');
+ // Confirm that this no longer segfaults.
+ alert(plugin.toString(new Array(10)));
+
+ // Confirm that the renderer doesn't crash when the plugin module goes away
+ // while waiting for the reply to the HasPropery sync message.
+ plugin.removePluginWhenHasPropertyCalled;
}
function SetPluginSize(width, height) {
« no previous file with comments | « ppapi/example/example.cc ('k') | ppapi/proxy/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698