Skip to content

Commit

Permalink
[WPT] Avoid URL parser bug in script-onerror-insertion-point-2.html
Browse files Browse the repository at this point in the history
The test was failing on Chrome because the error URL didn't
cause a failure on Chromium, due to a URL parser
interoperability issues (https://crbug.com/1065667).
This CL fixes the test on Chromium by using a URL that fails
consistently across all browsers.

Bug: 642224, 1065667
Change-Id: Ia196929b37e018021b8810beedf24cf73e71a330
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3642526
Reviewed-by: Kouhei Ueno <[email protected]>
Commit-Queue: Hiroshige Hayashizaki <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1002381}
  • Loading branch information
hiroshige-g authored and chromium-wpt-export-bot committed May 11, 2022
1 parent d883783 commit 238c142
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Some <script src="http://this is not parseable"
onerror="document.write('text'); parent.writeDone(document.documentElement.textContent)"></script>
Some <script src="http://this is not parseable:-80/"
onerror="document.write('text'); document.close(); parent.writeDone(document.documentElement.textContent)"></script>

0 comments on commit 238c142

Please sign in to comment.