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

Side by Side Diff: third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash.html

Issue 2049163003: Fixes ASan crash for an embedded Blink-in-JS component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function runTest() {
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 if (sessionStorage.pageReloaded)
10 return;
11
12 img = document.createElement('img');
13 img.src = `data:image/svg+xml,
14 <svg xmlns="http://www.w3.org/2000/svg">
15 <foreignObject>
16 <body xmlns="http://www.w3.org/1999/xhtml">
17 <marquee></marquee>
18 </body>
19 </foreignObject>
20 </svg>`;
21 document.body.appendChild(img);
22
23 sessionStorage.pageReloaded = true;
24 window.location.reload();
25 }
26 </script>
27 </head>
28 <body onload='runTest()'>
29 Test passes if it does not crash on ASan builds.
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698