Skip to content

Commit dcf22fa

Browse files
committed
Add note with examples for ignoring eligibility/shared-autofill
1 parent b7ad938 commit dcf22fa

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

source

+21-1
Original file line numberDiff line numberDiff line change
@@ -55618,7 +55618,7 @@ form.method === input; // => true</code></pre>
5561855618
<span data-x="concept-document-origin">origin</span>.</p></li>
5561955619
</ul>
5562055620

55621-
<div class="example">
55621+
<div class="example" id="sharedAutofillExample">
5562255622
<p>Consider the following page <code data-x="">https://pizza.example.com/</code>:</p>
5562355623

5562455624
<pre><code class="html">&lt;form method=post>
@@ -55648,6 +55648,26 @@ form.method === input; // => true</code></pre>
5564855648
feature; this prevents leaking information to the ad server.</p>
5564955649
</div>
5565055650

55651+
<div class="note">
55652+
<p>The user agent does not have to fill in all eligible form controls, and it can fill
55653+
in form controls that are not eligible. In particular, it can ignore
55654+
<code data-x="shared-autofill-feature">shared-autofill</code> depending on the type of data
55655+
to be filled and the relationships of the controls' <span>node navigable</span>s. For example:</p>
55656+
55657+
<ul>
55658+
<li><p>The user agent can ignore <code data-x="shared-autofill-feature">shared-autofill</code>
55659+
when filling in usernames and passwords which are associated to a specific
55660+
<span data-x="concept-document-origin">origin</span>.</p></li>
55661+
<li><p>The user agent can ignore <code data-x="shared-autofill-feature">shared-autofill</code>
55662+
in <code>Document</code>s whose <span>navigable</span> is not a <span>descendant</span>
55663+
of the <span>fully active descendant of a top-level traversible with user attention</span>
55664+
because payment form controls are frequently hosted in cross-origin <code>iframe</code>s
55665+
like in the <a href="#sharedAutofillExample">example above</a>.
55666+
<li><p>The user agent can fill in cross-origin form controls because the user
55667+
consented.</p></li>
55668+
</ul>
55669+
</div>
55670+
5565155671

5565255672
<h6>The <code data-x="attr-fe-autocomplete">autocomplete</code> attribute</h6>
5565355673

0 commit comments

Comments
 (0)