From a63e5b1f0e4b65c5ce59e705129ab368677a94a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Br=C3=BCning?= Date: Thu, 27 Jul 2023 13:19:00 +0200 Subject: Add NSCameraUsageDescription and NSMicrophoneUsageDescription to plists Quick Nano Browser and Simple Browser need this to be able to use the camera and microphone on macOS. Also document the need for signing the applications in the examples documentation. Pick-to: 6.6 Task-number: QTBUG-114939 Change-Id: I7a260a7ec62138fec8f7b4d6c1f2009eee9004d6 Reviewed-by: Leena Miettinen Reviewed-by: Anu Aliyas Reviewed-by: Michal Klocek --- examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist | 6 +++++- .../webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc | 7 +++++++ examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist | 4 ++++ examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc | 7 +++++++ 4 files changed, 23 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist index 8aa89c9ea..cac4fa1f4 100644 --- a/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist +++ b/examples/webenginequick/quicknanobrowser/Info.cmake.macos.plist @@ -27,6 +27,10 @@ NSSupportsAutomaticGraphicsSwitching NSLocationUsageDescription - Quick Nanobrowser would like to give web sites access to your location for demo purposes. + Quick Nano Browser would like to give web sites access to your location for demo purposes. + NSMicrophoneUsageDescription + Quick Nano Browser would like to give web sites access to your computer's microphone for demo purposes. + NSCameraUsageDescription + Quick Nano Browser would like to give web sites access to your computer's camera for demo purposes. diff --git a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc index 3222a69ee..8f72e67cd 100644 --- a/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc +++ b/examples/webenginequick/quicknanobrowser/doc/src/quicknanobrowser.qdoc @@ -168,6 +168,13 @@ \skipto function init(request) \printuntil } + \section1 Signing Requirement for macOS + + To allow web sites access to the location, camera, and microphone when running + \e {Quick Nano Browser} on macOS, the application needs to be signed. This is + done automatically when building, but you need to set up a valid signing identity + for the build environment. + \section1 Files and Attributions The example uses icons from the Tango Icon Library: diff --git a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist index 76f747719..7abb7e01a 100644 --- a/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist +++ b/examples/webenginewidgets/simplebrowser/Info.cmake.macos.plist @@ -28,5 +28,9 @@ NSLocationUsageDescription Simple Browser would like to give web sites access to your location for demo purposes. + NSMicrophoneUsageDescription + Simple Browser would like to give web sites access to your computer's microphone for demo purposes. + NSCameraUsageDescription + Simple Browser would like to give web sites access to your computer's camera for demo purposes. diff --git a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc index 128ba57e5..6fc807400 100644 --- a/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc +++ b/examples/webenginewidgets/simplebrowser/doc/src/simplebrowser.qdoc @@ -346,6 +346,13 @@ dialog accordingly. See \c webview.cpp and \c webauthdialog.cpp for an example of how these signals can be handled. + \section1 Signing Requirement for macOS + + To allow web sites access to the location, camera, and microphone when running + \e {Simple Browser} on macOS, the application needs to be signed. This is + done automatically when building, but you need to set up a valid signing identity + for the build environment. + \section1 Files and Attributions The example uses icons from the Tango Icon Library: -- cgit v1.2.3