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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash.html
diff --git a/third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash.html b/third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5aa18871a89229fd0b6427ae7f305d4bdf756f4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/bindings/blink-in-js-asan-crash.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+ function runTest() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ if (sessionStorage.pageReloaded)
+ return;
+
+ img = document.createElement('img');
+ img.src = `data:image/svg+xml,
+ <svg xmlns="http://www.w3.org/2000/svg">
+ <foreignObject>
+ <body xmlns="http://www.w3.org/1999/xhtml">
+ <marquee></marquee>
+ </body>
+ </foreignObject>
+ </svg>`;
+ document.body.appendChild(img);
+
+ sessionStorage.pageReloaded = true;
+ window.location.reload();
+ }
+</script>
+</head>
+<body onload='runTest()'>
+Test passes if it does not crash on ASan builds.
+</body>
+</html>
« 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