WebBluetoothCG / web-bluetooth

Bluetooth support for the Web.
http://www.w3.org/community/web-bluetooth/
Other
1.4k stars 189 forks source link

[WebDriver BiDi] Respect user context #637

Open sadym-chromium opened 1 week ago

sadym-chromium commented 1 week ago

In WebDrive BiDi, there is a concept of user context, which is similar to CDP's BrowserContext, which, in turn, is similar to Chrome's incognito profile.

Should Bluetooth Simulation be a BrowserContext-specific, or it should be shared between all the BrowserContexts?

Related issue: https://github.com/WebBluetoothCG/web-bluetooth/issues/635

reillyeon commented 1 week ago

I'm not sure whether this is really separate from the other issue. In normal operation real Bluetooth devices are global to the whole system so from that perspective having simulated Bluetooth devices be specific to a particular tab or profile is a departure from normal behavior. On the other hand it's probably useful for test automation to not have the operations of one test interfering with another, which browser-wide simulated Bluetooth devices could do.

Implementation concerns however mean that it's hard to mix providing simulated and real Bluetooth devices to the same page and so we're probably stuck with having simulated devices more tightly scoped.