summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Bump timeout in tst_InspectorServer::openRemoteDebuggingSessionJüri Valdmann2019-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | Flaky on Windows 10. Change-Id: Idaf73ccaf29831010e84397ae722dbe54a2de9bb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Set custom user-agent manually on new windowsAllan Sandfeld Jensen2019-06-071-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chromium forgets to set ShouldOverrideUserAgentInNewTabs(), so we need to manually set the override. Fixes: QTBUG-76249 Change-Id: Id240ee525dacec3cd8389aca058a61d3af62b00a Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Add QWebEngineUrlScheme::CorsEnabled flagJüri Valdmann2019-07-183-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Adapt tst_origins for blink::SecurityOrigin fixJüri Valdmann2019-07-181-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PathSyntax schemes used to have their origins serialized to 'qrc:' in url::Origin::Serialize and to 'qrc://' in blink::SecurityOrigin::ToString. This has now been harmonized to 'qrc:' everywhere so the tests have to be adapted. Task-number: QTBUG-75651 Change-Id: I03515788e151f3d4a82081269b6babecfaa69e97 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Ignore persisted spellchecking preferencesJüri Valdmann2019-07-151-35/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore on-disk values of spellCheckEnabled and spellCheckLanguages prefs to preserve backwards compatibility. Fixes deterministic failure in second run of tst_spellchecking because the first run disabled spellchecking. Put all settings-related tests in tst_spellchecking into one test and pretend to check that settings are not persisted. Since settings are currently read and written on independent task sequences without guaranteed ordering, the test would succeed even if settings were persisted. Specifically, in code like this profile = new QWebEngineProfile("MyProf"); // 1 delete profile; // 2 profile = new QWebEngineProfile("MyProf"); // 3 the write from line 2 will usually happen after the read from line 3. Once persistence becomes a public feature we probably should add some way to guarantee the proper ordering of reads and writes. Change-Id: Icb2290417049848dbe68b7f991bbe2d52756f295 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Fix order of destruction in inputContextQueryInput testAlexandru Croitor2019-07-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TestInputContext object should be destroyed before the QWebEngineView. Otherwise when the view gets destroyed, Chromium's TextInputManager unregisters itself, which generates an input context event sent to the partially destroyed view, which tries to access an already unregistered Chromium TextInputManager. Change-Id: I54efc5481d343cd5351908623eb643014e78549e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Blacklist inputContextQueryInput for nowAllan Sandfeld Jensen2019-07-151-0/+4
| | | | | | | | | | | | | | | | | | | | | Flaky on Windows and macOS Change-Id: I8742765a89f9cb0a760ab797b8ca5f2ba0e4a951 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/5.13' into dev"Allan Sandfeld Jensen2019-07-141-0/+3
|\ \ \
| * | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-07-101-0/+3
| |\| | | | | | | | | | | | | | Change-Id: I156385925a060081cce7091da199266482aec5d8
| | * | Speculative fix for flaky runJavaScriptFromSlot testJüri Valdmann2019-07-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-74718 Change-Id: Idb46521b94517b54d4c38624d4557fbe31565560 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | | Adaptations for Chromium 75Allan Sandfeld Jensen2019-07-103-4/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Idad08244e0c749a9f70f5eb9f8cd236039b941b3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | | Adaptations for Chromium 74Allan Sandfeld Jensen2019-07-101-1/+0
|/ / / | | | | | | | | | | | | Change-Id: Icdefa05eec39c632328dfc40862e5b734170bf3f Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Disable Cut/Copy/Unselect actions when there's no selectionJüri Valdmann2019-07-082-8/+47
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-76666 Change-Id: I74b9a26cd7be9a830f4eecd36db69777412ab316 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Remove usages of qVariantFromValueSona Kurazyan2019-07-051-1/+1
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-76491 Change-Id: I9768265db2d1f5ff47aa5b292491024f4ef721e7 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Add API to change download directory path and file nameTamas Zakor2019-07-054-12/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add functions and property to change the download directory and file name in QWebEngineDownloadItem and QQuickWebEngineDownloadItem and deprecate the path() and setPath(). Regenerating the uniquifying download filename after change the download directory. [ChangeLog][DownloadItem] Add functions and property to change the download directory and file name in QWebEngineDownloadItem and QQuickWebEngineDownloadItem and deprecate the path() and setPath(). Task-number: QTBUG-56978 Change-Id: I6e63da82a187add8bc3206cc80c8bf6865fbdd35 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devJüri Valdmann2019-07-025-20/+35727
|\| | | | | | | | | | | Change-Id: I806417dd7a6d2594a86ee49feedc4ad9ee48add2
| * | Binary compatibility files against Qt5.13.0 for QtWebEngineMilla Pohjanheimo2019-07-012-0/+35567
| | | | | | | | | | | | | | | | | | | | | BC files added. Change-Id: I67a272137f69581b54fa1fb711bf207b47007eba Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-06-112-2/+147
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/3rdparty src/core/configure.json src/core/profile_io_data_qt.cpp tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp Change-Id: Ie8ae4aa03881a0733ff497fff46e3f7040735650
| | * Disable edit actions when content has no focused framePeter Varga2019-05-272-2/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-75505 Change-Id: Ia1329ff554a86e307aa7995e9af1665ea6c5e64c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Refactor tst_QWebEngineDownloadItem::downloadPathValidation()Tamas Zakor2019-05-291-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Set temporary download path with new API. Change-Id: Ie448b14c9b063db45c99406bc491d92f3d61cb15 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | unblacklist passing testsDaniel Smith2019-06-286-40/+6
| | | | | | | | | | | | | | | | | | | | | | | | These tests have not failed on the removed platforms for at least 60 days Task-number: QTBUG-76608 Change-Id: I4f6cec6ff5e7408542085fd7ae8cecbe04b6fd28 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-06-061-0/+3
|\| | | | | | | | | | | Change-Id: Ib61d4087aa999ae93240be620496e60f4fa73f63
| * | Merge remote-tracking branch 'origin/5.13.0' into 5.13Allan Sandfeld Jensen2019-06-041-0/+3
| |\ \ | | | | | | | | | | | | Change-Id: I82726c9286e1cc7b2904887a5c0b05df4c669233
| | * | Blacklist tst_QWebEngineView::inputContextQueryInput on windowsv5.13.0-rc3v5.13.0-rc2v5.13.0-rc1v5.13.0Allan Sandfeld Jensen2019-05-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has failed twice in a row now. Change-Id: I9433ec9a3b2f1720efbaf7a34fcaa563525126e5 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | | Add QWebEngineUrlRequestInfo::initiator()Tamas Zakor2019-06-051-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returns the origin url of the document which initiated the navigation when a frame navigates another frame. Task-number: QTBUG-75759 Change-Id: Ia2884b5a3027cceea45f0e659652b02036faaacb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | | Merge "Merge remote-tracking branch 'origin/5.13' into dev"Allan Sandfeld Jensen2019-05-274-0/+179
|\ \ \ \
| * | | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-05-274-0/+179
| |\| | | | | | | | | | | | | | | | | | Change-Id: I70917458ba43c8fbf27fee2382eee42618588fe4
| | * | | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-05-244-0/+179
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/net/network_delegate_qt.cpp tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp Change-Id: Ib715b3047213583e0441b915d3cabb801d9d4ba8
| | | * | Add path validation for QWebEngineDownloadItem::setPath()Tamas Zakor2019-05-201-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not set path if it ends with separator or if it matches with an already existing directory name. Task-number: QTBUG-75566 Change-Id: I4b78b28afe034c7589633c569a4945a36b32008e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * | Referrer HTTP Header no longer ignored when set via RequestInterceptorLeander Beernaert2019-05-202-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure the HTTP referer is properly placed on a request when it's set via the QWebEngineUrlRequestInterceptor. Added test case to catch future incidents. Fixes: QTBUG-60203 Change-Id: Ida2f713a7352c3199fc9f8e15b5d8350d50afdda Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * | Update docs and test for runJavaScriptJüri Valdmann2019-05-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-69567 Change-Id: Icdf5a200f7be1eb7a98cce62848e3a641c49e804 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | | | Implement page lifecycle APIJüri Valdmann2019-05-246-1/+725
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtWebEngine][WebEngineView] WebEngineView now supports lifecycle states that can be used for reducing CPU and memory consumption of invisible views. [ChangeLog][QtWebEngineWidgets][QWebEnginePage] QWebEnginePage now supports lifecycle states that can be used for reducing CPU and memory consumption of invisible pages. Fixes: QTBUG-74166 Fixes: QTBUG-55079 Change-Id: I7d70c85dc995bd17c9fe91385a8e2750dbc0a627 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | | Merge "Merge remote-tracking branch 'origin/5.13' into dev" into ↵Allan Sandfeld Jensen2019-05-172-0/+95
|\ \ \ \ | | | | | | | | | | | | | | | refs/staging/dev
| * | | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-05-162-0/+95
| |\| | | | | | | | | | | | | | | | | | Change-Id: Idd02779e2910a792d50bb703ab92cd4da47f45fc
| | * | | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-05-102-0/+95
| | |\| | | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/core/profile_adapter.cpp src/core/profile_adapter.h src/webengine/api/qquickwebengineprofile.cpp src/webenginewidgets/api/qwebengineprofile.cpp tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp Change-Id: Ic561f22b361e32a0a63668c73bf6c0fc9c1ce16f
| | | * Q(Quick)WebEngineProfile: Update list of internal schemesJüri Valdmann2019-05-071-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disallow installing handler for "about" and everything in kStandardURLSchemes of url/url_util.cc. Except for "gopher" which is used in tests. Suppress warning about custom schemes for "gopher" since it's not a custom scheme. Also lowercase the scheme in urlSchemeHandler() and removeUrlSchemeHandler(). Change-Id: I72b06d4fa6433882019405a0d600a593c8971bf1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * Do not crash on QWebEnginePagePrivate::releaseProfile()Allan Sandfeld Jensen2019-05-031-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deregistering the widget or deleting the view should be able to handle a now missing d_ptr in the old page. Change-Id: Ic843f7bde12776b6aad4fad865ccf14a25695154 Fixes: QTBUG-75547 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | | * Silence warnings in tst_qwebengineprofileAllan Sandfeld Jensen2019-04-301-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Register custom schemes Change-Id: I536a27da8f936e4ea6569e39a8ec6e30e23af03a Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | | * Handle corner case of assigning an implicit page to a new viewAllan Sandfeld Jensen2019-04-301-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the ownership on to the the new view, so it is still handled like an implicit page. Change-Id: I76ad3cb349a492e60e3ad2bdd4aebaabed07bd4f Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | | | Add API to get the suggested download file nameTamas Zakor2019-05-163-0/+20
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][DownloadItem] Add functions and property to get the suggested download file name. Task-number: QTBUG-56978 Change-Id: I902870c6358271322da613a15ccc11639384e404 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add navigation type for redirectsAllan Sandfeld Jensen2019-05-102-1/+2
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-74490 Change-Id: Ia8de7dbec717021f367133cebb8c118e333388e4 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-05-0919-44/+306
|\| | | | | | | | | | | Change-Id: I495adfcbb010ac29dc64e051c030a92d27859ca6
| * | Do not blacklist webChannelWithBadStringMichal Klocek2019-05-033-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is about documenting some weird new behavior. Since Chormium 72 our webChannelWithBadString fails. This is fascinating issue and can be tracked down to commit in Chromium https://chromium-review.googlesource.com/c/1282993 which "fixes" well-forming of JSON.strigify. This function is used by webchannel.js to send data through webchannel transport. In c++ land we get now for invalid utf16 replacement in form of '\\u' + i.toString(16).padStart(4, '0'). This sadly does not trigger any longer REPLACE_INVALID_UTF8 in WebChannelTransport::NativeQtSendMessage. Moreover this goes even "worse" since QMetaObjectPublisher will create invalid utf16 form raw "\ud800" string -> '\ud800'. This is not an error per se, since test creates invalid utf16 character in javascript and it ends as invalid utf8 character in c++. Btw enable test on qemu. Change-Id: I36f2df417d7b9f3f2113792f08025821737d8d01 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * | Skip tst_QWebEngineProfile::qtbug_71895 if network load failsJüri Valdmann2019-05-031-2/+3
| | | | | | | | | | | | | | | Change-Id: I0daf14c4ec31dfb867d9d7f531b9fdc6f7244e1b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-04-303-3/+98
| |\| | | | | | | | | | Change-Id: I051052a70a6e764202a90d77fc1a0f73688d3704
| | * Profile test: fix buffer for request job being deleted on main threadKirill Burtsev2019-04-231-2/+1
| | | | | | | | | | | | | | | Change-Id: I894946ce7c9dcf4f787c5c928e3737cd80a7dc52 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | * Fix QWebEngineView::setPage not deleting old pageJüri Valdmann2019-04-171-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix QWebEnginePage::setView not deleting old page Also fix wrong page being deleted if it's parented to the view. Fixes: QTBUG-75131 Fixes: QTBUG-75175 Change-Id: Ie4dfb15b3182de7aa3a94cddcac54ea40a86121b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Fix resolving relative URLs with custom schemesJüri Valdmann2019-04-161-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | Pull in 3rdparty patch and add test. Fixes: QTBUG-74864 Change-Id: I5440f58ff55297c2a51f896d43f479404ff6ca2f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Profile test: fix waiting for load finished signalKirill Burtsev2019-04-111-1/+2
| | | | | | | | | | | | | | | Change-Id: I797b596b73d62e420592ef9e96601c35ea7ecad6 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Make offscreen test offlineMichal Klocek2019-04-174-3/+16
| | | | | | | | | | | | | | | | | | | | | This enables also the test on qemu. Change-Id: I70c40b3cedeadfb21e396d8a550a54fe0a319438 Reviewed-by: Michael Brüning <michael.bruning@qt.io>