- From: Brian Burg <notifications@github.com>
- Date: Wed, 04 Oct 2017 16:44:30 +0000 (UTC)
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/permissions/pull/151/review/67130432@github.com>
burg commented on this pull request. > + <code>|rootDesc|.{{PermissionDescriptor/name}}</code> isn't <a>allowed in + non-secure contexts</a>, return <a>error</a> with <a>error code</a> + <a>invalid argument</a>.</li> + <li>Let |state| by the result of <a>getting the property</a> "`state`" + from the |parameters| argument.</li> + <li>If |state| is neither "`granted`", "`prompt`", nor "`denied`", return + <a>error</a> with <a>error code</a> <a>invalid argument</a>.</li> + <li>Let |allRealms| be the result of <a>getting the property</a> + "`allRealms`" from the |parameters| argument.</a></li> + <li>If |allRealms| is `undefined`, let |allRealms| be false.</li> + <li>If |allRealms| is neither true nor false, return <a>error</a> with + <a>error code</a> <a>invalid argument</a>.</li> + <li>Interpret the value of |state| as <a>new information about the user's + intent</a>. If |allRealms| is true, this information applies to other + <a>realms</a> with the <a>same origin</a>. + <li>Return <a>success</a> with data `null`.</li> I need to read more to understand the realms concept. But based on what I have read here, I don't think it is necessary for testing most common user flows related to permissions. When a WebDriver test triggers getUserMedia() by executing script, the test knows what browsing context is active, and can change permissions values as appropriate if different behavior is desired per browsing context. A UA like Safari may have per-site permissions or global permissions, but this seems irrelevant since Automation sessions do not inherit any of the persistent UA state. -- 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/151#discussion_r142726414
Received on Wednesday, 4 October 2017 16:44:54 UTC