diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-11-29 18:26:50 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-12-12 13:48:23 +0000 |
commit | e599907de9db0503b02a2d4a9be6d75e9542d6e3 (patch) | |
tree | 8b54015eaa8fe1ff1e66df04c5ebad1b61a6e1f9 /src/core/api/qwebengineurlscheme.cpp | |
parent | 21112a89e3d742451d6b449fc7075d51266fe709 (diff) |
Document and safeguard usage of custom schemes
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>
Diffstat (limited to 'src/core/api/qwebengineurlscheme.cpp')
-rw-r--r-- | src/core/api/qwebengineurlscheme.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/api/qwebengineurlscheme.cpp b/src/core/api/qwebengineurlscheme.cpp index f36f3335b..d63599163 100644 --- a/src/core/api/qwebengineurlscheme.cpp +++ b/src/core/api/qwebengineurlscheme.cpp @@ -84,8 +84,10 @@ public: URLs. Custom URL schemes must be configured early at application startup, before - creating any Qt WebEngine classes. The configuration applies globally to all - profiles. + creating any Qt WebEngine classes. In general this means the schemes need to be configured before + a QGuiApplication or QApplication instance is created. + + Every registered scheme configuration applies globally to all profiles. \code int main(int argc, char **argv) |