forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also modify common.sub.js so it doesn't try to make insecure connections in secure contents. Firefox passes the new mixed-content test in all contexts. Safari fails the new mixed-content test in all contexts. Change-Id: Ia3e82096e738095a04d3c7b5f8d21819f5de2faf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4624022 Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/main@{#1161711}
- Loading branch information
Showing
5 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
...d_party/blink/web_tests/external/wpt/websockets/basic-auth.any.serviceworker-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
third_party/blink/web_tests/external/wpt/websockets/mixed-content.https.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// META: global=window,worker | ||
// META: script=constants.sub.js | ||
|
||
test(() => { | ||
assert_throws_dom('SecurityError', () => CreateInsecureWebSocket(), | ||
'constructor should throw'); | ||
}, 'constructing an insecure WebSocket in a secure context should throw'); |
4 changes: 4 additions & 0 deletions
4
...blink/web_tests/external/wpt/websockets/mixed-content.https.any.sharedworker-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL constructing an insecure WebSocket in a secure context should throw assert_throws_dom: constructor should throw function "() => CreateInsecureWebSocket()" did not throw | ||
Harness: the test ran to completion. | ||
|
4 changes: 0 additions & 4 deletions
4
...al/wpt/websockets/send-many-64K-messages-with-backpressure.any.serviceworker-expected.txt
This file was deleted.
Oops, something went wrong.