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

Unified Diff: ppapi/example/example.html

Issue 6543028: Implement the filesystem proxy. This allows the FileRef tests to pass in the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: ppapi/example/example.html
===================================================================
--- ppapi/example/example.html (revision 75471)
+++ ppapi/example/example.html (working copy)
@@ -5,10 +5,20 @@
<script type="text/javascript">
isPluginDefaultSize = true;
+var foo = 0;
+
function Test() {
plugin = document.getElementById('plugin');
- // Confirm that this no longer segfaults.
- alert(plugin.toString(new Array(10)));
+
+ if (foo == 0) {
+ foo = plugin.getObject();
+ // Confirm that this no longer segfaults.
+ //alert(plugin.toString(new Array(10)));
+ alert("first time");
+ plugin.parentNode.removeChild(plugin);
+ } else {
+ alert(foo.toString());
+ }
}
function SetPluginSize(width, height) {
@@ -31,6 +41,7 @@
</script>
<button onclick='Test()'>Test</button>
+ <button id="asdf">Asdf</button>
<button onclick='ToggleSize()'>Toggle Size</button>
<div id="fps" style="background-color:white; font-weight:bold; padding:4px; width:200px;">FPS GOES HERE</div>
<div id="size" style="background-color:white; font-weight:bold; padding:4px; width:200px;"></div>

Powered by Google App Engine
This is Rietveld 408576698