Skip to content

Commit 03f5a82

Browse files
Arno Renevierchromium-wpt-export-bot
authored andcommitted
Fixes: unload-a-document tests do not respect wss variant
tests in third_party/blink/web_tests/external/wpt/websockets/unload-a-document/ have wss variant. But when opening a popup, they don't pass the location.search parameter to their children. So for example, 001.html?wss will 001-1.html. And since 001-1.html has no knowledge of the wss param, it will (incorrectly) open an insecure sockets. Because of that, tests in websockets/unload-a-document always run the insecure variant. This patch fixes the issue. Bug: 801564 Change-Id: Ib88aa1c12dc6f8a390f650b164cd4cd203939a43 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552078 Reviewed-by: Adam Rice <[email protected]> Commit-Queue: Arnaud Renevier <[email protected]> Cr-Commit-Position: refs/heads/master@{#830853}
1 parent 20b20fa commit 03f5a82

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

websockets/unload-a-document/001-1.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<!doctype html>
22
<title>WebSockets: navigating top-level browsing context</title>
33
<script src=../constants.js?pipe=sub></script>
4-
<meta name="variant" content="">
5-
<meta name="variant" content="?wss">
64
<script>
75
var controller = opener || parent;
86
var t = controller.t;

websockets/unload-a-document/001.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
var uuid;
1515
t.step(function() {
1616
uuid = token()
17-
w = window.open("001-1.html");
17+
w = window.open("001-1.html" + location.search);
1818
add_result_callback(function() {
1919
w.close();
2020
});

websockets/unload-a-document/002-1.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<!doctype html>
22
<title>WebSockets: navigating top-level browsing context with closed websocket</title>
33
<script src=../constants.js?pipe=sub></script>
4-
<meta name="variant" content="">
5-
<meta name="variant" content="?wss">
64
<script>
75
var controller = opener || parent;
86
var t = controller.t;

websockets/unload-a-document/002.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var uuid;
1616
t.step(function() {
1717
uuid = token()
18-
w = window.open("002-1.html");
18+
w = window.open("002-1.html" + location.search);
1919
add_result_callback(function() {
2020
w.close();
2121
});

websockets/unload-a-document/005-1.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<!doctype html>
22
<title>WebSockets: navigating nested browsing context with a websocket in top-level</title>
33
<script src=../constants.js?pipe=sub></script>
4-
<meta name="variant" content="">
5-
<meta name="variant" content="?wss">
64
<script>
75
var t = opener.t;
86
var assert_unreached = opener.assert_unreached;

websockets/unload-a-document/005.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script>
1313
var t = async_test();
1414
t.step(function() {
15-
var w = window.open("005-1.html");
15+
var w = window.open("005-1.html" + location.search);
1616
add_result_callback(function() {
1717
w.close();
1818
});

0 commit comments

Comments
 (0)