Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes resulting from 28 February PING privacy review #843

Merged
merged 18 commits into from
Mar 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
71 changes: 45 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1375,17 +1375,9 @@ <h2>
"payment-request/payment-request-canmakepayment-method-protection.https.html">
Optionally, at the <a>top-level browsing context</a>'s discretion,
return <a>a promise rejected with</a> a "<a>NotAllowedError</a>" <a>
DOMException</a>.
<p class="note" data-link-for="PaymentRequest">
This allows user agents to apply heuristics to detect and prevent
abuse of the <a>canMakePayment()</a> method for fingerprinting
purposes, such as creating <a>PaymentRequest</a> objects with a
variety of supported <a>payment methods</a> and calling
<a>canMakePayment()</a> on them one after the other. For example,
a user agent may restrict the number of successful calls that can
be made based on the <a>top-level browsing context</a> or the
time period in which those calls were made.
</p>
DOMException</a>. As described in section <a href=
"#canmakepayment-protections"></a>, the user agent may limit the
rate at which a page can call <a>canMakePayment()</a>.
</li>
<li>Let <var>hasHandlerPromise</var> be <a>a new promise</a>.
</li>
Expand Down Expand Up @@ -5191,7 +5183,7 @@ <h2>
</ol>
</section>
</section>
<section class="informative">
<section id="privacy">
<h2>
Privacy and Security Considerations
</h2>
Expand Down Expand Up @@ -5271,11 +5263,6 @@ <h2>
<a>payment method identifier</a>.
</p>
</section>
</section>
<section id="privacy">
<h2>
Privacy Considerations
</h2>
<section>
<h2>
Exposing user information
Expand All @@ -5301,17 +5288,49 @@ <h2>
consent.
</p>
</section>
<section>
<h2>
canMakePayment() protections
<section class="informative">
<h2 id="canmakepayment-protections">
<code>canMakePayment()</code> protections
</h2>
<p data-link-for="PaymentRequest">
The <a>canMakePayment()</a> method enables the payee to call
<a>show()</a> if the user is ready to take advantage of the API, or
to fall back to a legacy checkout experience if not. Because this
method shares some information with the payee, user agents are
expected to protect the user from abuse of the method, for example,
by restricting the number or frequency of calls.
The <a>canMakePayment()</a> method enables the payee to determine —
before calling <a>show()</a> — whether the user agent knows of any
<a>payment handlers</a> available to the user that support the
<a>payment methods</a> provided to the <a>PaymentRequest</a>
<a data-lt="PaymentRequest.PaymentRequest()">constructor</a>. If no
<a>payment handlers</a> support the <a>payment methods</a>, this
enables the payee to fall back to a legacy checkout experience.
Because this method shares some potentially unique information with
the payee, user agents are expected to protect the user from abuse of
the method. For example, user agents can reduce user fingerprinting
by:
</p>
<ul data-link-for="PaymentRequest">
<li>Allowing the user to configure the user agent to turn off
<a>canMakePayment()</a>, which would return <a>a promise rejected
with</a> a "<a>NotAllowedError</a>" <a>DOMException</a>.
</li>
<li>Rate-limiting the frequency of calls to <a>canMakePayment()</a>
with different parameters.
</li>
</ul>
<p>
For rate-limiting the user agent might look at repeated calls from:
</p>
<ul>
<li>the same effective top-level domain plus one (eTLD+1).
</li>
<li>the top-level browsing context. Alternatively, the user agent may
block access to the API entirely for origins know to be bad actors.
</li>
<li>the origin of an <a>iframe</a> or popup window.
</li>
</ul>
<p>
These rate-limiting techniques intend to increase the cost associated
with repeated calls, whether it is the cost of managing multiple
eTLDs or the user experience friction of opening multiple windows
(tabs or pop-ups).
</p>
</section>
</section>
Expand Down