Skip to content

Commit b3c4d76

Browse files
authored
Potentially trustworthy origins (#69)
* Potentially trustworthy origins The manifest and action urls must be "potentially trustworthy" e.g. https or 127.0.0.1 We do not need to refer to "secure contexts" resolves #27
1 parent 3fccfd1 commit b3c4d76

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

index.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,10 @@ <h3>
285285
</p>
286286
<p>
287287
A <dfn data-lt="web share targets">web share target</dfn> is a web
288-
site in a <a data-cite="!SECURE-CONTEXTS#secure-context">secure
289-
context</a> with a valid manifest containing a <a>share_target</a>
290-
member. A web share target is a type of <a data-cite=
288+
site with a valid manifest containing a <a>share_target</a> member. A
289+
web share target is a type of <a data-cite=
291290
"!WebShare#dfn-share-target">share target</a>.
292291
</p>
293-
<div class="issue" data-number="27"></div>
294292
<p>
295293
The steps for <dfn>post-processing the <code>share_target</code>
296294
member</dfn> is given by the following algorithm. The algorithm takes
@@ -341,6 +339,13 @@ <h3>
341339
"!appmanifest#dfn-navigation-scope">navigation scope</a> , and
342340
return <code>undefined</code>.
343341
</li>
342+
<li>If the <a data-cite="!URL#concept-url-origin">origin</a> of <var>
343+
action</var> is not <a data-cite=
344+
"!SECURE-CONTEXTS/#is-origin-trustworthy">potentially
345+
trustworthy</a>, <a data-cite=
346+
"!appmanifest#dfn-issue-a-developer-warning">issue a developer
347+
warning</a> and return <code>undefined</code>.
348+
</li>
344349
<li>Set <var>share target</var>["<a data-link-for=
345350
"ShareTarget">action</a>"] to <var>action</var>.
346351
</li>
@@ -662,10 +667,11 @@ <h2>
662667
from an online index, rather than a set of targets that the end user
663668
has explicitly installed or registered.
664669
</li>
665-
<li>The requirement that the web share target be a <a data-cite=
666-
"SECURE-CONTEXTS#secure-context">secure context</a> is to prevent
667-
private user data from being transmitted to a party that does not
668-
control the origin in question, or in clear text over the network.
670+
<li>The requirement that the web share target's origin be
671+
<a data-cite="SECURE-CONTEXTS/#is-origin-trustworthy">potentially
672+
trustworthy</a> is to prevent private user data from being
673+
transmitted to a party that does not control the origin in question,
674+
or in clear text over the network.
669675
</li>
670676
</ul>
671677
</section>

0 commit comments

Comments
 (0)