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

Unified Diff: third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl.html

Issue 2132283002: Use Document::validBaseElementURL to init preloadscanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/fast/parser/preloader-base-invalidurl-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl.html
diff --git a/third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl.html b/third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl.html
new file mode 100644
index 0000000000000000000000000000000000000000..523db3124e273c90c54062961d56d3f889e1156f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+}
+
+function trigger() {
+ var framedoc = target.document;
+
+ framedoc.open();
+ framedoc.write("<base href='ftp:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa♬'></base>");
+ framedoc.write("<script src=':'><\/script>");
+ framedoc.close();
+
+ if (window.testRunner) {
+ document.write("<p>PASS: if no crash on debug build</p>");
+ testRunner.notifyDone();
+ }
+}
+</script>
+<frameset rows="50%,*" onload="trigger();">
+ <frame name='target'></frame>
+</frameset>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/parser/preloader-base-invalidurl-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698