summaryrefslogtreecommitdiffstats
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of autorepeating KeyRelease eventsJüri Valdmann2019-10-301-0/+8
| | | | | | | | | A regression in 5.10 has resulted in the web events generated for autorepeating keys not conforming to the spec. Restore the correct behavior from 5.9. Fixes: QTBUG-77208 Change-Id: Ia2f07fd4a8ee78c4599b36aceb235c245a49d566 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Request Chromium ANGLE implementation on WindowsAllan Sandfeld Jensen2019-10-252-2/+3
| | | | | | | Chromium now separates normal EGL and ANGLE OpenGL targets. Change-Id: I59555c856a6d9862dabe531dcdb53f50311b37c2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Delete URLRequestCustomJob::m_httpStatusCodeJüri Valdmann2019-10-243-6/+1
| | | | | Change-Id: Iab2f1735ea3ef73e77e0c37d263c0771a4ffb336 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Doc: Mention NavigationTypeRedirect is new in Qt 5.14Kai Koehne2019-10-241-1/+1
| | | | | Change-Id: I44dd06e94f116a7b580c4530aaa3d142a79b196d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove NetworkDelegate access from BrowserMessageFilterAllan Sandfeld Jensen2019-10-242-15/+12
| | | | | | | This makes the code cleaner and also valid with network-service. Change-Id: I9a26f33c4a26784dc62269e386c0ae271a5c1a05 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adapt to change in DrawQuad::ShouldDrawWithBlendingAllan Sandfeld Jensen2019-10-231-7/+7
| | | | | | | | Now we need to pass 'true' as argument to get our special behavior. Change-Id: Ifdf5eb71083441350d5ca4c3971d8930cb724d7c Fixes: QTBUG-78762 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Add HTTP content-typeAllan Sandfeld Jensen2019-10-231-0/+6
| | | | | | | | Some code only checks the http content type and not the job mimetype. Change-Id: I7a2b2f5d30c2f349f2570f0422ce415eebd0f644 Fixes: QTBUG-79319 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Allan Sandfeld Jensen2019-10-223-9/+15
| | | | | | | | | | | Conflicts: examples/webengine/minimal/main.cpp src/3rdparty src/core/net/url_request_custom_job.cpp tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp Change-Id: I33994024a4be5ed787800c5718a0a443b970c36d Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Follow theme settings like Chrome doesAllan Sandfeld Jensen2019-10-211-0/+46
| | | | | | | | | Set Blink-settings based on Chromium theme settings to match Chrome defaults. Change-Id: I02975c319644583166ed3c5a0eae02975d7b14f1 Fixes: QTBUG-79347 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Improve QWebEngineFindTextResult APIv5.14.0-beta2Peter Varga2019-10-194-12/+24
| | | | | | | | | | | | Implements suggestions from 5.14 API review: - Rename activeMatchOrdinal to activeMatch - Extend documentation - Change QML import version number to 1.10 Task-number: QTBUG-77839 Change-Id: I5eae659cfb5355af8d0c878d3b5f00654c9d6d13 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Rename certificate error's chain API methodKirill Burtsev2019-10-173-5/+5
| | | | | | | | Address API review and make the name to be consistent with other methods like localCertificateChain and peerCertificateChain of QSslCertificate Change-Id: I4f115846965d31ea9a20df3b7a27c6c041c52768 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix timestamp of geoposition objectsSzabolcs David2019-10-161-1/+1
| | | | | | | | toTime() conversion function was incorrect and this resulted inaccurate timestamps when using the geolocation feature. Change-Id: I4d536a3a99bb630c9304e91f06b77b9035b0ffc6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Handle possible frame eviction on showAllan Sandfeld Jensen2019-10-161-1/+8
| | | | | | | | | | Our surface id might have been invalidated, so we need to generate a new one. And DelegatedFrameHost::WasShown needs to be called after RenderWidgetHostImpl::WasShown which cancels the eviction. Change-Id: I5761d47b11754a77e40ebde7fc5ed2e64f372613 Fixes: QTBUG-79021 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Adaptations for Chromium 77Allan Sandfeld Jensen2019-10-1161-407/+817
| | | | | | Fixes: QTBUG-77267 Change-Id: I181e24cf80ebee6991b95dde6c636f0d169b40a4 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Adaptations for Chromium 76Allan Sandfeld Jensen2019-10-1131-238/+240
| | | | | Change-Id: Id6d18a3854b572334dc1d65f1916b8991a740cd2 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Use ProtocolHandlerRegistry with network serviceJüri Valdmann2019-10-114-8/+85
| | | | | Change-Id: Ia7448fb1406536822dd245cfdb6fe7c1cf19e211 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Re-enable User Activation V2Szabolcs David2019-09-301-2/+0
| | | | | | | Fixes auto tests with synthetic keyboard events. Change-Id: Iaed47077288309fd71295a0ebda9480516f08fde Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Support qrc protocol in @match rules of user scriptsSzabolcs David2019-09-301-1/+1
| | | | | | | | | | | Pulls in the following Chromium changes: 7ac85fb4cc6 Fix building with pulseaudio 13 7956dfb8d20 Support qrc protocol in UrlPattern 9af3b1bf632 Fix pressure of tablet events Task-number: QTBUG-76173 Change-Id: Iffc21ed6eb0a99e2b96780ce4f11629d38f8b47e Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Merge remote-tracking branch 'origin/5.13' into 5.14Allan Sandfeld Jensen2019-09-2411-42/+131
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: config.tests/glibc/glibc.cpp src/3rdparty src/core/configure.json src/core/profile_io_data_qt.cpp src/webengine/configure.json src/webenginewidgets/api/qwebenginepage.cpp tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I3e1781048c3cb09bfbf7427dfc5dd1fec11a2b97
| * Add gold linker support for boot2qt buildsMichal Klocek2019-09-191-3/+0
| | | | | | | | | | | | | | Task-number: QTBUG-73216 Task-number: COIN-326 Change-Id: I1f5b83520f8ad241652b0a34726743a7ecca7307 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
| * Merge remote-tracking branch 'origin/5.12' into 5.13Liang Qi2019-09-123-6/+6
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: Ib1202bcce587f9614013105c6a836344c1727cb7
| | * Fix reporting overridable flag for QML WebEngineCertificateError typeKirill Burtsev2019-08-293-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove confusion inside CertificateErrorController constructor and overridable method by matching documentation for AllowCertificateError method of ContentBrowserClient api. Change-Id: I7e10ef71a4429dcf5acc4b714a8a45f67a2ec684 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * | Fix broken jpeg includesMichal Klocek2019-09-031-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | In Chromium 67 use of system jpeg is by default. Fix our configure. Fixes: QTBUG-77827 Change-Id: I6319f0fab9983d63c733a9723847ad793141e073 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Add doc's cross-references for web notification example and api methodsKirill Burtsev2019-08-291-0/+6
| | | | | | | | | | | | | | | Change-Id: If5a2d6a15a282a83e47e2bfb3d7e1a2a7c9a50fa Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| * | Add missing doc for WebEngineNotification QML typeKirill Burtsev2019-08-291-4/+73
| | | | | | | | | | | | | | | Change-Id: I3090b7cbbb9b913f147aaba8f39cefcd41e30d46 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Liang Qi2019-08-112-1/+3
| |\| | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: I64b46801bbaac4e96e32fece30f24f1d6cfc97a4
| | * Fix use-after-free of HostResolverJüri Valdmann2019-07-242-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Create one HostResolver per profile to avoid use-after-free in NetworkHintsMessageFilter (5.12) or NetworkContext (5.13). Fixes: QTBUG-75884 Change-Id: Ic1a2973b4fb0aed6bd0fa1bb9a1d7c3012c30fe0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix file URI checks for FilePickerController::accepted() on WindowsTamas Zakor2019-07-311-4/+19
| | | | | | | | | | | | | | | | | | | | | Extend auto tests with windows specific cases. Change-Id: I731cd520c12a38636a5df4829a79d7bd1d85a314 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix compilation against 5.9Michal Klocek2019-07-313-4/+11
| | | | | | | | | | | | | | | Change-Id: Icfe50ba5c60a6e2e588af6cdc07500013b6df9a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Lower requirement for glibc to 2.17Michal Klocek2019-07-291-1/+1
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-77171 Change-Id: I9eb5a34adbc62c8738ba5ffdf315ccf056da7b98 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Clean-up handling of selected filesAllan Sandfeld Jensen2019-07-271-20/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplifies the code and makes sure both the two QML implementations of the file-selector are source compatible. Note, this does not address issues with test on Windows. Change-Id: Ieee84866c456d600a812683cae389d6a6980366f Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Unify error reporting for configureMichal Klocek2019-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move last two tests (submodule and nowhitespace) to configure system and unify error reporting. Now all error messages come from one single place qtwebengine_checkErrors(). This function is used by configure system reporting and by make call. Remove duplicated strings. Add extra messages when module is not going to be built. Change-Id: Ib373facd58135325495aad52b6e600ec9a61f31f Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | Rename option webengine-core to build-qtwebengine-coreMichal Klocek2019-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This change is extracted from qtpdf branch to keep following commits unchanged. Change-Id: I255976d45213d4cfe84243cae0b4eddb8eb1747a Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* | | Move developer build option to toolsMichal Klocek2019-09-191-7/+0
| | | | | | | | | | | | | | | Change-Id: Iffac4541f5675b0f048080f012b7b81b18885308 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* | | Fix RenderWidgetHostViewQt::SetNeedsBeginFramesJüri Valdmann2019-09-133-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | Turns out this is needed also in viz mode for fling gestures. Fixes: QTBUG-77861 Change-Id: I6fe9d37e00e6a7fd17280d76273527066cc879a4 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Remove usages of deprecated APIsSona Kurazyan2019-09-091-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replaced the following deprecated APIs: QWebEngineProfile::setRequestInterceptor -> QWebEngineProfile::setUrlRequestInterceptor QWebEngineSettings::globalSettings -> WebEngineSettings::defaultSettings QLayout::setMargin -> QLayout::setContentsMargins QWheelEvent::{x, y} -> QWheelEvent::position QWheelEvent::{globalX, globalY} -> QWheelEvent::globalPosition QSysInfo::windowsVersion -> QOperatingSystemVersion::current Qt::InputMethodQuery::ImMicroFocus -> Qt::InputMethodQuery::ImCursorRectangle QDesktopWidget::screenGeometry -> QGuiApplication::primaryScreen::geometry QTime -> QElapsedTimer - Fixed the tests to compile when deprecated APIs are disabled. - Replaced the doc references to deprecated APIs with the new ones. Made the docs for deprecated APIs compile conditionally, based on deprecation version. Task-number: QTBUG-76491 Change-Id: I5c6b7c628957deb9163f0bd2b6bc31bde1c7daec Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Move gn configs out of coreMichal Klocek2019-09-075-478/+0
| | | | | | | | | | | | | | | Change-Id: Ib047e35191faa627211c759bff4e81bfaec3d685 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Move main configure and move some tests from core to buildtoolsMichal Klocek2019-09-074-383/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Processing configuration for gn when building qpdfcore module will require optional libraries resolved. Some libs are not needed, but this requires extra patching of gn build configs; so to keep things simple, just detect all the libs beforehand. Unfortunately using this for main configure goes bonkers. The issue here is that main configure resets features in global scope, which can break features coming from qtbase and results in bogus configurations in certain cases. Therefore move current configuration to buildtools and make everything else depend on this. Task-number: QTBUG-75840 Task-number: QTBUG-76606 Change-Id: Id87f5ba017541a2d5a2836510c6cabc5a19f92c6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add jumbo builds to configure systemMichal Klocek2019-09-071-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds new feature webenigne-jumbo-build which indicates merge limit for jumbo build, usage: qmake <src> -- --webengine-jumbo-build=8 Change-Id: I7607a83772b53f6db57eb12559989a91f991ce93 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add webengine-core featureMichal Klocek2019-09-075-238/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create/split main configure for submodules. Now configure system knows when webenginecore module is not going to be built and the user gets the feedback after the configure step with the message: The following modules are not being compiled in this configuration: webenginecore webengine webenginewidgets If a module is not built also features are not populated, therefore some tests have to be moved to main configuration. This improves error reporting and prepares landing for QtPdf modules. Remove configure.prf and fix issues after config split. Add makefile call to report errors. Now calling make also reports issues. Task-number: QTBUG-75840 Task-number: QTBUG-76606 Change-Id: I76944df4c5db6f4954c464e3741a8054cb10b40e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Api to get certificate's chain on errorKirill Burtsev2019-09-055-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose certificate's chain on validation error starting with the immediate certificate and ending with the CA's certificate. [ChangeLog][QtWebEngineWidgets][QWebEngineCertificateError] New method to get the peer's chain of digital certificates. Fixes: QTBUG-51176 Change-Id: I799dfe9e44f9f2517f4691d175beee256114af79 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Merge dev into 5.14 (delayed final downmerge)Kari Oikarinen2019-09-0429-124/+2107
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replicates the effects of the fast-forward merge that should have been pushed on 2019-08-27 as the final down-merge from dev to 5.14. Task-number: QTBUG-78019 Change-Id: I89e81a2d285e57eaf29e8cfef4abaf458b352c3b
| * | | Introduce findTextFinished signalPeter Varga2019-08-237-4/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a replacement for the callbacks. Also introduces QWebEngineFindTextResult class what is common for the Quick and Widget APIs. This makes possible to provide extra information about the match, eg. the number of matches and the index of the currently highlighted match. [ChangeLog][QtWebEngine][WebEngineView] Introduces findTextFinished signal and FindTextResult type to provide extra information about the result of a text search. [ChangeLog][QtWebEngineWidgets][QWebEnginePage] Introduces findTextFinished signal and QWebEngineFindTextResult class to provide extra information about the result of a text search. Task-number: QTBUG-50420 Change-Id: Icb9737d2f596e6bc0fc5733144eeeaf2a77aab02 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * | | Refactor findText handlingPeter Varga2019-08-228-65/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move most of the findText logic to the QtWebEngineCore::FindTextHelper class. This change also separates findText callbacks in the new class for getting rid of the request ID conversion and make it easier to remove them in Qt6. Task-number: QTBUG-50420 Change-Id: I348cedd0f90a49f9b360165c46319aeed2c236c0 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * | | Use ui::CompositorJüri Valdmann2019-08-2218-32/+1572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needs corresponding 3rdparty change. Fixes: QTBUG-71885 Change-Id: I791bc3da5a7a66e03470e9e05bf25a997101b018 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Use RenderFrameMetadata for scroll position and contents sizeJüri Valdmann2019-08-223-27/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for using viz display compositor since SubmitCompositorFrame will not be called any more. Also move the loadVisuallyCommitted call to the Compositor's callback. Task-number: QTBUG-71885 Change-Id: I062b3466671cc6af35877f2ff6995ea290cdf9de Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Fix warning about extra semicolon for Q_DECLARE_FLAGS statementMichael Brüning2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces the number of warnings a bit more. Change-Id: I0da60354758f494fd32be08a2db8600d56e2ac92 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | | Doc: Edit docs for QWebEngineUrlRequestInfo::initiator()Leena Miettinen2019-08-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed the grammar and added \since 5.14. Change-Id: Iab9b4898c761366f640300445aa21913523a58e2 Reviewed-by: Tamas Zakor <ztamas@inf.u-szeged.hu> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | | Doc: Describe QWebEngineUrlRequestInfo::ResourceTypeNavigationPreloadLeena Miettinen2019-08-271-1/+3
|/ / / | | | | | | | | | | | | Change-Id: Ifbcfc6313914883a8e2566399a009ae449fface3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | WebContentsAdapter: don't use toStrongRef().data()Marc Mutz2019-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's an anti-pattern. Even though we don't expect other threads to destroy the last QSP while we use the pointer obtained from QWeakPointer, play it safe and use QWeakPointer idiomatically: as a non-owning reference, to be converted to an owning one for the duration of our use of the payload object. Amends 7cade5688f6a0bde067dc496cedcb8de14662116. Change-Id: Ib1c136569c27f413a4a78bfc35784032c53522a9 Reviewed-by: Michael Brüning <michael.bruning@qt.io>