Re: [web-bluetooth] I want to package a browser that supports webble by myself (#558)

> > Can you run code below successfully in JavaScript devtools console?
> > ```js
> > await navigator.bluetooth.requestDevice({ acceptAllDevices:true });
> > // Prompt should appear because user gesture is not needed in devtools.
> > ```
> > 
> > 
> >     
> >       
> >     
> > 
> >       
> >     
> > 
> >     
> >   
> > FYI Error comes from https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/bluetooth/bluetooth.cc;l=353;drc=3095f0ce2cadab0ffa2d0ae922ad7dffd3eeda30
> 
> I think it that can not call in bluetooth.cc,because inject javascript which implement from web bluetooth api.but webview also call in bluetooth.cc and not call inject javascript.


I changed requestDevice to requestDevice2, and found that navigator.bluetooth.xxx is not executing the JS code I injected, but calling the Chrome kernel source code, which is normal on http

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


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

Received on Friday, 10 September 2021 09:32:12 UTC