summaryrefslogtreecommitdiffstats
path: root/src/core/devtools_frontend_qt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Show guest WebContents in DevTools if possibleSzabolcs David2024-02-091-1/+6
| | | | | | | | | | | | | | | | | | | Chrome's DevTools has different behavior for PDF content: - If it was opened for the PDF viewer, it closes itself when the guest view has gone (e.g. by navigating away), but it shows the inner content of the plugin. - If it was opened for another site and then navigated to the PDF plugin it won't show the inner content, but the embedding HTML of the parent and it allows navigating away from the plugin. Make our inspector match the behavior of Chrome and allow DevTools to look into the plugin. It helps debugging PDF viewer related issues. Pick-to: 6.6 6.7 Change-Id: I218d4fcf47d6b1f0101fa1d7f36758e04a1dd7b0 Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumMichael Brüning2023-09-191-1/+1
| | | | | | | | | | | | | | | | | | Submodule src/3rdparty a71ba6ff..14780aaa: * [Backport] Security bug 1427288 (2/2) * [Backport] Security bug 1427288 (1/2) * [Backport] Security bug 1449166 * [Backport] Security bug 1469534 * [Backport] CVE-2023-4909: Inappropriate implementation in Interstitials * [Backport] CVE-2023-4908: Inappropriate implementation in Picture in Picture * [Backport] CVE-2023-4902: Inappropriate implementation in Input Pick-to: 6.6 Task-number: QTBUG-117059 Change-Id: I22da560b291cb984fffe1599a5f9845192458107 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 17c036b2a20f55daf7edcdafaf603a77130b8b04) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Clean up header includes around ProfileQtPeter Varga2023-09-131-1/+0
| | | | | | Change-Id: I51e6e52ebb36b57c18537b054db6f3d25f75a4fc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix close button in devtoolsMartin Negyokru2023-08-171-0/+5
| | | | | | | | | Handle CloseWindow call coming from DevtoolsUIBindings. Pick-to: 6.6 6.5 Fixes: QTBUG-115976 Change-Id: If58a96e3901234696c55c9c1402c645ba7a8576b Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu>
* Adaptations for Chromium 112Allan Sandfeld Jensen2023-07-061-6/+6
| | | | | | Pick-to: 6.6 Change-Id: I1bb84b20a080d7f615bf0795ac2d97739e99ac1d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix devtools context menusMartin Negyokru2023-06-211-1/+1
| | | | | | | | | | | Set devtools custom menus on 'OnLoadCompleted' event. This event should be triggered by the Js frontend not by WebContentsObserver. Fixes: QTBUG-113251 Pick-to: 6.5 6.6 Change-Id: I815d818c5867d0f1d160a962be5a41a762699e00 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add QWebEnginePage::devToolsId()Benjamin Terrier2023-05-311-0/+5
| | | | | | | | [ChangeLog][WebEngineCore] Add QWebEnginePage::devToolsId() [ChangeLog][WebEngineView] Add devToolsId property Change-Id: I16e8a27d595b010239557c2a3af2d3b39976cd46 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Disable devtools screencast by defaultMartin Negyokru2023-04-191-0/+11
| | | | | | | | | | | After 73acb3b3e devtools starts with screencast opened. Bring back old behavior. Fixes: QTBUG-112772 Pick-to: 6.5 Change-Id: Ifa1b860dc125e006ab5c2e3cd60a82980c32abe0 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Refactor devtools frontendMartin Negyokru2023-02-221-621/+59
| | | | | | | | Use chrome's UIBindings and message dispatcher. Pick-to: 6.5 Change-Id: I580b551153de8a0d34b70199c17a50df67237e73 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Adaptations for 108-basedAllan Sandfeld Jensen2023-01-061-1/+1
| | | | | | | Pick-to: 6.5 Fixes: QTBUG-105147 Change-Id: I0022964903f3443cc97843c62468ab9be8ae2ed8 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Adaptations for 106-basedAllan Sandfeld Jensen2022-11-281-13/+11
| | | | | | Change-Id: I2fe91c06ce91dfaace7825a0589b56ee375479b6 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adaptations for 104-basedAllan Sandfeld Jensen2022-11-281-1/+0
| | | | | | Change-Id: Ieb44b5c98b3342adca38916d8b77c54e8ed8e1d7 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add devtools file system supportMartin Negyokru2022-10-141-7/+157
| | | | | | | | | | Use Chrome's DevToolsFileHelper implementation. Enable downloading contents from devtools. Enable editing and saving files with devtools workspace. Task-number: QTBUG-85171 Change-Id: I987c667a59c12792c35a802326596e5799f42290 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu>
* Adaptations for Chromium 102Allan Sandfeld Jensen2022-08-041-1/+1
| | | | | | Pick-to: 6.4 Change-Id: I7ef0ad616f2ea0fae482253335e95998aa2d360e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adaptations for Chromium 100Allan Sandfeld Jensen2022-08-041-3/+4
| | | | | | Pick-to: 6.4 Change-Id: I217c87657f544a2e868de7291353ff1143e20902 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Various clean-upsPeter Varga2022-06-241-0/+1
| | | | | | Pick-to: 6.4 Change-Id: I53e04a247a25149d9f29135484c0528c706de7d8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-221-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I869ffda1080e283f231eb0dc4477b260f2054d99 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix assert on devtoolsAllan Sandfeld Jensen2022-06-201-0/+1
| | | | | | | | We must allow file access in the thread as it is off by default Pick-to: 6.4 Change-Id: Ia73a457c29599b51bd284621644a0088992b6737 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adaptations for Chrome 98Allan Sandfeld Jensen2022-03-291-3/+0
| | | | | Change-Id: I607604f85a111a69da77ca949dddf3399b9721b3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Clean up devtools frontend implementationAllan Sandfeld Jensen2022-01-131-51/+46
| | | | | | | Following new code style Change-Id: If638675b5509a633977cd8f8164ac044e9d5a959 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Adaptations for Chromium 94Allan Sandfeld Jensen2021-12-021-40/+42
| | | | | Change-Id: I9fb8998a3a7762b0aea70993ca231f0bbf4f7761 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adaptations for Chromium 92Allan Sandfeld Jensen2021-12-021-20/+27
| | | | | Change-Id: I1849c130ca75615802744275f6e4212a755c39b4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adaptations for Chromium 91Allan Sandfeld Jensen2021-12-021-4/+4
| | | | | Change-Id: Ie0236697615fd67e4f53df3dca013ce39628cc29 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Do not open screencast in DevTools by defaultSzabolcs David2021-10-251-0/+6
| | | | | | | | | | If screencastEnabled preference is not found, ScreencastApp.ts defaults it to true. This happens at the first start of a browser application. Task-number: QTBUG-96942 Pick-to: 6.2 Change-Id: I15788737640cfe07c0016b31fc471906452aad1b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix devtools internal reattachAllan Sandfeld Jensen2021-08-241-1/+3
| | | | | | | | | We were replacing the devtools with a new one instead of reattaching. Pick-to: 6.2 Change-Id: I7729b2e1fcc2946d8d5d67acbf026a06e8cbdc06 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Balazs Egedi <egedib@inf.u-szeged.hu>
* Return to using the default devtools pageAllan Sandfeld Jensen2021-03-151-1/+1
| | | | | | | | This includes the screencast mode that now works. Task-number: QTBUG-85171 Change-Id: I11f6fc11db8066a88880df3277e5613db65ae5a5 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add devtools eyedropper supportAllan Sandfeld Jensen2021-03-021-0/+30
| | | | | | | | | Was not using anything Chrome specific, and could be directly reused by us. Task-number: QTBUG-85171 Change-Id: Ib739cead6d721785de5843d0c971f77b77f20359 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Support devtools close buttonAllan Sandfeld Jensen2021-01-221-0/+2
| | | | | Change-Id: Icad495c3bf144a4da53b2a60585dabb3fc36d3d6 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Adaptations for Chromium 87Allan Sandfeld Jensen2021-01-131-2/+2
| | | | | Change-Id: Ic4ffd98e02f986dbaf986405360e727c813e696e Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix assert in WebContentsAdapter::devToolsFrontendDestroyedJüri Valdmann2020-09-161-4/+7
| | | | | | | | | | | | | | | | | | | | | Can be reproduced with quicknanobrowser by 1. Open devtools 2. Switch to OTR mode During the switch to OTR mode, the inspected WebContentsAdapter is destroyed and recreated. DevToolsFrontendQt is supposed to call devToolsFrontendDestroyed on the old WebContentsAdapter, but it accesses this adapter through QQuickWebEngineViewPrivate's webContentsAdapter() which has already been changed to the new value, so devToolsFrontendDestroyed is actually called on the wrong object. Fix by remembering the WebContentsAdapter pointer in the DevToolsFrontendQt constructor. Change-Id: I17004ebb1a392399ef3e189c433d3f4b3f05bfd3 Reviewed-by: Tamas Zakor <ztamas@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Adaptations for Chromium 83Allan Sandfeld Jensen2020-09-091-0/+16
| | | | | Change-Id: I63ed851426b18623d549ceaf87f1b6eeec527966 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Chromium 81-based adaptationsAllan Sandfeld Jensen2020-09-091-12/+24
| | | | | Change-Id: Ie422b327025da084bc8038c7a0aadee2db801f29 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Return valid path in Profile::GetPath() for incognito profilesAllan Sandfeld Jensen2020-06-291-1/+2
| | | | | | | | | | | | | Parts of Chromium depends on it for temporary directories it creates. This also changes the logic of depending on it being empty as indicating an in memory profile, so it required a bit of cleaning up. Note this does subtly change the return value of off-the-record profiles. Task-number: QTBUG-62957 Change-Id: Iec6e24556128c515fce27803171a766b8a9d92e3 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update devtools loadNetworkResource to match latest ChromiumAllan Sandfeld Jensen2020-06-031-5/+21
| | | | | | | Adds handling of file and webui schemes. Change-Id: Idd9f7dd79cc7b327dab789e369baf00772820cc6 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Adaptations for Chromium 79Allan Sandfeld Jensen2020-02-281-1/+1
| | | | | | | | Fixes: QTBUG-80737 Fixes: QTBUG-81556 Fixes: QTBUG-81614 Change-Id: Ie6a69cdbf46d0508bff226f1b8fed28a618e1949 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Adaptations for Chromium 76Allan Sandfeld Jensen2019-10-111-1/+1
| | | | | Change-Id: Id6d18a3854b572334dc1d65f1916b8991a740cd2 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Adaptations for Chromium 75Allan Sandfeld Jensen2019-07-101-5/+7
| | | | | Change-Id: Idad08244e0c749a9f70f5eb9f8cd236039b941b3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Adaptations for Chromium 74Allan Sandfeld Jensen2019-07-101-1/+1
| | | | | Change-Id: Icdefa05eec39c632328dfc40862e5b734170bf3f Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Merge remote-tracking branch 'origin/5.13' into devJüri Valdmann2019-07-021-2/+1
|\ | | | | | | Change-Id: I806417dd7a6d2594a86ee49feedc4ad9ee48add2
| * Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-06-111-2/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-75505 Change-Id: Ia1329ff554a86e307aa7995e9af1665ea6c5e64c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Implement page lifecycle APIJüri Valdmann2019-05-241-0/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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>
* | Switch DevTools.loadNetworkResource to using SimpleURLLoaderAllan Sandfeld Jensen2019-04-031-79/+81
| | | | | | | | | | | | | | Follow similar Chromium changes. Change-Id: Idb0ab52517004c8bee7e7f7a919233b3f1b3ff59 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Update network traffic annotations and description for devtools policiesAllan Sandfeld Jensen2019-04-031-2/+2
| | | | | | | | | | | | | | Following https://chromium-review.googlesource.com/1074753 Change-Id: Idba6062b978fcff07d6fcb827d863605f06fcf9f Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Adaptations for Chromium 73Allan Sandfeld Jensen2019-03-231-4/+5
| | | | | | | | | | Change-Id: I565d1e327852110a5abebed3388d7cd6986bef06 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Adaptations for Chromium 71Allan Sandfeld Jensen2019-01-281-2/+4
| | | | | | | | | | | | | | Change-Id: Ib650113b05dfd4771240804f94e33c07aa317bf2 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Adaptations for Chromium 70Allan Sandfeld Jensen2019-01-281-6/+6
|/ | | | | | | Change-Id: I8bb77784dbc8a0b9debd96a4c49421bd34e6a0df Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12Michael Brüning2018-08-211-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf configure.json examples/webenginewidgets/markdowneditor/resources/3rdparty/marked.js examples/webenginewidgets/markdowneditor/resources/3rdparty/qt_attribution.json examples/webenginewidgets/markdowneditor/resources/markdowneditor.qrc mkspecs/features/platform.prf src/3rdparty src/core/media_capture_devices_dispatcher.cpp src/core/net/url_request_context_getter_qt.cpp src/core/net/url_request_context_getter_qt.h src/core/web_contents_adapter.cpp Change-Id: I467133ba455b1f85f6bb61793794c31cb1094541
| * Fix segfault in devtools openInNewTab handlingJüri Valdmann2018-07-161-1/+10
| | | | | | | | | | | | | | | | | | | | - Use OpenURL on the devtools WebContents. - Guard against self-destruction (otherwise quicknanobrowser crashes). - Change quicknanobrowser to open links in new tabs. Task-number: QTBUG-69359 Change-Id: I4db379731c6fa855124d38c5066b0aad622861d2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Rename BrowserContextAdapter to ProfileAdapterMichal Klocek2018-07-091-2/+2
| | | | | | | | | | | | | | | | | | Follow change of BrowserContextQt to ProfileQt. Fix wrong naming usage of browserContext instead of browserContextAdapter. Change-Id: I75fdac685d9bffd44f0144921d3e87305d6d44c9 Reviewed-by: Kai Koehne <kai.koehne@qt.io>