Skip to content

Commit

Permalink
Merge pull request #163 from miketaylr/issues/151/1
Browse files Browse the repository at this point in the history
Issue #151 - Make it possible to reject a promise from getHighEntropyValues
  • Loading branch information
miketaylr authored Jan 8, 2021
2 parents e3b93ea + 11548b9 commit 1e6cc1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ The <dfn method for="NavigatorUA"><code>getHighEntropyValues(|hints|)</code></df

1. Let |p| be a [=a new promise=] created in the [=current realm=].

2. Run the following steps [=in parallel=]:
2. If the [=user agent=] decides one or more values in |hints| should not be returned, then [=reject=] and return |p| with a "{{NotAllowedError}}".

ISSUE(wicg/ua-client-hints): We can improve upon when and why a UA decides to refuse a hint once [Issue #151](https://github.com/WICG/ua-client-hints/issues/151) is resolved.

3. Otherwise, run the following steps [=in parallel=]:

1. Let |uaData| be a new {{UADataValues}}.

Expand All @@ -515,7 +519,7 @@ The <dfn method for="NavigatorUA"><code>getHighEntropyValues(|hints|)</code></df

7. [=Queue a task=] on the [=permission task source=] to [=resolve=] |p| with |uaData|.

3. Return |p|.
4. Return |p|.

Security and Privacy Considerations {#security-privacy}
===================================
Expand Down

0 comments on commit 1e6cc1c

Please sign in to comment.