summaryrefslogtreecommitdiff
path: root/chromium/third_party
Commit message (Collapse)AuthorAgeFilesLines
* FIXUP: C++20 initializationsAllan Sandfeld Jensen2022-11-1531-90/+91
| | | | | | Change-Id: I39279fad02aeb01f9e5d3f34b4dfc7bba28713b7 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/442398 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* FIXUP: Legalize the bloody codeAllan Sandfeld Jensen2022-11-152-3/+3
| | | | | | Change-Id: I85640c8924200583ed932a6d98fef6ea80c50827 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/442603 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Make GrVkImage externalPeter Varga2022-11-153-0/+42
| | | | | | | | | Task-number: QTBUG-107669 Change-Id: I8ba6c8bab4f29c13b368a8e53f762d6aac1f009c Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/435455 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/442494 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* [Backport] libstdc++: do not make ReverseBeaconTimeoutSorter function call ↵Peter Varga2022-11-141-3/+2
| | | | | | | | | | | | | | | | operator constexpr In C++17 STL, std::sort is not a constexpr in any case. So we do not get any benefit from making ReverseBeaconTimeoutSorter a constexpr. This will fail, as in GCC the function call operator is implicitly virtual, and virtuals cannot be constexpr before C++20. Bug: 819294, 957519 Change-Id: I5894605fb3ee9478b1c5aef626025ea3fd6aeeca Review-URL: https://chromium-review.googlesource.com/c/chromium/src/+/3864599 Cr-Commit-Position: refs/heads/main@{#1042121} Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/442970 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Reland two changes for establishing gpu channelMichal Klocek2022-11-092-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 244709: Stop orphan child processes from staying alive on Windows https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/244709 Stop orphan child processes from staying alive on Windows Starting with Qt 5.11, on Windows, when the main WebEngine process crashed, the child render process would stay alive and use a whole CPU core trying to do something. What happened was that an existing layer tree frame sink was invalidated, and a request to create a new one was issued via RequestNewLayerTreeFrameSink, which failed due to the main process being dead, which scheduled a new request, and so on, which caused the child process main thread message loop to never exit. In Qt 5.10, this did not happen, because when the first request to create the sink failed, a new "software sink" was successfully created that did not depend on the host GPU process thread (see RenderThreadImpl::RequestNewLayerTreeFrameSink in render_thread_impl.cc). Thus the message loop ran out of tasks to execute, and could gracefully quit. The "software sink" code branch was removed in Qt 5.11+. Thus the hacky fix is to try and create the sink only a certain amount of times, and stop scheduling new requests after that. ------------------------------------------------------------------ 426757: Fix endless loop on race condition on qemu startup https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/426757 Fix endless loop on race condition on qemu startup Fix a weird race condition which ends in endless loop with a single-process, when gpu_channel_host is not ready in WidgetBase::RequestNewLayerTreeFrameSink and calls callbeck with nullptr, which ends in LayerTreeView::DidFailToInitializeLayerTreeFrameSink which again calls RequestNewLayerTreeFrameSink without giving a chance to initialize channel and round repeats itself. Give 10ms delay to cover the issue. ------------------------------------------------------------------ Fixes: QTBUG-105063 Task-number: QTBUG-69030 Task-number: QTBUG-105342 Pick-to: 98-based Change-Id: Icf3e4c75e009ae7b171a9e9ce2a394f8de421737 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix debug builds on arm32Michal Klocek2022-11-091-1/+7
| | | | | | | | | | | Debug build with neon and arm32 ends in compilation error "'asm' operand has impossible constraints" for raw_neon.cc most likely due to limited number of registers, therefore simply remove frame pointer in case of debug. Pick-to: 98-based Change-Id: I8be9ebf5c00f8e43aebfa6cf088665f85a25b7e1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Avoid calling git in build scriptsPeter Varga2022-11-091-19/+26
| | | | | | | | | Do not call dawn_version_generator.py. It generates Version_autogen.h but it isn't used anywhere. Fixes: QTBUG-105755 Change-Id: If7eaf8d3a8196d12e3e49627353bce7c1a928c89 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Move gio to public_configAllan Sandfeld Jensen2022-11-091-1/+3
| | | | | | | | | Because gio/gio.h is included from a header. Change-Id: I5c636d08e72cbae08509496fe1149bb989d6b3bb Fixes: QTBUG-105818 Reviewed-by: Christophe Giboudeaux <christophe@krop.fr> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Apply blink symbol level to blink mojom tooAllan Sandfeld Jensen2022-11-091-0/+11
| | | | | Change-Id: Iaab6aa11903d3355ce460f6e03cd86b603d3129a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix build with older FreeTypeAllan Sandfeld Jensen2022-11-093-8/+8
| | | | | Change-Id: I191aa55c896ce4303e129d2ca6e43b4c1b4bca2d Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Bundle all localisation files for DevToolsSzabolcs David2022-11-092-0/+87
| | | | | | | Do not download them from remote location in runtime. Change-Id: I54c96408e83d2ac134c49c1280a19f83c91c6e68 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix broken bundled zlib for cross compilationMichal Klocek2022-11-091-2/+3
| | | | | | | | | | | | | | | | | Bundled zlib when cross compiling with neon support assumes armv8 and requires built-in intrinsics for the ARMv8-A CRC32. However qt supports armv7 with neon support, which will end up in false armv8 outcome architecture for final library and will end up in unusable binaries for armv7 platform. Disable neon optimization for crc32, we should use system zlib anyway which is fixed in other patches. Task-number: QTBUG-103149 Pick-to: 94-based 90-based Change-Id: Ibfb5caa67cfea53b4c6a1bc1ed4948816c05ca38 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Make sure we do not compile minizip from 3rdpartyMichal Klocek2022-11-091-0/+3
| | | | | | | | | | | | | There are two minizips in chromium src tree, minizip from third_party/zlib and separate third_party/minizip. Remove minizip used for fuzzers. Sources could be removed with next adaptation. Task-number: QTBUG-103149 Pick-to: 94-based 90-based Change-Id: I30a9828dece43bf82e0be8d20ab8f2ccb2baab1d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Find fontconfig using pkg-configAllan Sandfeld Jensen2022-11-091-2/+3
| | | | | | | | | We already verify that it can be found like that during configure Pick-to: 94-based 90-based Task-number: QTBUG-61158 Change-Id: I569590e96a490c4ed6e6dc560fbd110d86d77956 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix clang buildMichal Klocek2022-11-091-0/+1
| | | | | | | Fix "unknown type name 'uint8_t'". Change-Id: Idd6a3877f16ae2bf1d3da5f53c2328a95111bd17 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix compilation with system ICUKirill Burtsev2022-11-091-8/+16
| | | | | | | | | | | | Update shim headers - https://unicode-org.atlassian.net/browse/ICU-20601 - https://github.com/unicode-org/icu/pull/759 Change-Id: Ie05c005ebcded9a228386db5d9abe9863787ec2b Fixes: QTBUG-78911 Reviewed-by: Jimi Huotari <chiitoo@gentoo.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix static build with qt3rdparty libsMichal Klocek2022-11-097-35/+11
| | | | | | | | | | | | Make fixes for cmake builds, where we need to use config("<foo_lib>_from_qt") as we do not know include paths in time of cmake configure run, but during build time. Task-number: QTBUG-87154 Task-number: QTBUG-88614 Change-Id: I27a9a164c148434606bc0e45a8e996257a80b88f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Unbreak FFMPEG on windowsAllan Sandfeld Jensen2022-11-0918-21/+4190
| | | | | Change-Id: I6ab84de14aeaffb71ea0c59e450d9177b5623394 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Add qtpdf ios gn adaptationsMichal Klocek2022-11-091-1/+4
| | | | | | Task-number: QTBUG-88614 Change-Id: I1f97b642ea031ae27f6f369a5c33301d72093d8f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix ios compilation issuesMichal Klocek2022-11-092-1/+5
| | | | | | Task-number: QTBUG-88614 Change-Id: I558946624df8e349edb5f07ad4be427ac9cfe234 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Allow accessing file protocol from protocols with local-accessAllan Sandfeld Jensen2022-11-091-1/+1
| | | | | | | And let local schemes also have local access. Change-Id: I0d0a18af6d091d4edb09db0a3796403cb2ad00fb Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add allow_remote_access_from_local_urls settingAllan Sandfeld Jensen2022-11-094-0/+8
| | | | | | | We use this for our QtWebEngine remote access control Change-Id: Idd88004960f22ca197fc0645848bba12b66697b9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix compilation with c++20Allan Sandfeld Jensen2022-11-091-1/+1
| | | | | Change-Id: I974bd848cfc58f9b275f6d094a3916a573840ab5 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Optimize skvx::fma for GCCAllan Sandfeld Jensen2022-11-091-0/+42
| | | | | | | | Add specific specializations and make sure we get to them from the 32 entry width being used. Change-Id: I7b6f3636a63742c40e5953661709eeb0d5c676b3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Use clang builtins in gcc when availableAllan Sandfeld Jensen2022-11-091-3/+15
| | | | | | | | __builtin_convertvector since gcc 9 __builtin_shufflevector since gcc 12 Change-Id: I51f056473342054203016e87b4e048d0e8139f11 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fixes for building with MSVCAllan Sandfeld Jensen2022-11-0960-132/+247
| | | | | | | | Work-around various issues to make Chromium build on MSVC Change-Id: I3489452c9d7e61243fb60b877d289293b1850ebe Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix QtWebEngine build on all platformsPeter Varga2022-11-098-18/+24
| | | | | Change-Id: Id3c003e5b0c01cb8423622ee696c9e27ac50d607 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix crashes and assertsPeter Varga2022-11-092-2/+2
| | | | | Change-Id: I78fe26250a0f722c1105f8d6ad2c40ff00efbf28 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix ios build issues for 83 adaptationsMichal Klocek2022-11-097-2/+27
| | | | | | Change-Id: I1d73d4726f955e3a555b3a389d1422638a2b1c5e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Enable color-dialog for usAllan Sandfeld Jensen2022-11-095-5/+9
| | | | | | | Makes us use the android code-path to use our own color-dialog for now. Change-Id: I6ea7e0584ef5fefb1cb1d7eec3ac3f38c5eb3b07 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fixes for jumbo buildAllan Sandfeld Jensen2022-11-0956-222/+295
| | | | | | | | Fixes necessary to make jumbo build work Change-Id: I1551ddeaa15fdc4e9db72e86ea49191193cb4964 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Reinstate jumbo-buildsAllan Sandfeld Jensen2022-11-0927-49/+67
| | | | | | | | | Reverts four patches disabling and removing jumbo builds. It makes too big of a difference for us to drop. Change-Id: Ib7dd65996f9e985480f49fab2d1781a5d08bf6fd Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add missing include for SupplementPeter Varga2022-11-0937-0/+37
| | | | | | | Forward declaration is not enough for MSVC 2019 build. Change-Id: Idae16a02854834e9a176a558ff6306546866f46a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Get rid of GCC extension in generated codeAllan Sandfeld Jensen2022-11-091-4/+3
| | | | | Change-Id: Idb1a87502193382f2d0827032000e5a0b1acee33 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update TextSelection for non-user initiated eventsPeter Varga2022-11-0916-12/+47
| | | | | | | | | | | | | | | | | This makes Chromium Content API to be able to notify about text selection changes triggered by non-user events (eg. JavaScript, IME, autofill). Based on: https://codereview.chromium.org/2903833002 Corresponding Chromium bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=671986 Change-Id: I86a7f203d789853199469b301facd06fe5ba54bd Task-number: QTBUG-53134 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Forward cleared selectionsAllan Sandfeld Jensen2022-11-091-1/+1
| | | | | | | | | The UI layer needs to have the selection updated also when the selection is not valid because it has been cleared. Change-Id: I86dac087a8ea94fca4a91a2667658395b65e6046 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Export a base background-color override from WebView againAllan Sandfeld Jensen2022-11-092-1/+3
| | | | | | | | web_view_impl.h does not compile outside of blink, so we need the setter in WebView. Change-Id: Ibdd48b86cd026270a5c48c4d6ba7e3c251062438 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Fix QtWebEngine build with clang-clPeter Varga2022-11-092-1/+2
| | | | | Change-Id: Ia212712f07627f919c30de4d06bbe2d7f8e3ddea Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cast the right side of a left shiftAllan Sandfeld Jensen2022-11-091-1/+1
| | | | | Change-Id: I1cbeefc92754ea11f5c4622cad055639d21fe4a8 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Remove linking with libatomicMichal Klocek2022-11-091-1/+1
| | | | | | | | Rhel machines on ci do not have it. Change-Id: I4cbb6d9d0826a23f8065a9eebba7ba27856e44d4 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix data fragment navigationAllan Sandfeld Jensen2022-11-091-24/+24
| | | | | | | Allow same page navigations since they aren't real navigations anyway. Change-Id: I9809f6fb8534d00a2725231a8f108591e88b81ad Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Make scroll animation less "drunk"Allan Sandfeld Jensen2022-11-091-0/+6
| | | | | | | | Tries to use the new bezier curves to approximate our old smooth scrolling behavior. Change-Id: I3b319025fb0339ec95c0a29525f2dde0631866ed Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* Restore WebFrameContentDumper::DumpAsMarkupAllan Sandfeld Jensen2022-11-092-0/+11
| | | | | | | Qt WebEngine is still using it. Change-Id: I8f9aed97c06c8e38032b8c89161e1800f2169cde Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix arm64 Skia build for macOSMichael Brüning2022-11-091-2/+8
| | | | | | | | The cast that we use to compile on aarch64 without fp16 caused a compilation error for macOS arm64. Re-establish the upstream version for this case. Change-Id: Ic4c4c20f9502bf5ae716956efaa87a15026f8a29 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add first_party_url for net::SiteForCookiesTamas Zakor2022-11-092-5/+13
| | | | | | | | | | | | | | | | This change brings back the behavior when the site for cookies was stored as an URL before Chromium 81. QtWebEngine implementation relies on that becuase it uses SiteForCookies to provide first party url in some cases. The site for cookies url was replaced by net::SiteForCookies in change https://chromium-review.googlesource.com/c/chromium/src/+/1925189 Task-number: QTBUG-90231 Change-Id: Ie1e4be21535a646699b031c3a2ebdb0a19617fc7 Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix crashes on getUserMediaRequestMichal Klocek2022-11-091-0/+5
| | | | | | | | | | | | If the build is compiled with no webrtc, the platform abstraction will return no VideoCaptureImplManager and this is not handled well within LocalVideoCapturerSource. After a short call stack analysis, it seems the most suitable place to bailout is in the user media processor, report no hardware as in unit tests. Change-Id: I75c92e4fe8869d6f3fb6831e8bf24c982d0b347c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Keep the close button when "undocked", as we can dock differentlyAllan Sandfeld Jensen2022-11-092-17/+2
| | | | | Change-Id: I6e3c3092941e0211faba2ba0d1ad99d6e25c50d3 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Legalize usage of X86 intrinsicsAllan Sandfeld Jensen2022-11-095-33/+42
| | | | | | | Do not rely on gcc/clang extensions. Change-Id: I32c60ea6d7ddb242deecfe36391e92a3768ab549 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Allow the embedder to suppress an error page for http errorsKirill Burtsev2022-11-091-0/+1
| | | | | | | | Add missing initialization for a mojo message and check it even on successful navigation but with a http error. Change-Id: I8946b186b87ed4e62e84533a48f9734cab3a2c74 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add qt static dependencies: qtzlibMichal Klocek2022-11-091-0/+20
| | | | | | | | | QtZlib is a part of QtCore, and we need also shim headers since v8 will refer to zlib in 3rdaprty. Task-number: QTBUG-87154 Change-Id: I85c063b77eacd8dafae59cc1ef2b391e3f7c1ce0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>