summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebengineview
Commit message (Collapse)AuthorAgeFilesLines
* Nuke all qmake files from testsMichal Klocek2021-09-012-13/+0
| | | | | | | Change-Id: Ibad2e50d840a2eb0ccb9ac65158e512249a2bc79 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 24a695b4b7fda581c15600b111d6b6c3459ca1d9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QWebEnginePage::view() replacementAllan Sandfeld Jensen2021-08-091-0/+5
| | | | | | | | | | Make it a static getter in QWebEngineView Fixes: QTBUG-95331 Change-Id: I552f0047343abd909c5cd521a7a7a01d62896b00 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 3fd9d08bc24bc5f769677b411750d73801adc2d2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Blacklist one page and one view test for armMichal Klocek2021-07-162-1/+4
| | | | | | | | | | | | There is currently no way to get coin vm in reasonable time to investigate the issue. Adjust timings to see if this would be enough. Change-Id: I59bf80da7d283c87e2d0ae95d2330bc0626a351f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit ebb52fdf01a26b38d93010dfa20758fa7ec1da4c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove outdated QT_VERSION_CHECKsAllan Sandfeld Jensen2021-07-091-16/+0
| | | | | | | Change-Id: I4c4b78af0bd7da5912b5e0136f9cfdb3c4268a7e Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit e62dde53f093dd2c404a65cf99e854081396632b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Skip grab window and changeLocale() test on QEMUMichal Klocek2021-07-022-0/+5
| | | | | | Task-number: QTBUG-94911 Change-Id: Ia381d2914740d0b0172df1af707b6ca1bdfd3d8e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix some compiler warningsPeter Varga2021-06-101-13/+4
| | | | | | | | | | | | | | - Remove deprecated Qt::AA_EnableHighDpiScaling and Qt::AA_UseHighDpiPixmaps from examples. High-DPI scaling is always enabled. - Reorder initialization of members of QWebEngineDownloadRequestPrivate. Also remove m_ prefix from public members' name. - Remove unused parameters from methods of DummyDelegate. - Add missing overrides in auto tests. Change-Id: I18d6973b8bee574b37b73fbaaa8d57002ac8ba2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 740b8c94f27930a33298c81c2284d1f0a9e2f11b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Replace calls to obsolete cmake functions with modern alternativeFabian Kosmale2021-06-071-1/+1
| | | | | Change-Id: I5674d887a73a6a693d1babc416470c9873491eb3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Replace FaviconManager with Chromium's Favicon ComponentPeter Varga2021-06-041-2/+4
| | | | | | Task-number: QTBUG-51184 Change-Id: Ie050cb23f2c86841a66ec384bfbcdf0713cffa7c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix generating webrtc logging resources with cmakePeter Varga2021-05-271-1/+3
| | | | | | | Also disable webrtc logging test if extensions are disabled. Change-Id: I49c8d4fb6049c9aed174f62f731b0f56dae490ba Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add tests to the cmake buildMichal Klocek2021-05-223-7/+41
| | | | | | | | | | | | | | | | | | | | Use QT_TESTCASE_SOURCEDIR instead of TESTS_SOURCE_DIR. Introduce Test::HttpServer and Test::Util targets. Query shared data location from server. Clean up "shared" resources. Note QT_TESTCASE_SOURCEDIR must be turned into the canonical form since the user can call on windows: "cmake \path\to\foo" instead of "cmake c:\path\to\foo" which will break all file:// urls. Note this patch breaks qmake builds. Task-number: QTBUG-91760 Change-Id: Ibc1f904ac9acd375d1ff70ff80f0c533497e3f20 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-05-122-14/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/webenginewidgets/printme/printhandler.cpp src/3rdparty src/core/api/qwebenginepage_p.h src/core/content_browser_client_qt.h src/core/web_contents_adapter_client.h src/core/web_contents_delegate_qt.cpp src/core/web_contents_delegate_qt.h src/webenginequick/api/qquickwebengineview_p_p.h tests/auto/quick/qmltests/data/tst_download.qml tests/auto/quick/qmltests/data/tst_viewSoure.qml tests/auto/widgets/loadsignals/tst_loadsignals.cpp tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp Change-Id: I9c1819ec15e13d4f8e244defe860e26274b5d4be
| * Fix application locales againSzabolcs David2021-04-212-14/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Different countries (with the same language) can have different number formatting and navigator.language should report not only the language, but also the country. Locale normalization often falls back by cutting the country off, because we have common .pak files for countries with the same language. This patch: - Uses the locale resolvation only for concatenating .pak file paths and reports the full locale everywhere else. - Properly sets default ICU locale for JS number formats and prevents l10n_util::GetApplicationLocale() to set it sneakily to some resolved one. - Fixes the crashing --lang command line argument and always prefers its value over QLocale. Task-number: QTBUG-91225 Change-Id: I1c09798abdb523b80f0b7a3d69fa8d7a08c7c09a Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-04-131-1/+23
|\| | | | | | | Change-Id: Ia01415e5a44b1df9ed8b3966ff3b39a414b1563c
| * View: test signal for deletion of external page set to viewKirill Burtsev2021-03-231-0/+22
| | | | | | | | | | | | | | | | | | Verify that view still gets notification about external page deletion through basic QObject::destroyed Task-number: QTBUG-90509 Change-Id: I5ae19f4184d6bbbfd94efe28a3f00fbb8f6d8a01 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * 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>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-03-161-0/+24
|\| | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.15' into devAllan Sandfeld Jensen2021-02-173-10/+41
|\| | | | | | | 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>
| * Remove frame metadata observer (RenderWidgetHostViewQt) on destroyKirill Burtsev2021-02-063-0/+27
| | | | | | | | | | Change-Id: I9eac9537b60ba35a53e85c6437bb67b59bf0e35d Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| * 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>
* | Merge branch '5.15' into devAllan Sandfeld Jensen2021-01-192-4/+19
|\| | | | | | | | | | | Last commits before 87 update. Change-Id: Id156b0199a8fd354c946cfe604ae8541ba554658
| * 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>
| * Fix building against Qt 5.14Allan Sandfeld Jensen2020-12-111-4/+16
| | | | | | | | | | | | | | 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-112-212/+16
|\| | | | | | | Change-Id: Id1a1f4ca84697ba18e2604090e3154295fe1858b
| * Fix building against 5.12 on most CIsAllan Sandfeld Jensen2020-12-081-0/+4
| | | | | | | | | | Change-Id: I4c4bbc75b9f6346a446f8094f669d142f76c164a Reviewed-by: Kirill Burtsev <kirill.burtsev@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>
| * | Move touch input tests to separate testcaseKirill Burtsev2020-11-181-209/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Clone QEvents instead of copyingPeter Varga2020-12-101-11/+11
| | | | | | | | | | | | | | Copying QEvents is disabled in the latest QtBase. Change-Id: I2735fd412a47deb5fb389615c73881aa6cce61ca Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | 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-201-3/+3
| | | | | | | | | | Change-Id: Ifaac7287d24e38e04e217cae65f6e5294e8bdd9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Update dependencies on 'dev' in qt/qtwebengineAllan Sandfeld Jensen2020-11-021-8/+8
| | | | | | | | | | Change-Id: I74c7293ebf5ace5bd07e3bf5455dd90bf4ed6380 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Update dependenciesMichal Klocek2020-09-161-2/+2
| | | | | | | | | | Change-Id: I02d43e9894466844f53bee36246773c1c218ba78 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Use QList instead of QVectorJarek Kobus2020-07-151-1/+1
| | | | | | | | | | | | Task-number: QTBUG-84469 Change-Id: I666a060351f73783e15e3f96884c9393a5cd7e46 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Adapt to newer dependenciesAllan Sandfeld Jensen2020-07-061-1/+1
| | | | | | | | | | | | Change-Id: I495880f56fbc10d8f332f26101f8a25c2a1c5631 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Fix building dev with newer QtBaseAllan Sandfeld Jensen2020-04-241-2/+2
|/ | | | | Change-Id: I0d52e4f6684425cb15319760e0001bdb13846997 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Use Qt::SplitBehavior in preference to QString::SplitBehaviorEdward Welbourne2020-03-031-4/+4
| | | | | | | | The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: I0a37800da400a1f4213d8522de0c818356a7c481 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.14' into 5.15Allan Sandfeld Jensen2020-02-271-11/+29
|\ | | | | | | | | | | | | | | Conflicts: src/core/renderer_host/web_channel_ipc_transport_host.cpp tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp Change-Id: I47f2b893bc9f27cd9df641f76badc9e53b482ad4
| * Fix event.key for Ctrl key combinations on WindowsPeter Varga2020-02-251-11/+29
| | | | | | | | | | | | Fixes: QTBUG-81783 Change-Id: I107a4009630dc261013498a05987c0e8e29651eb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | View's contexMenu test: fix assumption for input eventsKirill Burtsev2020-02-191-9/+28
| | | | | | | | | | | | | | | | | | | | Mouse clicks are set to be ignored in chromium 79 as no useful actions are available before first real navigation. Add simple blank load for that and also enforce checks for different kind of policy. Task-number: QTBUG-80743 Change-Id: Icb0056895c5b194e85bb711b8449e179257f8d5d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge branch '5.14' into 5.15Allan Sandfeld Jensen2020-01-231-0/+18
|\| | | | | | | Change-Id: I1230ec3a854c0798fa4f7960642e988b917f431e
| * Fix overriding shortcuts in password input fields on WindowsPeter Varga2020-01-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Windows IME does not support hidden text therefore IME input is disabled on password fields. The shortcuts are supposed to be overridden in input fields. Checking the keyboard focus on an input field is done by verifying if the IME is enabled. This won't work with password fields on platforms where hidden text is not supported, so also check if the Qt::ImhHiddenText IME hint is set. Fixes: QTBUG-81206 Change-Id: I81870beb556a9dda67295496dad8b672fbc5eba2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge "Merge remote-tracking branch 'origin/5.14.1' into 5.15"Michael Brüning2020-01-171-0/+172
|\|
| * Fix crash when handling QEvent::TouchCancelRomain Pokrzywka2020-01-091-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | TouchCancel events have an empty touchPoints() list, which first trips when accessing touchPoints[0], and later on crashes Chromium if we pass the empty list to m_touchSelectionController. Rework handleTouchEvent() to route TouchCancel events like other touch events, and make sure we pass a non-empty touchpoints list to Chromium. Task-number: QTBUG-80893 Change-Id: Ie8396a1191f72b5bbb2b047f131794b37cfded48 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Fix QFlags warningsAllan Sandfeld Jensen2020-01-171-30/+30
|/ | | | | Change-Id: I2938d5a44df01c7d9c70e18ecc293fc91079e5bd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>