summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/simplebrowser
Commit message (Collapse)AuthorAgeFilesLines
* Examples: Start simplebrowser with OTR profile in single-process modePeter Varga2025-10-311-1/+15
| | | | | | | | | | | | | | Single-process mode doesn’t allow the use of multiple profiles. Qt WebEngine creates an off-the-record (OTR) profile by default, but simplebrowser then attempts to create a non-OTR profile for browsing. Creating a second profile results in a fatal error. Detect single-process mode, and if it is enabled, make the first window use the OTR profile. This allows the browser to test single-process issues without crashing on start. Change-Id: I1f9d7f151054cc4f1bd27f59924032dc4502b646 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Udate the webengine example .ui filesFriedemann Kleint2025-09-175-22/+41
| | | | | | | | | | | | This makes syncing examples with PySide easier. Load and save them using Qt Widgets Designer to get fully qualified enumerations and to adapt to increased minimum sizes. Pick-to: 6.10 Task-number: PYSIDE-2206 Change-Id: Ibfc5a3dfb28211b5557b0f9bc50e86572772c29c Reviewed-by: Moss Heim <moss.heim@qt.io>
* Minor. Add deployment script to simplebrowser exampleMichal Klocek2025-05-061-12/+12
| | | | | | | | | Make simplebrowser deployable. Pick-to: 6.9 Change-Id: I4717c30d1048c0c76306a71c657499b997a146c4 Reviewed-by: Moss Heim <moss.heim@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Docs: fix typoMoss Heim2025-03-111-1/+1
| | | | | | Pick-to: 6.9 6.8 Change-Id: I0e973f599218a719aa8cff0ce65c4d35cefe4b3f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Minor. Open pdf files with simplebrowserMichal Klocek2025-03-061-2/+3
| | | | | | | Add *.pdf to open dialog filter. Change-Id: Ifc70c1dc1356341bea78d46f775a2c517e041b15 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add QWebEngineProfileBuilder classAnu Aliyas2024-12-041-1/+3
| | | | | | | | | | | | | | | | | | | | This is a wrapper designed to handle profile construction. The QWebEngineProfile class allows the modification of profile storage properties, which is against chromium profile design. Changing storage properties requires the recreation of storage and network context leading to hacks, which in turn leads to bugs. The QWebEngineProfileBuilder aims to prevent modification of storage properties and set them at the profile creation time. The current change introduces new APIs without deprecating the storage setters in the QWebEngineProfile class. The final goal is to deprecate the storage setters and constructor from QWebEngineProfile and use the QWebEngineProfileBuilder to create profiles. Task-number: QTBUG-66068 Change-Id: I3c2562c9e1445708f0dbdeae5783a8c7d38313af Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add REUSE.toml files and missing licensesLucie Gérard2024-10-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | REUSE.toml files are read by reuse to complement or override the copyright and licensing information found in file. The use of REUSE.toml files was introduced in REUSE version 3.1.0a1. This reuse version is compatible with reuse specification version 3.2 [1]. With this commit's files, * The SPDX document generated by reuse spdx conforms to SPDX 2.3, * The reuse lint command reports that the Qt project is reuse compliant. In order to be reuse compliant all the licenses referenced in file or within a REUSE.toml file must be present in the LICENSES directory at the base of the module. The missing licenses are added. [1]: https://reuse.software/spec-3.2/ Task-number: QTBUG-124453 Task-number: QTBUG-125211 Pick-to: 6.8 Change-Id: Ic8c34b884bae1151f5d912f375bf87378e6e9a3d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Permission manager: separate tracking of transient permissionsKaloyan Chehlarski2024-08-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the rewrite of the permissions API, transient (a.k.a non-persistent) permissions still passed through the persistent store sometimes, but were filtered out when using user-facing APIs. Unfortunately, thisstill presented some edge cases in the AskEveryTime permission policy mode. This change modifies the PermissionManagerQt class to store a second set of permissions, and associate them with a RenderFrameHost the way the Chromium API is designed to do anyway. This way, a permission will be kept around for the lifetime of a web page, and calling JavaScript APIs that trigger checks for permission state will work properly (e.g. navigator.mediaDevices.enumerateDevices). The new store is regularly cleaned up to make sure expired permissions are purged before they impact performance. As a side effect, this change also introduces pre-granting of non-persistent permissions, which was the biggest omission in the permissions rewrite. In those cases, the permissions will be temporarily stored inside the persistent store, and moved to the transient one the next time they're queried (and can thus be associated with a RenderFrameHost). This also fixes some extremely broken test cases that relied on invalid web API. Fixes: QTBUG-127951 Pick-to: 6.8 Change-Id: Ic084af7673ea0b255d98d94382e77323bb5e7ab0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* fix conditional redundancy for receivedBytesTian Shilin2024-08-161-1/+5
| | | | | | | | | | | | In updateWidget,receivedBytes / m_timeAdded.elapsed() * 1000 may divide by zero,if m_timeAdded.elapsed() returns 0, it will cause the denominator in the division to be zero, which will trigger a warning or error, to fix this, check the m_timeAdded.elapsed() is zero, if it is, you can set a default value () or just set bytesPerSecond to 0 to avoid dividing by zero. Pick-to: 6.8 6.7 Change-Id: Id73b287d44241f97271308f85c64d4830b944948 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* fix conditional redundancy for totalBytesTian Shilin2024-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | m_progressBar->setValue(qRound(100 * receivedBytes / totalBytes)); There is a potential risk of de-zeroing here, since receivedBytes / totalBytes will trigger a runtime error if totalBytes is zero. In addition, if totalBytes is always greater than or equal to 0, then checking for totalBytes >= 0 is actually redundant, since the concern should be that totalBytes is not zero. To ensure the robustness of the code, a check that totalBytes is zero should be added to prevent divide-by-zero errors. By ensuring that totalBytes is greater than zero, this improvement not only avoids the risk of de-zeroing, but also ensures that the percentage calculation of the progress bar is meaningful. At the same time, for cases where totalBytes is 0 or unknown, the progress bar is displayed as 0% and the format is "unknown size". This is a safer way to handle the situation and is more in line with the needs of the actual application. Pick-to: 6.8 6.7 Change-Id: I7537243e375f336f5c68ef1cc6ec8ade8fa16e5c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QWebEnginePermission: Post-API reviewKaloyan Chehlarski2024-07-031-12/+16
| | | | | | | | | | | | | | | This commit contains fixes for the issues found during the API review of the new permissions API. In particular: - All new enums are now scoped - Replaced isTransient with its opposite, isPersistent - Renamed Feature to PermissionType - Made origin() return a non-const QUrl - Renamed PersistentPermissionsPolicy members to be more concise - Fixed a couple of bugs in the implementation - Updated documentation Change-Id: Idf84e1c9ba3ae803ef4686e1caa7f3e6c198c87d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Replace urn:dje license identifier with SPDX compatible oneKai Köhne2024-06-241-2/+1
| | | | | | | | | | | | We aim for using only valid SPDX expressions in LicenseId fields. But SPDX does not contain a generic 'Public Domain' license, which is why we were going for urn.dje licenses originally. Anyhow, best practice is to use custom LicenseRef- licenses in this case. Task-number: QTBUG-126403 Pick-to: 6.7 6.8 Change-Id: I1d050ae42603168c6a4c9d44eeb7fdd6767af060 Reviewed-by: Lucie Gerard <lucie.gerard@qt.io>
* Make ImageAnimationPolicy a scoped enumAllan Sandfeld Jensen2024-06-201-6/+6
| | | | | | Pick-to: 6.8 Change-Id: I2c03c6d56d18f37e60b287c337c67718178fbb2b Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Add QWebEnginePermission and rewrite permissions APIKaloyan Chehlarski2024-06-032-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the addition of permission persistence, it's now important for us to have an API for querying previously granted/denied permissions, so that they can be revoked at a later point. This change does the bulk of the work to get us there, by introducing a new type representing a single permission for a given URL/Feature pair. This type holds no information about the permission's state; it is simply an accessor object which allows its user to query the current status of the permission, grant/deny it, or reset it back to its initial state (so, delete it from storage). This provides application developers an easy way to store/modify lists of permissions without having to define their own custom types. A subsequent change will expand the API to provide a list of all permissions for a given profile. The current API (in QWebEnginePage and QQuickWebEngineView) has been marked as deprecated, but has not been disabled to ensure a smooth transition for developers. [ChangeLog][QtWebEngineCore][QWebEnginePage] Deprecated old permissions API [ChangeLog][QtWebEngineQuick][WebEngineView] Deprecated old permissions API [ChangeLog][QtWebEngineCore] Added new API for querying and modifying website permissions. [ChangeLog][QtWebEngineQuick] Added new API for querying and modifying website permissions. Pick-to: 6.8 Change-Id: I8661cdc26bbd6dcde6403d29cc083bcea1a49ccc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Allow checking whether certificate error comes from a page resourceKaloyan Chehlarski2024-05-172-2/+13
| | | | | | | | | | | | | | | | | | | | | | Currently, all certificate errors are handled the same way, regardless of whether they come from the main frame or from an outside resource. On the user side, this means that all certificate errors for resources trigger a pop-up claiming the page is unsafe. Other browsers do not do this, and instead automatically reject bad certificates for resources. This change extends the QWebEngineCertificateError API to allow querying for whether the error comes from the main frame, or from a resource. This information is already supplied by Chromium, but we previously just ignored it. With this, application developers may now choose to auto-reject resource errors just as Chrome does. The simple and quick nano browser examples have been updated to reject certificate errors coming from a page resource. Task-number: QTBUG-92009 Change-Id: Id38b21f569318d7a83332d4ba69cb27d14b53430 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update simplebrowser example to use onbeforeunloadMoss Heim2024-05-022-1/+23
| | | | | | | | | | | | | Previously simplebrowser did not make use of the RequestClose webaction to trigger the beforeunload JavaScript event. This meant that closing a tab would not trigger this event or a confirmation dialog, but reloading a tab would. This commit hooks up the appropriate signal in the example code. Fixes: QTBUG-124004 Change-Id: I0a4ce242b6c2f89583504841d817285610be0bd0 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Correct license for examples filesLucie Gérard2024-04-093-3/+3
| | | | | | | | | | | | | Example takes precedence over build system file type. According to QUIP-18 [1], all examples file should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I558c6f409a480835d335101577ae633194b0559d Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* simplebrowser example: Use new theme iconsFriedemann Kleint2024-04-053-7/+14
| | | | | | Pick-to: 6.7 Change-Id: I1fe5fe8620055eec7c7fd4831459b0aa39864f97 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add granular permission for clipboard-read/writeMoss Heim2024-03-111-0/+2
| | | | | | | | | | | | | | | Previously, permissions for clipboard access could only be managed through the JavascriptCanAccessClipboard and JavascriptCanPaste settings. This change allows copy/paste to be handled the same way as notification and geolocation permissions. If both JavascriptCanAccessClipboard and JavascriptCanPaste are enabled, permissions will be granted unconditionally without a feature request being made. Fixes: QTBUG-77450 Change-Id: I383e27e244ced3d6b7988644e38d2307c6267f76 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add setting method to set image animation policyAnu Aliyas2024-03-072-0/+64
| | | | | | | | - added a method to set image animation policy in QWebEngineSettings Fixes: QTBUG-86154 Change-Id: I8b3ab6067f9cff4219b0da90bb8601406cb98e24 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update QWebEngineWebAuthUxRequest based on 6.7 API review commentAnu Aliyas2024-01-175-53/+53
| | | | | | | | | | | - Modified WebAuthUXState as enum class - Renamed QWebEngineWebAuthUXRequest as QWebEngineWebAuthUxRequest - Renamed QWebEngineWebAuthPINRequest as QWebEngineWebAuthPinRequest - Replaced all occurrence of UX and PIN with Ux and Pin respectively Fixes: 6.7 Change-Id: Iaf0b4c93e0dfa3508a604f7d6562c4401ff800af Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add new API for screen capturingMartin Negyokru2023-12-154-0/+13
| | | | | | | | | | | | [ChangeLog][WebEngineCore] Add QWebEnginePage::desktopMediaRequested() signal [ChangeLog][WebEngineQuick] Add QQuickWebEngineView::desktopMediaRequested() signal Pick-to: 6.7 Fixes: QTBUG-112142 Task-number: QTBUG-70077 Change-Id: I4bfad88732b45fb68b77f7617440bcb50b248a11 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Modify copyright format in qt_attribution.jsonLucie Gérard2023-11-221-9/+9
| | | | | | | | | Multiline copyright entries are entered via string array. Task-number: QTBUG-111873 Pick-to: 6.5 6.6 Change-Id: I1b90e5333505227db66bc25d3baba8311afda37d Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Modify the file system access request window titleAnu Aliyas2023-09-141-1/+1
| | | | | | | | - Corrected the typo in the file system access window title. Pick-to: 6.6 Change-Id: I9667726527e90477f6602e9ac8acf1a68742abe7 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add initial internal version pageMichal Klocek2023-08-111-1/+1
| | | | | | | | | | | | | | | | | We kept urls in examples to point to company website. However this site is heavy to load and moreover it changes overtime leaving example screenshots obsolete. Introduce internal qt version web ui page which will be default page for examples and which displays basic information and can work offline. For start show version info and command line options for chrome://qt Pick-to: 6.6 Change-Id: I0271ce6e7b152efe4942a6240b0c74ba382d5fcc Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add NSCameraUsageDescription and NSMicrophoneUsageDescription to plistsMichael Brüning2023-08-112-0/+11
| | | | | | | | | | | | | | | 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 <riitta-leena.miettinen@qt.io> Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Update example category namesKai Köhne2023-08-101-0/+1
| | | | | | | | | | | | | | | | WebEngine examples are generally added to the new 'Web Technologies' category - only Nano Browser remains also in the 'Application Examples' category. The 2 Qt PDF examples are placed in the 'Graphics & Multimedia' category. This is not ideal, but from the existing categories the arguably best matching one. Pick-to: 6.5 6.6 Task-number: QTBUG-115174 Change-Id: I3824272f62a4940f91041c8694fd2a06929863ed Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Fix compilation issue on MAC OS with -debug-and-release configure optionAnu Aliyas2023-08-011-1/+7
| | | | | | | - Updated the application's path for code signing. Change-Id: I8469d573ba5f952d02734bc75e33b34f0c6e4494 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix geolocation permissions to use new Qt Permissions APIMichael Brüning2023-07-262-0/+45
| | | | | | | | | | | | | | | QtPositioningHelper now uses the Qt Permissions API. Also fixup the examples Simple Browser, Quick Nano Browser and Maps to use the right key on macOS and sign the application as part of the build process Moves the Geopermission auto tests to manual tests for webenginequick and webenginewidgets on macOS. Pick-to: 6.6 Fixes: QTBUG-114939 Change-Id: Id6771889f20c866d2fcdbb477dbbb7da30367043 Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Support FIDO2 user verificationAnu Aliyas2023-07-128-3/+552
| | | | | | | | | | | - Implemented AuthenticatorRequestClientDelegateQt support to handle authenticator requests. - Added FIDO user verification and resident credential support Fixes: QTBUG-90938 Fixes: QTBUG-90941 Change-Id: I6367791e1e9e8aaac27c376408377f838832f426 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Remove recipebrowser and simplebrowser from Application ExamplesKimmo Leppälä2023-06-271-1/+0
| | | | | | | | | | There's already nanobrowser in Application Examples so this removes the other webengine examples from that category. Pick-to: 6.5.2 6.5 6.6 Change-Id: I1f6dc7be7cb0ad4b0ac8134eb438ac0a0db7a5d3 Reviewed-by: Tuukka Turunen <tuukka.turunen@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Set example category on Widgets examplesAllan Sandfeld Jensen2023-06-201-0/+1
| | | | | | | Pick-to: 6.6 6.5 6.5.2 Change-Id: I795da5e37bd084e5c101aaed14fda5a9b3be4b92 Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Add Windows 10 compatible manifest to examplesMartin Negyokru2023-06-163-0/+29
| | | | | | | | | | | | This manifest is required for User-Agent to report the correct Windows versions. Document Windows App Manifest in platform-notes and mention it in the httpUserAgent documentation. Pick-to: 6.6 Fixes: QTBUG-63021 Change-Id: Ie3896c50a0a912742e8d1a0dc20f3305b343d3f4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Simple browser example: Fix up the codeFriedemann Kleint2023-04-053-34/+6
| | | | | | | | | | | | | - Remove duplicated unused helper questionForFeature() - Replace lambdas by slots where possible - Fix clang warning about using multiple arguments to QString::arg() - Remove dead code in WebView::contextMenuEvent() which checks on inspectElement == actions.cend(), but is within an "if" checking the same condition. Pick-to: 6.5 Change-Id: Ie85a3811f4f5a8c3fa9550d4eb2ca5bf79e39084 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Add helper function to remove key backspaceFriedemann Kleint2023-03-301-15/+16
| | | | | | | | It otherwise looks like a bit like an oversight or bug. Pick-to: 6.5 Change-Id: If11fe034fa91022eb70c99b8a916fb35ac86f75d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Fix clazy warningsFriedemann Kleint2023-03-302-17/+13
| | | | | | | | | - else after return - Use multiarg version of QString::arg(QString) Pick-to: 6.5 Change-Id: Iceff3ee8877b866b5b9187cd85da54864ab17834 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Use member initializationFriedemann Kleint2023-03-289-25/+16
| | | | | | | | As a drive-by, make constructors explicit. Pick-to: 6.5 Change-Id: I5c8e3d8049504afa4aa5a0d7c1a85bb59eb3cd38 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Use modern string literalsFriedemann Kleint2023-03-286-19/+31
| | | | | | Pick-to: 6.5 Change-Id: I14ed5efed1bf228239f95a8a4addce5d19a9f220 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Disable WebEngineContext dump by defaultPeter Varga2023-01-191-0/+2
| | | | | | | | | | | | | Keep it enabled for simplebrowser and quicknanobrowser examples. Also add documentation how to enable it. [ChangeLog][WebEngineCore] Disabled WebEngineContext dump by default. Fixes: QTBUG-109040 Pick-to: 6.5 Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Mention WebSockets in docsSzabolcs David2022-11-031-0/+2
| | | | | | | | | | | | | | | | QtWebChannel has an example for a use case of HTML web sockets and connectivity of the native side of application. We don't need to create a new example of our own by mentioning this. However, the chat client application uses JS libraries served from remote, so we have to enable LocalContentCanAccessRemoteUrls setting to make it work out of the box in WebEngine example browsers. Desktop Chrome works the same way by default. Task-number: QTBUG-106505 Change-Id: I9020d0a09a88de16d32af063aee5d55c9837f484 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Simple Browser example: Fix startup flicker on WindowsFriedemann Kleint2022-10-134-4/+16
| | | | | | | | | Ensure the initial browser tab is added before show(), avoiding the flicker of RHI switching. Pick-to: 6.4 Change-Id: I0aaa5a4128f089bfc9ef68d25cab44da78962eb6 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-261-1/+1
| | | | | | Task-number: QTBUG-105718 Change-Id: I2ad190e5536cdbdc8d2656e61892545d66911a02 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix simplebrowser build with Qt 6.3Peter Varga2022-08-182-0/+10
| | | | | | | Pick-to: 6.4 Task-number: QTBUG-97829 Change-Id: I0034a1350bf1a0bf01914f0216dd37859e3e7163 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-071-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I118bd63694cfe2c9a413af4a38828a31727f8e86 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-2218-859/+36
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I869ffda1080e283f231eb0dc4477b260f2054d99 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Simplebrowser: Add inspector action to Window menuPeter Varga2022-06-151-1/+9
| | | | | | | This is handy for debugging pages which override context menu. Change-Id: I4eedf0dc8e00e15716b896608db27cdbc6906362 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix simplebrowser build with Qt 6.2Allan Sandfeld Jensen2022-06-112-0/+12
| | | | | | | | This is a partial revert of 83e5b3c3e19deedfcad0dcb8116b3e6c931b8f6c Pick-to: 6.4 6.3 Change-Id: I79e814075415585b4d4a3b04a92b3ad84d2dfa53 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Implement File System Access permission APISzabolcs David2022-05-262-0/+34
| | | | | | | | | | | | Allow web pages to safely access the local file system by exposing a permission API. Permissions are stored in-memory. The built-in access rules are the same as the behavior of Chrome: JS can't request access to system libraries, sensitive directories and the application itself. Task-number: QTBUG-97829 Change-Id: Ic675422cafbad5a90243b4fa8f0749c46afa192c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-02-251-8/+5
| | | | | | | | | | | | | | | | | - Remove "# generated from xyz.pro" comment from pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: I09083474432ce171e8ee1e28120b062f2ef3c052 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Simplebrowser: fix compiler warningsBalazs Egedi2022-02-102-3/+3
| | | | | | | | Adapted to the new addAction syntax. Pick-to: 6.3 Change-Id: I260f57e8536312a6b2f53c8b55953813baf22a5c Reviewed-by: Marc Mutz <marc.mutz@qt.io>