Skip to content

Commit b077861

Browse files
estark37domenic
authored andcommitted
Use img referrerpolicy attribute when fetching images
When initiating a fetch as part of the two image-fetching algorithms (see #1643), we should use the element's referrerpolicy attribute to set the referrer policy on the request. See #1531 and w3c/webappsec-referrer-policy#40.
1 parent c319051 commit b077861

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25524,6 +25524,9 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
2552425524

2552525525
<p>&#x231B; Set <var>request</var>'s <span>same-origin data-URL flag</span>.</p>
2552625526

25527+
<p>&#x231B; Set <var>request</var>'s <span>referrer policy</span> to the current state of the
25528+
element's <code data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p>
25529+
2552725530
<!--FETCH--><p>&#x231B; <span data-x="concept-fetch">Fetch</span> <var>request</var>. Let this
2552825531
instance of the <span data-x="concept-fetch">fetching</span> algorithm be associated with
2552925532
<var>image request</var>.<!-- TODO "Interaction with the Preload Scanner" from the picture spec
@@ -26416,6 +26419,9 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
2641626419
data-x="">imageset</code>", and set <var>request</var>'s <span>synchronous
2641726420
flag</span>.</p></li>
2641826421

26422+
<li><p>Set <var>request</var>'s <span>referrer policy</span> to the current state of the
26423+
element's <code data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p></li>
26424+
2641926425
<!--FETCH--><li><p>Let <var>response</var> be the result of <span
2642026426
data-x="concept-fetch">fetching</span> <var>request</var>.</p></li>
2642126427

@@ -119219,6 +119225,7 @@ INSERT INTERFACES HERE
119219119225
Elliott Sprehn,
119220119226
Elliotte Harold,
119221119227
Emilio Cobos,
119228+
Emily Stark,
119222119229
Eric Carlson,
119223119230
Eric Casler,
119224119231
Eric Lawrence,

0 commit comments

Comments
 (0)