Skip to content

Commit

Permalink
Secure contenxts: add data: URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 13, 2020
1 parent 5ecc382 commit 065f9d4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions secure-contexts/basic-popup-and-iframe-tests.https.js
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 065f9d4

Please sign in to comment.