summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebengineurlscheme.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Add [since X.X] tags to enums that are missing themKaloyan Chehlarski2025-09-081-1/+1
| | | | | | Pick-to: 6.10 Change-Id: Ie121e22e18ef61d4c9ecb6fa9085889e742fb7be Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
* CRA mark src/core/apiMoss Heim2025-08-121-0/+1
| | | | | | | | QUIP: 23 Fixes: QTBUG-138720 Pick-to: 6.10 6.9 6.8 Change-Id: I9c064bef911e36c12553fc6cebb7408fb02bcc0b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Use printf-like syntax for qFatal, qWarning and qInfo where appropriatePeter Varga2025-03-111-5/+9
| | | | | | | | | | | | Also use qUtf16Printable() where appropriate. As a drive-by, replace ::GetLastError() with QSystemError::windowsComString() to get meaningful error messages instead of error codes on Windows. Pick-to: 6.8 6.9 Change-Id: I23e8a9b6b419f692dfd719f38c9a8a39086dffd2 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Adaptations for Chromium 120Allan Sandfeld Jensen2024-06-071-1/+1
| | | | | | Pick-to: 6.8 Change-Id: I487d2c6cf56fdda5fb95e6b2715e7dbc42527c2d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: QWebEngineUrlScheme: Add since information to Flag::FetchApiAllowedTopi Reinio2023-09-121-1/+1
| | | | | | | | | | This enum value is new in Qt 6.6. Pick-to: 6.6 Task-number: QTBUG-116843 Change-Id: Ia2525e7fb7ed51a5bde6b113a839c9e00ca6aff5 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update documentation for QWebEngineUrlScheme::FetchApiAllowedYigit Akcay2023-05-161-2/+3
| | | | | | | | Update the documentation to also mention that XMLHttpRequest Web API send method needs this flag if it contains a body. Change-Id: I7588fc0af441c48516e80f6c5f38b8e54771ba9a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Custom URL Schemes usable with HTML5 Fetch ApiYigit Akcay2023-02-091-0/+4
| | | | | | | | | | | | | This change adds the QWebEngineUrlScheme::FetchApiAllowed flag and test cases to test its effect. When FetchApiAllowed flag is set a custom url scheme can be used by the HTML5 fetch api. Fixes: QTBUG-88830 Change-Id: I953dd0504bf508fd8082fae5db08b7b9fc47ea1f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-221-38/+2
| | | | | | | | | | | 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>
* Include moc filesAllan Sandfeld Jensen2022-05-311-0/+2
| | | | | | | | Faster to build and gives smaller binaries Fixes: QTBUG-103291 Change-Id: Iab52995e03c13a4c5b185750028c449a19d98d93 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Improve local scheme access rulesAllan Sandfeld Jensen2022-01-281-7/+7
| | | | | | | Pick-to: 6.3 6.2 Task-number: QTBUG-96849 Change-Id: Ieb24da12a61e5e37b29ccf2d1a11b7bd863b842e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix warning on WindowsTamas Zakor2019-07-231-1/+1
| | | | | Change-Id: I05325e7011578ca66144294321b3c28a36eb45b2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add QWebEngineUrlScheme::CorsEnabled flagJüri Valdmann2019-07-181-0/+8
| | | | | | | | | | | | | Add support for enabling CORS for custom schemes. Headers for CORS are generated automatically by UrlRequestCustomJob for all CorsEnabled schemes. [ChangeLog][Custom Schemes] Added the QWebEngineUrlScheme::CorsEnabled flag for enabling cross-origin resource sharing with custom schemes. Fixes: QTBUG-75651 Change-Id: Ia17acf25ae8488f23c6b4609777a3bdbf72149ee Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cleanup coding style in src/core/apiAllan Sandfeld Jensen2019-05-031-7/+3
| | | | | Change-Id: I1c235d49a9520088142fbc89d21fc589d4037a4f Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* QWebEngineUrlScheme: Prevent registration of standard schemesJüri Valdmann2019-04-291-0/+5
| | | | | Change-Id: I05ef67b81d9b871d38fcc51639b742b2a7b8a387 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Avoid auto-linking the string 'WebEngine' to the QML typeLeena Miettinen2019-04-011-1/+1
| | | | | | | | | | Remove the previous workaround (internal \externalpage command) that was used for this purpose, and replace it with a \QWE macro that expands to the string 'Qt \WebEngine'. The backslash in the expanded string instructs QDoc not to attempt auto-linking the word. Change-Id: If4e1c95423fa07479b1af055e4760a890c0ac667 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Better error reporting for QWebEngineUrlSchemeJüri Valdmann2019-02-111-1/+32
| | | | | | | | Add warnings for late registration and invalid configuration. Fixes: QTBUG-72842 Change-Id: I2c103c3b3581112cc885c3a1b4f42c011c3510ab Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Document and safeguard usage of custom schemesAlexandru Croitor2018-12-121-2/+4
| | | | | | | | | | | | | | | | The change improves the documentation of QWebEngineUrlSchemeHandler to notify the requirement of registering a custom scheme before installing a custom scheme handler. Also start showing warnings when QWebEngineProfile::installUrlSchemeHandler() is called before a scheme is registered. Also show warnings when installing the handler using QML. Task-number: QTBUG-72079 Change-Id: If249592ea43fe2f9ad587a6ff4e8c9dedcc5d3d3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Improve QWebEngineUrlScheme APIJüri Valdmann2018-09-121-22/+22
| | | | | | | | | | | | | | | | Following feedback from 5.12 API review: - Use enum class for Syntax - Add Q_FLAG for Flags - Mark constructor from name as explicit - Rename Secure to SecureScheme - Rename Local to LocalScheme - Rename addScheme to registerScheme - Rename findScheme to schemeByName Task-number: QTBUG-70247 Change-Id: Iae332c8d9843349506e8a4b07d70f0d234597375 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix QWebEngineUrlScheme::operator== constnessJüri Valdmann2018-09-041-2/+2
| | | | | | Task-number: QTBUG-70247 Change-Id: Ic0898966d9a88a0bbcdf749c6ea7e80e054d68a3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add QWebEngineUrlScheme classJüri Valdmann2018-08-021-0/+375
Public API for the new url/url_util_qt extension to Chromium, which allows to integrate custom schemes into Chromium's url parsing library and security model. Previously custom schemes would be treated as 'unknown' schemes and rely on fallback behavior in Chromium. [ChangeLog][Custom Schemes] Added the QWebEngineUrlScheme class for configuring how custom schemes are parsed and which security restrictions should apply. Task-number: QTBUG-62536 Change-Id: I7d8b9da3ad742f568b82ccc6a2456ad35e84069b Reviewed-by: Michal Klocek <michal.klocek@qt.io>