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

Unified Diff: chrome/test/data/npapi/ensure_scripting_works_in_destroy_iframe.html

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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/npapi/ensure_scripting_works_in_destroy_iframe.html
===================================================================
--- chrome/test/data/npapi/ensure_scripting_works_in_destroy_iframe.html (revision 0)
+++ chrome/test/data/npapi/ensure_scripting_works_in_destroy_iframe.html (revision 0)
@@ -0,0 +1,33 @@
+<html>
+<head>
+<script src="npapi.js"></script>
+<script>
+function GetMagicNumber() {
+ return 42;
+}
+
+function onSuccess(name, id) {
+ parent.onSuccess(name, id);
+}
+
+function onFailure(name, id, status) {
+ parent.onFailure(name, id);
+}
+</script>
+</head>
+
+<body>
+<div id=PluginDiv>
+<embed type="application/vnd.npapi-test"
+ src="foo"
+ name="ensure_scripting_works_in_destroy"
+ id="1"
+ mode="np_embed"
+>
+</DIV>
+<script>
+ var height = document.body.offsetHeight;
+</script>
+
+</body>
+</html>
Property changes on: chrome\test\data\npapi\ensure_scripting_works_in_destroy_iframe.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698