Skip to content

Commit

Permalink
Origin isolation: add crash test for noopener popup windows (#25636)
Browse files Browse the repository at this point in the history
This illustrates the issue in https://crbug.com/1099718.

Bug: 1099718
Change-Id: Ie27df0a2cd5f62370332b318726bc10f965efe85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2270626
Reviewed-by: James MacLean <wjmaclean@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809886}

Co-authored-by: Domenic Denicola <domenic@chromium.org>
  • Loading branch information
chromium-wpt-export-bot and domenic committed Sep 24, 2020
1 parent db9d339 commit f4b94a7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions origin-isolation/popups-crash.https.html
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Crash test for https://crbug.com/1099718</title>

<div id="log"></div>

<script>
window.open("resources/crashy-popup.sub.html", "windowName1", "noopener");
</script>
6 changes: 6 additions & 0 deletions origin-isolation/resources/crashy-popup.sub.html
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>This page helps exhibit a crash bug when window.open()ed</title>

<iframe src="https://{{hosts[][www]}}:{{ports[https][0]}}/origin-isolation/resources/send-origin-isolation-header.py"></iframe>
<iframe src="https://{{hosts[][www]}}:{{ports[https][0]}}/origin-isolation/resources/send-origin-isolation-header.py?header=?1"></iframe>
1 change: 1 addition & 0 deletions origin-isolation/resources/crashy-popup.sub.html.headers
@@ -0,0 +1 @@
Origin-Isolation: ?1

0 comments on commit f4b94a7

Please sign in to comment.