Skip to content

Commit

Permalink
Add missing stringify when passing source to CSP algorithm (#428)
Browse files Browse the repository at this point in the history
SHA: 0ccd17b
Reason: push, by koto

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
lukewarlow and github-actions[bot] committed Feb 1, 2024
1 parent 16d90db commit 6026b90
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dist/spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
<link href="https://w3c.github.io/trusted-types/dist/spec/" rel="canonical">
<meta content="453170f6184dd5ea74c8dbd2c0adc2ef8ed6072a" name="document-revision">
<meta content="0ccd17b0e70296de023b679eef8b28ba5158efea" name="document-revision">
<style>/* Boilerplate: style-autolinks */
.css.css, .property.property, .descriptor.descriptor {
color: var(--a-normal-text);
Expand Down Expand Up @@ -1005,7 +1005,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Trusted Types</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-01-31">31 January 2024</time></p>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-02-01">1 February 2024</time></p>
<details open>
<summary>More details about this document</summary>
<div data-fill-with="spec-metadata">
Expand Down Expand Up @@ -1264,7 +1264,6 @@ <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicy-createXXX.html" title="trusted-types/TrustedTypePolicy-createXXX.html">TrustedTypePolicy-createXXX.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicy-createXXX.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicy-createXXX.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicy-CSP-no-name.html" title="trusted-types/TrustedTypePolicy-CSP-no-name.html">TrustedTypePolicy-CSP-no-name.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicy-CSP-no-name.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicy-CSP-no-name.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicy-CSP-wildcard.html" title="trusted-types/TrustedTypePolicy-CSP-wildcard.html">TrustedTypePolicy-CSP-wildcard.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicy-CSP-wildcard.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicy-CSP-wildcard.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicyFactory-blocking.html" title="trusted-types/TrustedTypePolicyFactory-blocking.html">TrustedTypePolicyFactory-blocking.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicyFactory-blocking.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicyFactory-blocking.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicyFactory-constants.html" title="trusted-types/TrustedTypePolicyFactory-constants.html">TrustedTypePolicyFactory-constants.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicyFactory-constants.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicyFactory-constants.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html" title="trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html">TrustedTypePolicyFactory-createPolicy-createXYZTests.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html"><small>(source)</small></a>
<li class="wpt-test"><a class="wpt-name" href="https://wpt.fyi/results/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.html" title="trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.html">TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.html</a> <a class="wpt-live" href="http://wpt.live/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.html"><small>(live test)</small></a> <a class="wpt-source" href="https://github.com/web-platform-tests/wpt/blob/master/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.html"><small>(source)</small></a>
Expand Down Expand Up @@ -2107,7 +2106,7 @@ <h3 class="heading settled" data-level="3.6" id="get-trusted-type-compliant-stri
<ol>
<li data-md>
<p>Let <var>disposition</var> be the result of executing <a data-link-type="abstract-op" href="#abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy" id="ref-for-abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy">Should sink type mismatch violation be blocked by Content Security Policy?</a> algorithm,
passing <var>global</var>, <var>input</var> as <var>source</var>, <var>sinkGroup</var> and <var>sink</var>.</p>
passing <var>global</var>, stringified <var>input</var> as <var>source</var>, <var>sinkGroup</var> and <var>sink</var>.</p>
<li data-md>
<p>If <var>disposition</var> is <code>“Allowed”</code>, return stringified <var>input</var> and abort further steps.</p>
<p class="note" role="note"><span class="marker">Note:</span> This step assures that the default policy rejection will be reported, but ignored in a report-only mode.</p>
Expand Down

0 comments on commit 6026b90

Please sign in to comment.