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,

As above. I think this "should" needs to be a MUST, whereby the permission state could be modified out-of-band (e.g., the user changes the permission via browser UI)... in which case, it MUST change to reflect the new information asynchronously. However, this reads like the permission could be synchronously changed before the turn of the event loop, which I don't think is the intent (maybe it doesn't matter, but I don't think we would want to implement it that way because there will be IPC involved).

---
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#r64690922

Received on Thursday, 26 May 2016 04:42:26 UTC