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

Unified Diff: content/test/data/npapi/resize_during_paint.html

Issue 10855141: Fix race condition with windowless plugin buffers. The problem, which is already fixed for Mac, is … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 8 years, 4 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 | « content/plugin/webplugin_proxy.cc ('k') | webkit/plugins/npapi/test/plugin_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/npapi/resize_during_paint.html
===================================================================
--- content/test/data/npapi/resize_during_paint.html (revision 0)
+++ content/test/data/npapi/resize_during_paint.html (revision 0)
@@ -0,0 +1,40 @@
+<html>
+
+<head>
+<script src="npapi.js"></script>
+
+<script>
+function ResizePluginWithinScript() {
+ document.getElementById("1").height = "10";
+ // Normally WebKit will resize asynchronously. Force it to do it now by asking
+ // it to calculate the document height.
+ var height = document.body.offsetHeight;
+}
+
+</script>
+</head>
+
+<body>
+<div id="statusPanel" style="border: 1px solid red; width: 100%">
+Test running....
+</div>
+
+Resize During Paint Test<p>
+This test ensures that if a windowless plugin resizes during a paint,
+deallocated memory isn't used.<br />
+
+<embed type="application/vnd.npapi-test"
+ src="foo"
+ name="resize_during_paint"
+ id="1"
+ mode="np_embed"
+ height="300"
+ width="300"
+/>
+
+<script>
+ var height = document.body.offsetHeight;
+</script>
+
+</body>
+</html>
Property changes on: content\test\data\npapi\resize_during_paint.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:eol-style
+ LF
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | webkit/plugins/npapi/test/plugin_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698