Skip to content

Commit

Permalink
Bug 1615285 [wpt PR 21781] - Secure contexts: add data: URLs, a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
Secure contexts: add data: URLs

See w3c/webappsec-secure-contexts#69. Complements web-platform-tests/wpt#21146.
--

wpt-commits: cc7860faa93b6c404a5767b7635843d274eb7d0a
wpt-pr: 21781
  • Loading branch information
annevk authored and moz-wptsync-bot committed Feb 17, 2020
1 parent 5ef4d6b commit ee232ab
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
* TODO once web-platform-tests supports it:
* - test http://localhost
* - test file:
*
* TODO once https://github.com/w3c/webappsec-secure-contexts/issues/26 is resolved
* - test data:
*/


Expand Down Expand Up @@ -101,6 +98,12 @@ const loadTypes = [
"about:blank", // we don't wait for this to load, so whatever
eSecureIfCreatorSecure,
eResultFromExaminationSync),
new LoadType("a data: URL",
// can't load in a top-level browsing context
eLoadInUnsandboxedIframe | eLoadInSandboxedIframe,
"data:text/html,<script>parent.postMessage(isSecureContext, '*')</script>",
eSecureIfCreatorSecure,
eResultFromPostMessage),
];

const loadTargets = [
Expand Down

0 comments on commit ee232ab

Please sign in to comment.