summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve glType detectionMichal Klocek2022-03-131-51/+56
| | | | | | | | | | | | Clean up the glType detection and do not set extra gl related command parameters in case command line arguments have already '--disable-gpu'. Pick-to: 6.3 Task-number: QTBUG-100713 Change-Id: I5662a8c8fc64b38d483ed8349265f29f7ae0c5e4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumAllan Sandfeld Jensen2022-03-111-0/+0
| | | | | | | | | | | | Submodule src/3rdparty 96ef19263..7e3cb70a2: > Add crossbuild support for x64/x86 on macos-arm64 > Fix building with system ffmpeg > Fix static build with qt3rdparty libs Fixes: QTBUG-100672 Pick-to: 6.3 Change-Id: I4c56952cb8e2c56ba8b636b08f849128ace367f1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Add userScript docs for qml landMichal Klocek2022-03-105-3/+238
| | | | | | | | | | | | | | WebEngineScript docs were missing after moving classes to core. Moreover we changed WebEngineScript to be a qml value type and we introduced WebEngineScriptCollection to mirror C++ class. Add the documentation for WebEngineScript, WebEngineScriptCollection and WebEngine.script() method. Task-number: QTBUG-100404 Pick-to: 6.2 6.3 Change-Id: Ifed1bd1fa398a8634df0dc1bd44111e1a09ded04 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* multipage PDF viewer example: simplify, and fix more qmllint warningsShawn Rutledge2022-03-101-1/+1
| | | | | | | | | | - no need for the document.onStatusChanged handler - no need for empty-argument function() { ... } in onSignal handlers - unqualified access and so on - scale the search field margins and erase-button a bit better Change-Id: Ice8a41e4cc1fb0385046aa1867fdb4b1400234b6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Remove dead ResourceContextQt codeAllan Sandfeld Jensen2022-03-097-123/+2
| | | | | | | We no longer needed this transitional code. Change-Id: I1d0c9a4577a15b29e4275579f27b2d664ddba336 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Add static builds for qtpdfMichal Klocek2022-03-094-3/+45
| | | | | | | | | | | | | | | | | | Add 3rdparty installed headers so static builds can use bundled qt libs. Fix static gn and archiver/librarian setup. Updates 3rdparty: * 5d88de975 Fix static build with qt3rdparty libs Task-number: QTBUG-87154 Task-number: QTBUG-88614 Pick-to: 6.3 6.2 Change-Id: Iad7682da92b558b500140f415acc0bc9c9a1c22e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QPdfDocument: avoid setStatus(error) before certainty of which errorShawn Rutledge2022-03-071-2/+5
| | | | | | | | | | | When a document requires a password, we will first see PDF_DATA_NOTAVAIL, but we should not call setStatus(QPdfDocument::Error) yet, because updateLastError() will discover that it requires a password immediately afterwards. This avoids showing the user an incorrect error dialog. Amends 9968e2578f96081d2a242340620fcb2b96d9a1d3 Change-Id: I2216017d417bb0bad707900ce8c745363a396d7d Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QtQuick.Pdf: fix rendering on high-dpi screensShawn Rutledge2022-03-073-3/+4
| | | | | | | | | | Default scale is 1 point = 1 pixel, but that means logical pixels, since we have that facade everywhere else in Qt. We use image.sourceSize to make it render more pixels than it otherwise would, according to devicePixelRatio. Change-Id: I3ff05f050c9b60c14b8208d61717e796ddd56220 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Multipage PDF viewer: use TableView.columnWidthProviderShawn Rutledge2022-03-071-3/+2
| | | | | | | This doesn't actually fix anything AFAICT. Change-Id: Id5a20a409ae1f6d2e992221dd22bef2c3ddf9200 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Multipage PDF viewer: fix horizontal scrollingShawn Rutledge2022-03-071-1/+1
| | | | | | | | The ?? operator has lower precedence than *, apparently, so we need parens. Amends 170fc1c2cb43318817552f1a1bed42b5cdc6eb36 Change-Id: I0ff2c7ce408043e7a1d3f862dd3e591c9bea5336 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Expand documentation on the chromium versionsAllan Sandfeld Jensen2022-03-051-1/+4
| | | | | | | | Mention runtime calls, and the file in sources. Pick-to: 6.3 Change-Id: I30fd5581272caec4e24ecc9a3ced82b99803eae2 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* CMake: Fail gracefully when using an unsupported CMake versionAlexandru Croitor2022-03-041-1/+3
| | | | | | | | | | | | | | | | | | Previously if qtwebengine was configured with a CMake version lower than 3.19, CMake would exit with a fatal error saying the version is too low. Now the CMake version check is delayed to the configure summary which changes the hard error into a build time warning instead, just like with all the other repo requirements. An additional cmake_minimum_required call is used to require all 3.19 behaviors (upgraded policies) once configure establishes that the CMake version is new enough. Pick-to: 6.2 6.3 Change-Id: I03a20ae62ce2dcee23e5615241c6c97a86df4d2f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update build documentationAllan Sandfeld Jensen2022-03-041-13/+8
| | | | | | Pick-to: 6.3 Change-Id: I2c6dffbd8683ed909ff985f672de1914be83422a Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Split accessibility object between Chromium and Qt interfacesAllan Sandfeld Jensen2022-03-034-282/+332
| | | | | | | | | | They have different life-times and needs to be able to be deleted independently. Pick-to: 6.3 Fixes: QTBUG-100996 Change-Id: I812381c22699f9408e0c5d3edc489e51040a6491 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Add QQuickPdfPageImage and use in the PDF viewer componentsShawn Rutledge2022-03-0315-21/+446
| | | | | | | | | | | | | | | | | | | | | | | Image works fine, except that if QPdfIOHandler is not given an already-allocated QPdfDocument instance, it needs to construct its own. So we now have QPdfFile: a subclass of QFile acting as a wrapper, to carry the document instance (that the user has most likely declared) down into QPdfIOHandler::load(QIODevice *). Thus, in nontrivial PDF-viewing use cases, there is now usually only one multi-purpose document instance. And this takes care of viewing password-protected PDFs in the multipage example, because we already prompt for it and set the document.password property. In trivial use cases, it's OK to continue using Image, and QPdfIOHandler will still construct its own QPdfDocument instance if the QIODevice cannot be cast to a QPdfFile. Task-number: QTBUG-77506 Task-number: QTBUG-83988 Task-number: QTBUG-96574 Change-Id: I3adfa54c30b0baa5dedebcf3bc759758f136b757 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Check for loaded opengl library in case-insensitive mannerMichal Klocek2022-02-281-1/+1
| | | | | | | | | | | | | | After a14f2d59141e in qtbase library returned by GetModuleFileName can be "opengl32sw.dll" or as in ci "opengl32sw.DLL" as file extension is filled now by the winapi function. Make comparison case insensitive. Fixes: QTBUG-101084 Change-Id: I0816bbef21be40a786246ae9d43f031c5487a4f9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 1a50992c2bb56825ab085b8d8343e1effc8a3e8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update documented Chromium versionsAllan Sandfeld Jensen2022-02-281-1/+1
| | | | | | | Pick-to: 6.3 Fixes: QTBUG-100911 Change-Id: If669b46634bf31f419a1cf41e24c0ddfdae5aab6 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update ChromiumMichael Brüning2022-02-282-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty 2aad1f40..7dba564e: > Revert "[Backport] CVE-2022-0297: Use after free in Vulkan" > [Backport] CVE-2022-0297: Use after free in Vulkan > [Backport] Security bug 1292537 > [Backport] Security bug 1289394 > [Backport] Security bug 1289384 > [Backport] CVE-2022-0610: Inappropriate implementation in Gamepad API > [Backport] CVE-2022-0609: Use after free in Animation > [Backport] CVE-2022-0608: Integer overflow in Mojo > [Backport] CVE-2022-0607: Use after free in GPU > [Backport] CVE-2022-0606: Use after free in ANGLE > [Backport] CVE-2022-0303: Race in GPU Watchdog > [Backport] CVE-2021-4056: Type Confusion in loader > [Backport] CVE-2022-0466: Inappropriate implementation in Extensions Platform (4/4) > [Backport] CVE-2022-0466: Inappropriate implementation in Extensions Platform (3/4) > [Backport] CVE-2022-0466: Inappropriate implementation in Extensions Platform (2/4) > [Backport] CVE-2022-0466: Inappropriate implementation in Extensions Platform (1/4) > [Backport] CVE-2021-4066: Integer underflow in ANGLE > [Backport] Security bug 1268448 > [Backport] Security bug 1265570 > [Backport] Security bug 1252562 > [Backport] Security bug 1274113 > [Backport] CVE-2022-0470: Out of bounds memory access in V8 > [Backport] CVE-2022-0457: Type Confusion in V8 > [Backport] CVE-2022-0456: Use after free in Web Search > [Backport] CVE-2022-0453: Use after free in Reader Mode > [Backport] CVE-2022-0464: Use after free in Accessibility > [Backport] Security bug 1261415 > [Backport] CVE-2021-4053: Use after free in UI > [Backport] Security bug 1271747 > [Backport] CVE-2022-0468: Use after free in Payments (2/2) > [Backport] CVE-2022-0468: Use after free in Payments (1/2) > [Backport] CVE-2022-0461: Policy bypass in COOP > [Backport] CVE-2022-0460: Use after free in Window Dialog > [Backport] CVE-2022-0459: Use after free in Screen Capture > [Backport] CVE-2022-0306: Heap buffer overflow in PDFium > FIXUP: Keep the close button when "undocked", as we can dock differently > Fix more windows build errors on build without jumbo > FIXUP: Add missing include for Supplement Change-Id: I82671c60c00c940c4943a0df4234ac7286e9c0dd Pick-to: 6.3 Task-number: QTBUG-101051 Task-number: QTBUG-99099 Task-number: QTBUG-99720 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QtPdf: fix qml issuesShawn Rutledge2022-02-223-21/+36
| | | | | | | | | | | | | - required properties - unused imports - nullish coalescing - issues found by qmllint (despite all the noise) Reverts 99db09404787901647213abceda74befc7efa8f1 Task-number: QTBUG-82873 Change-Id: I0042d2eaeacba58adcf280c37b9668f8d76d0f93 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QtPDF QML: replace var with const where possibleShawn Rutledge2022-02-223-52/+50
| | | | | Change-Id: I63b0602bb3bb7161b87da2d8378b17b47dd872c5 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
* Make QtPdf a proper generated moduleShawn Rutledge2022-02-228-62/+7
| | | | | | | | | | | | | | | | | | | | - remove plugins.qmltypes, because it's generated automatically since d32563a3365fd9432993590e6ac9817fe6f6bd41 - plugin code is also generated, so we don't need plugin-related CMake commands - QtQuick is a dependency; auto means forward the import version to the dependency. - QtQuick.Controls is only needed in bundled qml files, and we expect tooling to find it from import statements. It's not declared as a cmake dependency because we don't use it from C++. - move qml files into the source directory so that the implicit import matches the module directory - move style-specific PdfStyle.qml files into directories beginning with capital letters, since we are moving them anyway, and the styles now have capitalized names Change-Id: If517ce30d0e22fb0354272cd2002841fd2783cfc Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QQuickPdfLinkModel::setDocument: avoid crash if document is nullShawn Rutledge2022-02-221-1/+2
| | | | | | Change-Id: I477e822bf2a64c5b6adde50cbe84a58d8299a9cd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Use a specific \ingroup name for qt_add_webengine_dictionaryTopi Reinio2022-02-211-2/+2
| | | | | | | | | | | | CMake manual uses module-specific group names when listing CMake commands. Also, change a \target to a \keyword as it fits this purpose better. Pick-to: 6.3 Task-number: QTBUG-100210 Change-Id: If9d075356c616ff5528f9a04e2d66bfb72e7a51a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add QML test for basic profiles and fix the docs accordinglyKirill Burtsev2022-02-171-10/+11
| | | | | | | | | Amends d0ff107c00. Ensure default values for profile settings match the docs. Also fix doc's issues after off-the-record toggle to off by default. Pick-to: 6.2 6.3 Change-Id: I558a77dbec82d7f2b335b1a2ceca74ab66a1a6e9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Introduce "--webEngineArgs" to prevent unexpected sub-process argsMichal Klocek2022-02-171-0/+7
| | | | | | | | | | | | | | | | | If there is no QTWEBENGINE_CHROMIUM_FLAGS env export we pass all args to Chromium as "command line". However passing "-type=1" to qt application with webenigne ends will crash since this arg is used for sub-process type handling. Prevent any accidental user args which can affect chromium switches and from now on pass only args explicitly stated after "--webEngineArgs" option. [ChangeLog] Command line arguments meant for webengine has to be now stated after "--webEngineArgs" option. Fixes: QTBUG-68820 Change-Id: I57b3921d2250f75d445ee7173566dadc41e4ca93 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Minor. Fix context logMichal Klocek2022-02-171-2/+2
| | | | | | | | | Log context before initialization as it can fail/crash and we do not see what failed. Pick-to: 6.3 6.2 Change-Id: Ib47906c25bf8fb55c6c043ba5fadce9b354a87fc Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add charset parsing to custom scheme handler's content typeAllan Sandfeld Jensen2022-02-162-13/+17
| | | | | | | | | | This was already assumed by test in tst_qwebengineprofile. [ChangeLog][QWebEngineUrlRequestJob] Charset is now explicitly parsed from provided contentType Pick-to: 6.3 Change-Id: I9bfb1f94cf523fbe0f9796654b4114e61e904c92 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add test for blocking of remote contentAllan Sandfeld Jensen2022-02-141-2/+1
| | | | | | | Pick-to: 6.3 6.2 Task-number: QTBUG-50686 Change-Id: Ie176bece1a44a6df608646e91171d02ceeea7e8f Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add html5lib to platform notesMichal Klocek2022-02-141-1/+1
| | | | | | Pick-to: 6.3 Change-Id: If414e4e8669032ebc8b7a11c8f7db2e67f269503 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* CMake: Adjust qt_add_webengine_dictionary APIAlexandru Croitor2022-02-112-9/+11
| | | | | | | | | | | | | | | | | Rename the webengine_dictionaries custom target to qtwebengine_dictionaries. We don't name it qt_webengine_dictionaries for it to be consistent with the name of the directory where WebEngine looks up the binary dictionaries. Also fix the docs to mention the correct location of the dictionary output directory. Pick-to: 6.3 Task-number: QTBUG-100210 Change-Id: I0232fa17d904ff602a09a70d21ad3d94c145b4c7 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix using system libxsltAllan Sandfeld Jensen2022-02-111-0/+4
| | | | | | | | | | The webengine-libxml settings should set both use_system_libxslt and use_system_libxml Pick-to: 6.3 6.2 Fixes: QTBUG-100500 Change-Id: I1c731530a56e0ca9a49b91e1d6e095d8b416dd8d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update ChromiumMichael Brüning2022-02-111-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty d1338207..2aad1f40: > [Backport] Security bug 1212957 > [Backport] Security bug 1276331 > [Backport] Security bug 1280743 > [Backport] Security bugs 1283805 and 1283807 > [Backport] CVE-2022-0290: Use after free in Site isolation > [Backport] CVE-2022-0305: Inappropriate implementation in Service Worker API > [Backport] CVE-2022-0305: Inappropriate implementation in Service Worker API > [Backport] CVE-2022-0293: Use after free in Web packaging > [Backport] CVE-2022-0289: Use after free in Safe browsing > [Backport] Security bug 1242339 > [Backport] Security bug 1270014 > [Backport] Security bug 1256885 > [Backport] Security bug 1258603 > [Backport] Security bug 1259557 > [Backport] Security bug 1267426 > [Backport] CVE-2022-0116: Inappropriate implementation in Compositing > [Backport] CVE-2022-0111 and CVE-2022-0117 (2/2) > [Backport] CVE-2022-0111 and CVE-2022-0117 (1/2) > [Backport] IWYU: add algorithm for std::max and std::min > [Backport] trace_processor: Fix IWYU > Revert "Fix include of <algorithm>" > [Backport] CVE-2022-0097: Inappropriate implementation in DevTools (3/3) > [Backport] CVE-2022-0097: Inappropriate implementation in DevTools (2/3) > [Backport] CVE-2022-0097: Inappropriate implementation in DevTools (1/3) > [Backport] CVE-2022-0113: Inappropriate implementation in Blink > [Backport] CVE-2022-0109: Inappropriate implementation in Autofill (2/2) > [Backport] CVE-2022-0109: Inappropriate implementation in Autofill (1/2) > [Backport] CVE-2022-0108: Inappropriate implementation in Navigation > [Backport] CVE-2022-0104: Heap buffer overflow in ANGLE > [Backport] CVE-2022-0103: Use after free in SwiftShader > [Backport] CVE-2022-0102: Type Confusion in V8 > [Backport] CVE-2022-0100: Heap buffer overflow in Media streams API > Revert "Fix build with GCC 10" Pick-to: 6.3 Task-number: QTBUG-99099 Task-number: QTBUG-99720 Change-Id: I4d734dca71af23babc29c8570a0eaa09544ea1db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Correct documentationAllan Sandfeld Jensen2022-02-101-2/+2
| | | | | | | | WebEngine was first in 6.2 Pick-to: 6.3 6.2 Change-Id: Id8e6e438e5f4cfd7b28ed8f821f503125033ae62 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* PdfDocument: resolve the source URLShawn Rutledge2022-02-102-7/+12
| | | | | | | | | | | | | Similar to qtdeclarative 0a1e4cc7ec7548f6273befff9cdddb0bc7a58961 except here, setting the source calls QPdfDocument::load() immediately, so we need to resolve the URL right before doing that. The results are visible in most of the manual tests: they again load test.pdf immediately, as in Qt 5. Pick-to: 6.3 Change-Id: I8c67a9e1c72ac390c24d72d5e229ff0ef9f4aa0d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* PDF: Remove Q_FUNC_INFO from qCDebugShawn Rutledge2022-02-101-3/+3
| | | | | | | | They are redundant as long as you have %{function} in your QT_MESSAGE_PATTERN, and have configured with -developer-build. Change-Id: I89106bab0f4c1275633d7033761b9a5844df9403 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: State Qt versions for when CMake commands etc. were introducedJoerg Bornemann2022-02-101-0/+2
| | | | | | | Pick-to: 6.3 Task-number: QTBUG-100212 Change-Id: I03f5c83f5a745bb9f14c06d571333f074aec7f6c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Adapt to moving of type registrations into the Qt namespaceUlf Hermann2022-02-101-2/+2
| | | | | Change-Id: I46259b81a75d050e6fb3554ee2b13e76bb90cd3b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crash on WebEngine(View|Profile).userScripts.collection getKirill Burtsev2022-02-1011-21/+180
| | | | | | | | | | | | | | | To create a javascript list on 'collection' method qml engine is needed for a qml scope, but it's only available for objects, which are created by the QML Engine itself. The only object in hierarchy of classes is an actual WebEngineView, so get it from there on collection init. Also implement delayed initialization of scripts collection for the usage of default profile through WebEngine singleton, and for the reason that it's not really needed until really asked by user code. Pick-to: 6.2 6.3 Fixes: QTBUG-96597 Change-Id: I61e76652a5d0fd5609070fd541816503908f2dc8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QtPdf: Fix QML warning about usage of injected signal parametersPeter Varga2022-02-082-2/+2
| | | | | | Pick-to: 6.3 6.2 Change-Id: I4bbc3c1adf4ba2bc5cc8d71278e201ee05fc85bd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QQuickPdfSelection: Fix division by zeroPeter Varga2022-02-082-1/+6
| | | | | | | | | | | | | | | | | | QQuickPdfSelection::m_renderScale is used for division in QQuickPdfSelection::updateResults(). Add warning message to setRenderScale() and ignore the new value if it is zero. Also avoid setting PdfSelection.renderScale to zero in PdfScrollablePageView. The division caused an assert: ASSERT: "divisor < 0 || divisor > 0" in file qtbase/src/corelib/tools/qpoint.h, line 299 It was reproducible with the pdfviewer quick example. Pick-to: 6.3 6.2 Change-Id: I31e08a9a28392fcc132470c8d94af1307447565a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Update ChromiumMichal Klocek2022-02-041-0/+0
| | | | | | | | | | | | | | | | | | Pulls in following commits: * ceaca362c9a Fix ios compilation issues * c6dd23dca6e FIXUP: Remove fat lib support * 4d33af9093a Add qtpdf ios gn adaptations * b09e95c3fe8 Revert "Make compile time switch at compile time" * ca78f43edb2 Revert "Disable long presentation time DCHECK" * b042491acb4 Revert "Fix disabling reporting" * d5ae47fe7af [Backport] Fix build for 'enable-reporting=false' * ee7acb3042a [Backport] Remove NOTREACHED assertions from NetworkContext's reporting methods * d133820740f Do not create empty rsp files Change-Id: I22f1587ba1364392c311c70b46aa99b55760d324 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add QtPdf iOS buildsMichal Klocek2022-02-042-3/+8
| | | | | | | | | | | | | | | | | | | | | | QtPDf iOS builds must support fat libs builds. Compared to 5.15 however this is done differently. Before we tweaked gn to compile multi arch with 'Xarch' parameter. This had few downsides as we could not determine which arch/cpu compiles given file as compilation was opaque to gn. The current approach is to follow mac universal builds, compile builds separately for each architecture and lipo the outcome. However, this introduces some issues as ios builds are static builds and creating lipo archive will gather object files, which should end up in final QtPdf lib instead. Therefore create multi arch object file instead of archive and use this one. Note the compiler now uses arch triple for Pdfium as Chromium does, however qt files still use 'arch' and '*-version-min' combination. Task-number: QTBUG-88614 Pick-to: 6.3 6.2 Change-Id: I7775c8b4d1554df497eb61fa6187f12c00b9032d Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Introduce gn complete static lib target for qtpdfMichal Klocek2022-02-043-4/+7
| | | | | | | | | | | | | | | | | | | | | | With 6.x we have gn-cmake integration which allows now in case of static builds to switch gn target output to static_library with 'complete static' option instead of shared_library. This way we can avoid installing dependencies in form of internal static Chromium archives as it was done in 5.15 in case of static builds. Unfortunately 'complete static' option can not be used with QtWebEngineCore build as it will exceed 4Gb static archive limitation on Windows, however it will work fine with QtPdf. Note the qtbase 3rdparty static libs have to be still installed in case of qt static build, this patch only eliminates need for Chromium specific ones. Task-number: QTBUG-88614 Pick-to: 6.3 6.2 Change-Id: I6fc4ce48c79a1631b013d0b29c190c62280f7304 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix accumulation of compositor-observer bindings for skia-on-glKirill Burtsev2022-02-045-11/+2
| | | | | | | | | | | | | One of Compositor's derived classes, DisplaySkiaOutputDevice, was missing call to 'unbind' from its observer, leading to not releasing binding from global cache on destroy. Since unbind is done on destroy, remove all explicit calls to unbind from derived classes, and just do them in their base implementations. Ammends b117909825. Pick-to: 6.2 6.3 Change-Id: I75c909eaa22ca1946ad67aa5093a8ee268c3562b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Detect GSSAPI on Linux and pass it onAllan Sandfeld Jensen2022-02-032-0/+8
| | | | | | | Pick-to: 6.3 Fixes: QTBUG-100291 Change-Id: Iba9a9b41938e6ff9270bb8f98393c31d30663859 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Update ChromiumAllan Sandfeld Jensen2022-02-021-0/+0
| | | | | | | | | Submodule src/3rdparty 206bed415..5bdf41e55: > Revert "[macOS] Fix build error with new deployment target" > Add GN arg to pass gssapi include directory Change-Id: Id4187c57eef4f4a3d9d07c7d45b1249ab362a217 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Do not list native spellchecker feature on LinuxAllan Sandfeld Jensen2022-02-021-2/+5
| | | | | | | | | | And make the condition more general as it is available on both macOS and Windows. Pick-to: 6.3 6.2 Fixes: QTBUG-100293 Change-Id: If430eaa219f910bc686dc0859178b52a0d0c3fb3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* QWebEngineView Designer plugin: Fix crash on Windows when using D3D11Friedemann Kleint2022-01-311-0/+9
| | | | | | | | | | Disable the plugin for non-OpenGL graphics API similar to qttools/482125b15648944d18ae120644f9ffe11b327ff2 for QQuickWidget. Pick-to: 6.3 6.2 Fixes: QTBUG-100285 Change-Id: Icea3d81c97ef043e953334b134ba632a9daa13a5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Improve local scheme access rulesAllan Sandfeld Jensen2022-01-286-43/+57
| | | | | | | Pick-to: 6.3 6.2 Task-number: QTBUG-96849 Change-Id: Ieb24da12a61e5e37b29ccf2d1a11b7bd863b842e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update ChromiumAllan Sandfeld Jensen2022-01-281-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Submodule src/3rdparty dd2725bea..206bed415: > Allow accessing file protocol from protocols with local-access > Add allow_remote_access_from_local_urls setting > FIXUP: Optimize skvx::fma for GCC > FIXUP: Optimize skvx::fma for GCC > [Backport] Fix wrong mipmap sampling option for Medium filter quality > Speculative fix for build error > [Backport] CVE-2021-4102: Use after free in V8 > [Backport] CVE-2021-4101: Heap buffer overflow in Swiftshader > [Backport] CVE-2021-4100: Object lifecycle issue in ANGLE > [Backport] CVE-2021-4099: Use after free in Swiftshader > [Backport] CVE-2021-4098: Insufficient data validation in Mojo > [Backport] CVE-2021-4079: Out of bounds write in WebRTC > [Backport] CVE-2021-4058: Heap buffer overflow in ANGLE (2/2) > [Backport] CVE-2021-4058: Heap buffer overflow in ANGLE (1/2) > Fix compilation with c++20 > [Backport][heap] implement more stub method to fix build with msvc > Revert "Forward declare newer EGL typedefs" > Revert "Fix Linux kernel lacking V4L2_CID_POWER_LINE_FREQUENCY_AUTO" > Optimize skvx::fma for GCC > Use clang builtins in gcc when available Pick-to: 6.3 Change-Id: I01d2274ee3b7467dad431365985112864e39a1fc Reviewed-by: Michal Klocek <michal.klocek@qt.io>