Re: [web-bluetooth] "current settings object's relevant global object" is not defined (#593)

The intent of this text is to attach these steps to the "loss of visibility" or "loss of full activity" event on any document. It feels like it should be something like,

> When the user agent determines that a document is no longer [fully active](https://html.spec.whatwg.org/multipage/browsers.html#fully-active), it must run these steps:
> 1. Let _document_ be that document.
> 2. ...

The [abort all active watchAdvertisements](https://webbluetoothcg.github.io/web-bluetooth/#abort-all-active-watchadvertisements) algorithm should really be taking the document (or the document's `navigator.bluetooth` instance) as a parameter.

Does that make sense? Can you suggest the proper way to create such an event listener?

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/593#issuecomment-1251589406 using your GitHub account


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

Received on Monday, 19 September 2022 21:37:50 UTC