diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-06-15 15:22:26 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-06-15 15:22:26 +0200 |
commit | 2782b750aee9194627eb3db3776005a136c51568 (patch) | |
tree | 08099ebb75d9a8019764999abff1b4baa6d3c402 | |
parent | 698d2d6b8bb68d2b26ec4435b428457b5eba1deb (diff) | |
download | qutebrowser-2782b750aee9194627eb3db3776005a136c51568.tar.gz qutebrowser-2782b750aee9194627eb3db3776005a136c51568.zip |
scripts: Add bluetooth permission for macOS
Apple documentation claims this is for iOS/watchOS/tvOS only:
https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription
However, reality tells a different story - according to Console.app, when
visiting accounts.google.com, qutebrowser/Chromium needs this permission.
Reproducible as well using the following demo page:
https://googlechrome.github.io/samples/web-bluetooth/battery-level.html
Finally, Google Chrome has the key declared as well. Note that it has
NSBluetoothPeripheralUsageDescription as well:
https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothperipheralusagedescription
...but that is deprecated, and according to my tests on macOS 10.14 and 10.15,
it's not needed.
Thanks to Apple for their wonderful documentation.... not.
Fixes #6475, hopefully for real this time.
-rwxr-xr-x | scripts/dev/build_release.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 2ca97de11..a1c6646eb 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -285,6 +285,8 @@ INFO_PLIST_UPDATES = { 'A website in qutebrowser wants to use your location information.', 'NSMicrophoneUsageDescription': 'A website in qutebrowser wants to use your microphone.', + 'NSBluetoothAlwaysUsageDescription': + 'A website in qutebrowser wants to access Bluetooth.', } |