[web-nfc] Pull Request: Proper document access in page visibility change steps

johannhof has just submitted a new pull request for https://github.com/w3c/web-nfc:

== Proper document access in page visibility change steps ==
As I learned from @Domenic, "relevant global object" cannot be used on
"current settings object", only on platform objects
(https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global)

Luckily, the HTML spec already passes visibilityState and document to
other specifications running page visibility change steps. So we can
just use those directly here.

See https://github.com/w3c/web-nfc/pull/641


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

Received on Monday, 28 March 2022 17:13:45 UTC