Skip to content

Commit f3c8d51

Browse files
authored
Make it optional to show UI for <a ping>
Fixes #11309.
1 parent f6fb04a commit f3c8d51

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

source

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
22432243
<li><dfn data-x-href="https://infra.spec.whatwg.org/#implementation-defined">implementation-defined</dfn></li>
22442244
<li><dfn data-x-href="https://infra.spec.whatwg.org/#willful-violation">willful violation</dfn></li>
22452245
<li id="fingerprint"><span id="fingerprinting-vector"></span>
2246-
<!-- INSERT TRACKING -->
2246+
<!--INSERT TRACKING-->
22472247
<dfn data-x-href="https://infra.spec.whatwg.org/#tracking-vector">tracking vector</dfn></li>
22482248
<li><dfn data-x-href="https://infra.spec.whatwg.org/#code-point">code point</dfn> and its synonym
22492249
<dfn data-x-href="https://infra.spec.whatwg.org/#code-point">character</dfn></li>
@@ -26038,17 +26038,19 @@ document.body.appendChild(wbr);</code></pre>
2603826038
<p>User agents must ignore any entity bodies returned in the responses. User agents may close the
2603926039
connection prematurely once they start receiving a response body.</p>
2604026040

26041-
<p>When the <code data-x="attr-hyperlink-ping">ping</code> attribute is present, user agents
26042-
should clearly indicate to the user that following the hyperlink will also cause secondary
26043-
requests to be sent in the background, possibly including listing the actual target URLs.</p>
26041+
<p id="fingerprint-ping">
26042+
<!--INSERT TRACKING-->
26043+
An <code>a</code> or <code>area</code> element that creates a <span>hyperlink</span> and has
26044+
the <code data-x="attr-hyperlink-ping">ping</code> attribute is present, user agents may indicate
26045+
to the user that following the hyperlink will also cause secondary requests to be sent in the
26046+
background, possibly including listing the actual target URLs.</p>
2604426047

2604526048
<p class="example">For example, a visual user agent could include the hostnames of the target ping
2604626049
URLs along with the hyperlink's actual URL in a status bar or tooltip.</p>
2604726050

2604826051
</div>
2604926052

2605026053
<div class="note">
26051-
2605226054
<p>The <code data-x="attr-hyperlink-ping">ping</code> attribute is redundant with pre-existing
2605326055
technologies like HTTP redirects and JavaScript in allowing web pages to track which off-site
2605426056
links are most popular or allowing advertisers to track click-through rates.</p>
@@ -26061,17 +26063,9 @@ document.body.appendChild(wbr);</code></pre>
2606126063

2606226064
<li>It allows the UA to inform the user about the out-of-band notifications.</li>
2606326065

26064-
<li>It allows the user to disable the notifications without losing the underlying link
26065-
functionality.</li>
26066-
2606726066
<li>It allows the UA to optimize the use of available network bandwidth so that the target page
2606826067
loads faster.</li>
2606926068
</ul>
26070-
26071-
<p>Thus, while it is possible to track users without this feature, authors are encouraged to use
26072-
the <code data-x="attr-hyperlink-ping">ping</code> attribute so that the user agent can make the
26073-
user experience more transparent.</p>
26074-
2607526069
</div>
2607626070

2607726071
<!-- resolving ping urls happens at audit time, so base URL changes affect the values of ping
@@ -110651,7 +110645,7 @@ document.querySelector("button").addEventListener("click", bound);
110651110645

110652110646
<li>
110653110647
<p>
110654-
<!-- INSERT TRACKING-->
110648+
<!--INSERT TRACKING-->
110655110649
Set <var>attributes</var>[<code data-x="dom-ErrorEvent-message">message</code>],
110656110650
<var>attributes</var>[<code data-x="dom-ErrorEvent-filename">filename</code>],
110657110651
<var>attributes</var>[<code data-x="dom-ErrorEvent-lineno">lineno</code>], and
@@ -118546,8 +118540,9 @@ interface <dfn interface>MimeType</dfn> {
118546118540
legacy code relies on. This section specifies both the simple modern variant and the complicated
118547118541
historical one.</p>
118548118542

118549-
<!-- INSERT TRACKING -->
118550-
<p>Each user agent has a <dfn>PDF viewer supported</dfn> boolean, whose value is
118543+
<p id="fingerprint-pdfViewerEnabled">
118544+
<!--INSERT TRACKING-->
118545+
Each user agent has a <dfn>PDF viewer supported</dfn> boolean, whose value is
118551118546
<span>implementation-defined</span> (and might vary according to user preferences).</p>
118552118547

118553118548
<p class="note">This value also impacts the <span data-x="navigate">navigation</span> processing
@@ -120778,7 +120773,7 @@ data:&nbsp;test
120778120773
designed to not enable cross-site scripting attacks.</p>
120779120774

120780120775
<p class="note" id="fingerprint-postMessage">
120781-
<!-- INSERT TRACKING -->
120776+
<!--INSERT TRACKING-->
120782120777
The <code data-x="dom-window-postMessage">postMessage()</code> API can be used as a <span>tracking
120783120778
vector</span>.</p>
120784120779

0 commit comments

Comments
 (0)