You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
When youtube videos are embed in the page, it gives error:
Uncaught (in promise) Error: navigator.getBattery not supported.
at Promise (chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/content/scripts/navigator.js:12)
at Promise (<anonymous>)
at Navigator.getBattery (chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/content/scripts/navigator.js:12)
Multiple videos give same multiple errors:
Even after putting shield down it gives same error:
Not able to reproduce on:
Chrome 'Version 59.0.3071.115 (Official Build) (64-bit)'
Firefox 52.0.2 (64-bit)
Safari Version 10.1.1 (12603.2.4)
Current version of Brave | 0.17.13
Operating System: macOS Sierra 10.12.5
For privacy reasons, navigator.getBattery is not available in Brave. (Issue #1885, commit 7e3d749) It is also not available in Firefox or WebKit-based browsers, but only Chromium-based browsers.
YouTube probably assumes Brave supports navigator.getBattery since it's Chromium-based. Not sure how to work around that.
Honestly I do not have any use-case for 'navigator.getBattery'. I just embedded 3 videos. However the impact of this error message was that my debugger on console was getting skipped. So it was difficult for me to test feature. I used chrome for all additional testing as there was no error there.
When youtube videos are embed in the page, it gives error:
Multiple videos give same multiple errors:
Even after putting shield down it gives same error:
Not able to reproduce on:
Chrome 'Version 59.0.3071.115 (Official Build) (64-bit)'
Firefox 52.0.2 (64-bit)
Safari Version 10.1.1 (12603.2.4)
Current version of Brave | 0.17.13
Operating System: macOS Sierra 10.12.5
Video can be reproduced by inspecting the page at:
https://codepen.io/gorkhali/pen/NgmRBR
I am trying to debug my own script and because of navigator.getBattery, all debuggers are skipped.
Thank you very much.
The text was updated successfully, but these errors were encountered: