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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | webkit/plugins/npapi/test/plugin_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mime-type
+ text/html
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <html>
2
3 <head>
4 <script src="npapi.js"></script>
5
6 <script>
7 function ResizePluginWithinScript() {
8 document.getElementById("1").height = "10";
9 // Normally WebKit will resize asynchronously. Force it to do it now by asking
10 // it to calculate the document height.
11 var height = document.body.offsetHeight;
12 }
13
14 </script>
15 </head>
16
17 <body>
18 <div id="statusPanel" style="border: 1px solid red; width: 100%">
19 Test running....
20 </div>
21
22 Resize During Paint Test<p>
23 This test ensures that if a windowless plugin resizes during a paint,
24 deallocated memory isn't used.<br />
25
26 <embed type="application/vnd.npapi-test"
27 src="foo"
28 name="resize_during_paint"
29 id="1"
30 mode="np_embed"
31 height="300"
32 width="300"
33 />
34
35 <script>
36 var height = document.body.offsetHeight;
37 </script>
38
39 </body>
40 </html>
OLDNEW
« 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