Re: [w3c/permissions] Give the UA permission to return anything it wants from query(). (#97)

> +        associated with a |descriptor|, the UA must perform the following steps.
> +        Note that these steps may wait for user input, so they should not be
> +        used from other algorithms running on the main thread. This algorithm
> +        returns either {{"denied"}} or one of the options.
> +      </p>
> +      <ol>
> +        <li>
> +          If |descriptor|'s <a>permission state</a> is {{"denied"}},
> +          return {{"denied"}} and abort these steps.
> +        </li>
> +        <li>
> +          If |descriptor|'s <a>permission state</a> is {{"granted"}}, the UA may
> +          return one of the options and abort these steps. If the UA returns
> +          without prompting, then successive <a lt="prompt the user to
> +          choose">prompts for the user to choose</a> from the same set of
> +          options with the same |descriptor| should return the same option,

Changed to 'must'. I don't think constraining changes to turn boundaries is particularly useful to authors, since this algorithm's running in parallel anyway and so you can't arrange to have two calls to it happen within the same turn. I tried to guarantee this in #96 if you want to take a look.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/97/files/247f065b3c9d8d80a94fefbcee1b83488700000c#r64833733

Received on Thursday, 26 May 2016 22:43:59 UTC