summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add web-ui chrome://net-internalsAllan Sandfeld Jensen2021-03-221-1/+1
| | | | | | | | | | | | | | Fixes: QTBUG-91695 Change-Id: Ie00b9bb92b62b97c500d427defbf2a4632ddbeda Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Fix 'WebEngine' ambiguity for Qt6Michal Klocek2021-04-1331-46/+46
| | | | | | | | | | | | | | | | | | 'WebEngine' is a qml module, however name itself is ambiguous. Thefore now with Qt6 and with cmake port name the module as WebEngineQuick. Change-Id: I948672dd5d389a01c6a31ec871459164fd989c0f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Do not force c++14Allan Sandfeld Jensen2021-03-222-2/+1
| | | | | | | | | | | | | | Since c++17 is now default. Change-Id: I3ea8e4ba2536218db2b0b1ad61b3845d5b889711 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Stop using deprecated QVariant::TypeAllan Sandfeld Jensen2021-03-221-10/+10
| | | | | | | | | | Change-Id: Icf777ac1d954036b4de626321e0ecd80a0cb83ca Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-03-162-0/+27
|\| | | | | | | Change-Id: I0dd7c64669f4b130047a4a3836f62f7ee5b5f8d9
| * Fix normalization of app localesAllan Sandfeld Jensen2021-03-121-0/+24
| | | | | | | | | | | | | | | | | | Use the internal Chromium routine to get the app locale Chromium expects. Fixes: QTBUG-91715 Change-Id: I5042eb066cb6879ad69628959912f2841867b4e8 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Blacklist numberOfStartedAndFinishedSignalsIsSame on b2q CIsAllan Sandfeld Jensen2021-03-041-0/+3
| | | | | | | | | | | | | | Seems to be failing regularly now. Change-Id: I1bbeb2f5cb2b04608c7c75317f68bb4e75a59eb3 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | qmltests: don't use implicit 'loadRequest' arg in 'onLoadingChanged'Kirill Burtsev2021-03-038-33/+29
| | | | | | | | | | | | | | Prerequisite for WebEngineLoadRequest type rename Change-Id: Ia8f4f15317881ba522c778c443cf17e55f5c9d65 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Move QQuickWebEngineLoadRequest to core as a base api typeKirill Burtsev2021-03-035-25/+36
| | | | | | | | | | | | | | | | | | | | | | Prepare it to be used in widgets api for load status change. Turn it into simple value type which is allowed to be copied, stored and spied upon. [ChangeLog] Move WebEngineLoadRequest as a basic type into QtWebEngineCore Task-number: QTBUG-74585 Change-Id: Ie182da02a539a89323b8bbec07f1daa700309e70 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-02-177-60/+277
|\| | | | | | | Change-Id: Idee0142b0e33fdf8ca663f1ef1bcd8b932985043
| * Update tst_QWebEngineView::webUIURLs auto testPeter Varga2021-02-101-6/+11
| | | | | | | | | | | | | | | | Remove URLs of removed WebUIs. Some removed URLs are just not for WebUI. Also add new ones that are available with Chromium 87. Change-Id: I2a749b5ff20621f2fc4cb168a2a40b571d79bdd0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Add tracing UI resourcesPeter Varga2021-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | Also add third party python dependencies of tracing to the snapshot. Pulls in the following changes: a7c1c17e0b9 [Revert] Do not bundle the tracing UI resources 1711a9c9bf4 Enable build of tracing UI Change-Id: I0a6abfeb04cb66ae33b26b6353edad2aecf39365 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Enable webrtc logging and the corresponding WebUIPeter Varga2021-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The corresponding WebUI is chrome://webrtc-logs It only makes sense with the hangout services extension. It seems to be only useable with meet.google.com. The behavior is same for Chrome. Uploading logs to Google is disabled in the Chromium patch. It is an extension API functionality. The WebUI only lists the previously generated logs. Pulls in the following changes: 1dda5314b02 Enable webrtcLoggingPrivate extension API for hangout extension 7d71aca116d FIXUP: Enable webrtcLoggingPrivate extension API for hangout extension Change-Id: I455fce7c8081e71967e55ab1f889df6ef91ed253 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Resolve installed interceptors right before interception pointKirill Burtsev2021-02-082-3/+130
| | | | | | | | | | | | | | | | | | | | | | | | Ammends a05bb73747. Since request processing is asynchronous, resolve interceptors right before actual interception point to accommodate cases where interceptor on profile or page was replaced or uninstalled before all instantiated InterceptedRequest's are processed. Effectively, this doesn't send url requests to uninstalled interceptors. Fixes: QTBUG-86286 Change-Id: Iaf55e5ef99d62b55f7304ee68a0c89a1469fd86f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Remove frame metadata observer (RenderWidgetHostViewQt) on destroyKirill Burtsev2021-02-063-0/+27
| | | | | | | | | | Change-Id: I9eac9537b60ba35a53e85c6437bb67b59bf0e35d Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| * Fix loadFinished signal if page has content but server sends HTTP errorPeter Varga2021-02-052-47/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For triggering an error page 3 conditions should be fulfilled: - main frame navigation - the page's document is empty - the HTTP status code indicates an error This fix adds check for the empty document and sends loadFinished signal without expecting an error page if the document is not empty. Fixes: QTBUG-90517 Change-Id: I6463d75fb5e682932feca64b0f059f9aa475795c Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| * Remove remains of chrome://flashPeter Varga2021-02-041-1/+0
| | | | | | | | | | | | | | | | It was removed in Chromium 73: https://chromium-review.googlesource.com/c/chromium/src/+/1373841 Change-Id: I3755f50d865b22f757714ab50add1bccf463421f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Enable chrome://user-actions WebUIPeter Varga2021-02-041-1/+1
| | | | | | | | | | | | | | | | Also record some actions in WebContentsAdapter. The list is far from complete but these seemed obvious. Change-Id: I7dcddeef416efd6fb26618381a83d2b132b98d83 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add missing FullScreenRequest qml test into qmltests' listKirill Burtsev2021-02-121-0/+1
| | | | | | | | | | Change-Id: I11e01bf2ce0812664bec4a7c0885485ee692db01 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-02-021-0/+47
|\| | | | | | | | | | | | | Conflicts: tests/auto/widgets/qwebenginedownloadrequest/tst_qwebenginedownloadrequest.cpp Change-Id: Ibf03467e398f8dcdb5f950e1a70f3e4e591003db
| * Do not extract download file names from certain url schemesMichael Brüning2021-01-221-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | Chromium uses the default download file name if the scheme of a file to download is either about or data, as the file name extraction methods do not seems to work for those. Mimic this behavior in Qt WebEngine as well. Fixes: QTBUG-90355 Change-Id: I14b8c4f64559500d3f231dd26533a5947bf94bc3 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-01-255-18/+41
|\| | | | | | | | | | | Including update to 87-based Change-Id: I36b6054e00de97ab055d0bc800cff08d0408fac6
| * Revert "Blacklist page's dev tools tests for msvc-2019"Kirill Burtsev2021-01-152-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7af8aa79d76b31f5d881d62f8c8661117274734c. Reason for revert: appears to always BPASS on CI after tests for msvc2019 were enabled and 79-based integrated and only fail with timeout error, which really takes more than one minute for renderer process to initialize devtools, so increase also timeout for load. Fixes: QTBUG-81263 Change-Id: Ia07a62f2e0a6822edb9bb1fb86df1c9fe0536072 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Touch input test: detect and check scrolling on each inputKirill Burtsev2021-01-151-0/+8
| | | | | | | | | | | | | | | | | | | | Scrolling is momentum based and with smooth scrolling handling may lead to multiple scroll position offset changes for series of touch event. Moreover, it's not certain that offset position fetched through js after input is final position, so check it on each scrolling step. Change-Id: I793b9c237b024b5f68cdd5662a91d72b21bb64c4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix WebEngineViewJavaScriptDialogs qml auto tests after Chromium 87Peter Varga2021-01-131-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | onbeforeunload event is fired when navigating to another page since: d51e7703e747 Remove InterstitialPage https://chromium-review.googlesource.com/c/chromium/src/+/2146137 Navigate away from pages with onbeforeunload handler at the end of the tests. Change-Id: I79b306620e202e1466a8125c8f8f60a7218b2969 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Adaptations for Chromium 86Allan Sandfeld Jensen2021-01-132-4/+10
| | | | | | | | | | Change-Id: I7e0ebecdbb68cfff0b574c966f3fa80d28680e1c Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Merge branch '5.15' into devAllan Sandfeld Jensen2021-01-197-8/+96
|\| | | | | | | | | | | Last commits before 87 update. Change-Id: Id156b0199a8fd354c946cfe604ae8541ba554658
| * Add test for LocalContentCanAccessRemoteUrls settingKirill Burtsev2021-01-082-0/+29
| | | | | | | | | | Change-Id: Ia360553626c0277c7ef703504c8a7a76ca792801 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Blacklist horizontalScrollbarTest on macOSMichael Brüning2021-01-061-0/+3
| | | | | | | | | | | | | | | | | | The test seems to have gotten flakyon macOS recently. Blacklist it until the cause has been identified and fixed. Task-number: QTBUG-89627 Change-Id: Ib711a6ee468f4d4416de9f96a32ff3cab51a24fc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Suppress error pages also for http errors if they are disabledKirill Burtsev2021-01-061-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Load with client or server http error results in successful navigation, which leads to 'true' loadFinished result, and subsequent chromium's error page load and display with second set of loadStarted/loadFinished signals. This effectively ignores QWebEngineSettings::ErrorPageEnabled. Fixing it requires submodule change to ask embedder if error pages should also be suppressed for http errors. Also update chromium for required change, which pulls in the following changes: * e71010069b4 Fix embedded builds with printing enabled * f5a93d251cc Allow the embedder to suppress an error page for http errors Change-Id: I731678575439a6dad90dfb89e79b0083c63b49c2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Migrate user script IPC to mojoMichal Klocek2020-12-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use mojo instead of old IPC, keep current design and use two interfaces one global and one per frame for now, also use in both cases associated interface with ipc channel otherwise script can be added during the page load, which will radomly brake tests. This change moves UserDataScript to chromium since mojo binding generation did not work correctly. Use StructTraits when serializing the class. Change-Id: I7073fb831c96849e47864382188300db3c9137d9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix building against Qt 5.14Allan Sandfeld Jensen2020-12-112-6/+28
| | | | | | | | | | | | | | QString::SkipEmptyParts was replaced and deprecated in 5.15 not 5.14. Change-Id: I9585250b4d1781f87567aff957f8b35fb6015647 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2020-12-1124-281/+699
|\| | | | | | | Change-Id: Id1a1f4ca84697ba18e2604090e3154295fe1858b
| * Fix building against 5.12 on most CIsAllan Sandfeld Jensen2020-12-084-0/+14
| | | | | | | | | | Change-Id: I4c4bbc75b9f6346a446f8094f669d142f76c164a Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| * Stabilize load signals emittingTamas Zakor2020-12-039-35/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the WebContentsDelegateQt::EmitLoadStarted() and the WebContentsDelegateQt::EmitLoadFinished() independent from the WebContentsDelegateQt::LoadProgressChanged() by removing m_lastLoadProgress. Adapt the WebContentsDelegateQt::LoadProgressChanged() to send signal only if load is in progress. Add a new test based on the bugreport. Fix qmltests::WebEngineViewSource::test_viewSourceURL() flaky tests. Fixes: QTBUG-65223 Fixes: QTBUG-87089 Change-Id: I90af4d2e85105dba801beb8102991eb4ef14c6a3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix handling of more than one finger for touch eventKirill Burtsev2020-12-021-7/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change addresses following wrong assumptions implemented earlier: * fix assert condition for custom MotionEventQt: pointer index is only reserved only for two distinct events POINTER_UP and POINTER_DOWN, which represent one single non first/last pointer up and down event. * MotionEvent API doesn't support delivering multiple touch point changes at once, hence code should send every touch point's up/down step by step to not confuse gesture detection classes in chromimum (ultimately fixing arising asserts which old code was triggering before). * MotionEvent shouldn't contain more touch points then were already forwarded or reported released, hence every step should contain only part of all touch points received in handleTouchEvent. Fixes: QTBUG-86389 Change-Id: I62275dc295494f88a6e44f36fe72f5f8227e37d4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Set custom headers from QWebEngineUrlRequestInfo before triggering redirectKirill Burtsev2020-12-013-31/+67
| | | | | | | | | | | | Fixes: QTBUG-88861 Change-Id: I7091aca70aaf87edf0b1e67ec3fa705a59c8192c Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Merge remote-tracking branch 'origin/5.15.2' into 5.15Allan Sandfeld Jensen2020-11-241-0/+9
| |\ | | | | | | | | | Change-Id: I516761e18c03c6cfd4d44a6ee176a2add9a5b022
| | * Fix tst_QWebEngineView flaky IME testsTamas Zakor2020-10-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Add QTest::qWaitForWindowExposed() to make sure that the window is visible before the input event is sent. Change-Id: I72b02abaaf5970a1533f1d6f6dae59e47e891548 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Add touch input tests for scrolling and pinch zoomingKirill Burtsev2020-11-181-1/+93
| | | | | | | | | | | | | | | Change-Id: I44185766baa5c7edd0fd45b7ea10388ca25ae0de Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Move touch input tests to separate testcaseKirill Burtsev2020-11-185-209/+242
| | | | | | | | | | | | | | | | | | | | | | | | Since it's very distinct area and not very specific to view. Aggregate test code in separate subfolder and simplify by removing duplications. Change-Id: Iaaa28612b074245dc548553099e7e17a70327a37 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix flaky tst_QWebEngineView::textSelectionOutOfInputField testTamas Zakor2020-11-102-3/+3
| | | | | | | | | | | | | | | Change-Id: I86e873da822bb2af99c2b4f0771fe164d4342c8f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix new view request handlingTamas Zakor2020-11-104-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore url loading if the request is not from a data url and the Q(Quick)WebEngineNewViewRequest.openIn() is not called on newViewRequested(). Set the missing Q(Quick)WebEngineNewViewRequest::requestedUrl property. Fixes: QTBUG-87378 Change-Id: Idddc9cf075db68dcf5825b3e746d16419d02cfa0 Reviewed-by: Tamas Zakor <ztamas@inf.u-szeged.hu> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Clone QEvents instead of copyingPeter Varga2020-12-102-17/+25
| | | | | | | | | | | | | | | | | | | | | Copying QEvents is disabled in the latest QtBase. Change-Id: I2735fd412a47deb5fb389615c73881aa6cce61ca Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Move QWebEnginePage to coreMichal Klocek2020-11-245-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog] QWebEnginePage is in QtWebEngineCore Task-number: QTBUG-74585 Change-Id: Id326c89c868e9e7d53488bbd12cb321e1a0b79b7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | | Drop dependency on QWebEngineView in pageMichal Klocek2020-11-241-0/+6
| | | | | | | | | | | | | | | | | | | | | Introduce temporarily PageView interface and DummyDelegate. Change-Id: I3a3d57435c98b31a15fb6d777045e141d007486f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Remove qwebengineview setter from qwebenginepageMichal Klocek2020-11-202-6/+6
| | | | | | | | | | | | | | | Change-Id: Ifaac7287d24e38e04e217cae65f6e5294e8bdd9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Remove deprecated url interoceptor setter from profileMichal Klocek2020-11-201-105/+34
| | | | | | | | | | | | | | | | | | Change-Id: I15c621da6da97b2ccdd57afdfad0d413302d3c24 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Move profile from widgets to coreMichal Klocek2020-11-206-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | This just moves class to core. Task-nmuber: QTBUG-74585 Change-Id: Id046eee21043f086f5f45727bc3ce7c965695b7c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Drop dependency on page in profileMichal Klocek2020-11-181-7/+7
| | | | | | | | | | | | | | | Change-Id: Idbec1657522272c895dc1822e83e0d9592c33343 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>