[sensors] Currently focused area needs a top-level browsing context (#436)

kenchris has just created a new issue for https://github.com/w3c/sensors:

== Currently focused area needs a top-level browsing context  ==
> [Sensor readings](https://www.w3.org/TR/generic-sensor/#sensor-reading) are only available for [active documents](https://html.spec.whatwg.org/multipage/browsers.html#active-document) whose origin is [same origin-domain](https://html.spec.whatwg.org/multipage/origin.html#same-origin-domain) with the [currently focused area](https://html.spec.whatwg.org/multipage/interaction.html#currently-focused-area-of-a-top-level-browsing-context) document.

In Compute Pressure we do the following:

> Let |topLevelBC| to the [=browsing context=] with [=top-level browsing context/system focus=] if one exists, or return false.
> Let |focusedDocument| be the |topLevelBC|'s <a href="https://html.spec.whatwg.org/multipage/interaction.html#currently-focused-area-of-a-top-level-browsing-context">currently focused area</a>'s [=Node/node document=].
> If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin-domain=] with |focusedDocument|'s [=origin=], return true.
 

Please view or discuss this issue at https://github.com/w3c/sensors/issues/436 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 31 May 2022 12:22:09 UTC