summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Note DNS prefetches can overrule remote access permissionAllan Sandfeld Jensen2022-09-291-1/+2
| | | | | | | Pick-to: 6.4 6.3 Fixes: QTBUG-106967 Change-Id: I0407258403ec3b76ce694e0f592fe57b4f45c746 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Try to pick up .rcc files as well in packagingAllan Sandfeld Jensen2022-09-281-1/+3
| | | | | | | | Seems they are not matched by the ** syntax. Pick-to: 6.4 Change-Id: Ibcabdc1d87d6d483e743efd3f6e5aa87df023d93 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix splittingAllan Sandfeld Jensen2022-09-281-2/+2
| | | | | | | | | | | | Was missing some Pdf files in the pdf module Fixes: QTBUG-106944 Fixes: QTBUG-86972 Change-Id: I996a890ecd84ed6084f2075a98c4572372cba5ac Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit e401e26fb5db72cc79af56bea942409c1d044bf4) Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> (cherry picked from commit 3c0a45e592f64a34d50c37345afe38753a46c028)
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2022-09-271-4/+4
| | | | | Change-Id: I35890810cb20104abf251fba03ff54fae5c3cbcb Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2022-09-231-4/+4
| | | | | Change-Id: I4fd4c0b3c3993de4e50416e4ed82f6fb600340bf Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* QtPdf multipage example: add macOS icon; support QFileOpenEventShawn Rutledge2022-09-227-6/+88
| | | | | | | | | | | The icon uses some parts from https://openclipart.org/detail/171857/icon-pdf-a%C2%8Dcone Pick-to: 6.4 Task-number: QTBUG-106460 Change-Id: I94ecc81d83f96fdced3dce630b94b9037d3e90f9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Work-around GNOME bug misidentifying HTML contentAllan Sandfeld Jensen2022-09-211-1/+4
| | | | | | | | | | Correct application/x-extension-html to text/html Fixes: QTBUG-97392 Fixes: QTBUG-106688 Pick-to: 6.4 6.3 5.15 Change-Id: I0d65c6950c5ba1504586cf564268463c5d4cd483 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* QtPdf multipage example: open files via DnDShawn Rutledge2022-09-211-0/+13
| | | | | | | | | Drop a different file onto the window to replace its contents with a different PDF. Pick-to: 6.4 Change-Id: I824d9f0caee69382352ab8d943b9977984db4fc9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Fix client certificate regression on LinuxAllan Sandfeld Jensen2022-09-201-2/+3
| | | | | | | | | The system certificate store was never generated after the define switched to being a BUILDFLAG Pick-to: 6.4 6.3 Change-Id: I2efa54bd397e2dde55c249747f73a9ffb08e80ea Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CMake: accept known valid 32 bit host architecturesRolf Eike Beer2022-09-151-1/+3
| | | | | | | | | | | | | | When trying to cross-build from one 32 bit host architecture to another the "Unsupported architecture:" case was hit, in which case the result of get_v8_arch() was empty. This would lead to configure_gn_toolchain() being called with a missing argument, which gave a totally unhelpful error message. Fix this by just accepting valid 32 bit architectures from the internal list, and raise the debug message to a FATAL_ERROR to get immediate feedback. Pick-to: 6.4 6.3 Change-Id: I8e0c757ad13e2acff67827bd9063c493e9d84444 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix os_crypt setup on windowsMichal Klocek2022-09-151-2/+2
| | | | | | | | | This parts were never compiled on windows. This amends 0ca4eba961. Change-Id: I683badfaf6e8be1cec808f3340e3980e167fbcdb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix locally falling tst_qpdfdocument on qemuMichal Klocek2022-09-151-1/+1
| | | | | | | | | | Use name for temporary file otherwise is can not be opened on qemu. Task-number: QTBUG-105342 Pick-to: 6.4 6.3 Change-Id: I7f9ed244c32b866ead6832ed942e2293be24811b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Check QT_OPENGL for softwareMichal Klocek2022-09-151-0/+7
| | | | | | | | | | | | According to qt docs this variable should have same effect like setting Qt::AA_UseSoftwareOpenGL on application, therefore read that in case of detecting the software mode. Pick-to: 6.4 6.4.0 6.3 Task-number: QTBUG-106095 Change-Id: I00fa8f0607ca44533c445434d1a35a1524bab679 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Do not let print engine multiply number of copiesSzabolcs David2022-09-141-1/+6
| | | | | | | | | | | | | | We print multiple pages by repeatedly drawing in a loop, which works good for PDF targets, but fails for physical printing. PPK_CopyCount flag is provided to the printing backend which multiplies our effort in this case. Temporarily setting the print engine back to 1 seems to be more reliable than trying to distinguish between paper of PDF target. Task-number: QTBUG-104224 Change-Id: Ic1be15c6965e6a739bcd44c8d904ac19f67719b5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Avoid crashing with unparented accessibilityAllan Sandfeld Jensen2022-09-141-6/+6
| | | | | | | | | | We do not get the automation id in this case then, but we have run without it before. Fixes: QTBUG-106588 Pick-to: 6.4 6.3 Change-Id: Ib65f1aaff1d7ef260df56c7de7198b0679e0d644 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Make opengl module name check more relaxedMichal Klocek2022-09-131-1/+1
| | | | | | | | | | | The module filename can be different depending on windows platform for example "openglsw32.dll", "openglsw32.DLL", "openglsw32". Make check more relaxed. Fixes: QTBUG-106095 Pick-to: 6.4 6.4.0 6.3 5.15 Change-Id: I0abd5f61df2a44b395c8a81511e4d3bc807e1537 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update ChromiumAllan Sandfeld Jensen2022-09-134-2/+3
| | | | | | | | | | | | | Submodule src/3rdparty 43b92e07d..1dc53de69: > [Backport] CVE-2022-3040: Use after free in Layout > [Backport] CVE-2022-3041: Use after free in WebSQL > [Backport] CVE-2022-3038: Use after free in Network Service > Merge branch 'upstream-master' into 102-based Fixes: QTBUG-106254 Pick-to: 6.4 6.4.0 Change-Id: Ifd55481c8d26f0e2cf8cb9e01cdaa8aa530354d8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Coin: Add core count configToni Saario2022-09-131-0/+6
| | | | | | | | | Reflects what has been configured in the Coin. Allows removing the rules from Coin and brings them visible. Pick-to: 6.3 6.4 Change-Id: I377333a4615af0844dc70eeccb7f2ed79fb30103 Reviewed-by: Simo Fält <simo.falt@qt.io>
* Fix using QNetworkReply with custom url schemesAllan Sandfeld Jensen2022-09-122-8/+60
| | | | | | | | | | | | | Sequential QIODevices are allowed to report atEnd() when they have no data to read, but add more data later. To avoid a regression with our own tests, treat a read error from a sequential device at end, as end-of-data. Pick-to: 6.4 6.4.0 6.3 Fixes: QTBUG-106461 Change-Id: Iac1233e6daa978c827c37a7fd3131e2fce764111 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CMake: use LIBRARIES rather than PUBLIC_LIBRARIESEdward Welbourne2022-09-121-1/+1
| | | | | | | The longer name is now deprecated in favor of the shorter. Change-Id: I3b5ddd4c221ebdddced3a624234e40d8c00b3d8e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Enable Push MessagingSzabolcs David2022-09-1215-4/+229
| | | | | | | | | | | | | | | | | | Use Chrome's implementation of PushMessagingService. This feature relies on notification permissions, so it is not different from Web Notification from end-users perspective. We don't persist push subscriptions, because it seems these have to be consistent with persisting notification permissions. Make address of push service configurable by a profile setting. It is empty by default - which means the feature is disabled until the user sets the address of a push service. Task-number: QTBUG-98904 Task-number: QTBUG-53457 Change-Id: If44f459fecf2da482c28fee5562f62fe40de103e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Use delay load for media foundationMichal Klocek2022-09-121-0/+1
| | | | | | | | | | | | | | | | | | | We should delay some dll loads as MediaFoundation is not available on Windows N. Chromium already uses that option when compiling components, however we use only response file to track dependencies, and those libs were never linked with DELAYLAD flags by (qt)cmake. There is currently no nice way to set those base on gn dependencies as those are generated on bulid time and we need linker flags on configure time. As workaround simply hardcode those 3 required libs, as side effect when linking QtPdf module there will be warning that there are no references to mentioned media foundation libs. Pick-to: 6.4 6.4.0 6.3 Fixes: QTBUG-100391 Change-Id: I06e4bffdf8bc6803a4f2b1437679628b9a733299 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix busy waiting on streaming QIODevice'sAllan Sandfeld Jensen2022-09-101-5/+6
| | | | | | | | | | The writable watcher will trigger all the time if we use automatic arming, instead we need to arm it manually when it is needed. Pick-to: 6.4 6.4.0 6.3 Task-number: QTBUG-106461 Change-Id: Ia381db338adb1b1994d1da9b50c6d6ff542ea3e5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Remove qLcNav logging category from qquickpdfpagenavigator.cppShawn Rutledge2022-09-091-2/+0
| | | | | | | | | | It's not used in QQuickPdfPageNavigator, and causes a linker warning about a duplicate symbol, especially in static builds. Pick-to: 6.4 Fixes: QTBUG-106361 Change-Id: I128c10a1aead1aa9a761dc091c626488fc195d12 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* PdfSelection: mark read-only for IM to avoid showing virtual keyboardShawn Rutledge2022-09-091-2/+1
| | | | | | | | | | | | | | | | | | | | | The Qt::ImReadOnly query enum is new in 6.2 (qtbase c80f262258b7846bf199887bcfdbb6dcfda6ad6f and aae4d52cbb79c61161271473ab5c3a1ba1086e01). It was added to the switch statement in 79d04aa9e3e9aa84d7378260519f9e9a6759dc41 but needs to return `true` to mark this Item as read-only, so that the keyboard will not open when it gets focus. The menu still gets populated with Select and Select All on long-press, and then Copy after a selection is made. That's all we need. The qt_im_readonly property was a sort of private API for Qt 5, and should no longer be needed (albeit the implementation is still in Qt 6 so far). Pick-to: 6.4 Task-number: QTBUG-83811 Fixes: QTBUG-106358 Change-Id: I677363be545d07884dffdfc10d6fdbd488cf2cf0 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Fix typo in CMakeList.txtMichal Klocek2022-09-091-1/+1
| | | | | | | | | | | | Fix typo, which slipped through testing. This covers the case when gn is already built (external project) and user reconfigures qtwebengine after removing cache (for non-prefix build) Pick-to: 6.4 6.4.0 6.3 Task-number: QTBUG-106406 Change-Id: Ic0d105ff7d50a07f3729cb0cd095d2a8daf6911b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Polish the QML/PdfViewer exampleFriedemann Kleint2022-09-082-8/+21
| | | | | | | | | | | - Use QCommandLineParser - Use QmlEngine::setInitialProperties() instead of context properties and make "source" a required property of type url - Use startup documents from resource Pick-to: 6.4 Change-Id: Idaad82be4d7cf862de96240af031ed317a401266 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Polish the nano browser exampleFriedemann Kleint2022-09-0810-30/+54
| | | | | | | | | | | - Use QCommandLineParser - Fix the organization name - Use modern QML type registration (Utils as a singleton) instead of context properties Pick-to: 6.4 6.3 6.2 Change-Id: Ibbe93dffd685ddd2e5f2d01852e006c4c47d9713 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* doc: Mark all QPdfLinkModel docs internal for nowShawn Rutledge2022-09-071-8/+8
| | | | | | | | | | | So far we only have QML API, but we don't have a public header yet; so this class should not appear in public docs. Pick-to: 6.4 6.4.0 Task-number: QTBUG-77511 Change-Id: I1f0f5c6b625597a73a67a3019b9f8271ce9cea9e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Polish the PdfWidgets/PdfViewer exampleFriedemann Kleint2022-09-073-9/+33
| | | | | | | | | | - Use QCommandLineParser - Fix up QFileDialog handling - Small fixes Pick-to: 6.4 6.3 Change-Id: I0cbe30a0fb5c856805956970407aa526d1d93fa4 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Add the git repo URL for the Qt PDF examplesVenugopal Shivashankar2022-09-071-0/+1
| | | | | | | | | This should enable the readers to access the up-to-date example code. Change-Id: Ie62bdea39d1374b49f1b8f5bf576b27c8f37996f Pick-to: 6.3 6.2 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* PdfSelection: check m_document before accessingShawn Rutledge2022-09-071-0/+12
| | | | | | | | | | The document is a property that the user needs to bind. If initializing it has been neglected or delayed somehow, we shouldn't crash. Pick-to: 6.4 6.4.0 Fixes: QTBUG-106355 Change-Id: I8e99b4bb84d868b694886058d56166fb3c4eabff Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Pdf[Multi|Scrollable]PageView: enforce zoom limits, don't get stuckShawn Rutledge2022-09-062-6/+8
| | | | | | | | | | | | | | Handlers must not get disabled because the zoom range is beyond limits: rather, let PinchHandler's minimumScale and maximumScale enforce them. So far, PdfMultiPageView and PdfScrollablePageView do not have other ways of zooming (like a WheelHandler for control-mouse-wheel), so we don't need BoundaryRule. But the limits applied by PinchHandler are "hard" limits: you bump up against them instantly, with no easing curve. Pick-to: 6.4 Fixes: QTBUG-104769 Change-Id: I4eb785e572816d1b80ea9c8f4f5b9c925594afac Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Copy gn in case for crossbuildMichal Klocek2022-09-061-0/+17
| | | | | | | | | | | In case of non prefix builds gn should be copied so it can be detected by cross-build from host qt. Pick-to: 6.4 6.3 Change-Id: I02937fc7101c249b22cfa06275c508410f888248 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Increase timeout for gn callShawn Rutledge2022-09-061-1/+1
| | | | | | | | | | It could be that 300 seconds is not enough on some machines. Amends dfa58067e31e77e20f0cd25f408e248c8ff82cf4 Pick-to: 6.4 Fixes: QTBUG-105168 Change-Id: Ice3fe6a68fe1969c21e001169bfba2d9dbdec770 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix wrong scalingMartin Negyokru2022-09-023-28/+40
| | | | | | | | | | | Use inherited screen_infos_ in RenderWidgetHostViewQt. Handle multiple screens. Fixes: QTBUG-105955 Fixes: QTBUG-105960 Pick-to: 6.4 Change-Id: I6e5d04e29ff1e8bb9936cc3103960f27895904d6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix moc's namespace for qquickwebenginesingletonMichal Klocek2022-09-021-1/+2
| | | | | | | Fixes: QTBUG-106090 Pick-to: 6.4 6.3 Change-Id: If0572c92e5b9fe6ae44c2d93d38dfa0f68289994 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2022-09-021-4/+4
| | | | | Change-Id: Ifa07bc6b4ab8592041b29df21dea5cc3180def4d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Improve tests for qemu-armv7Allan Sandfeld Jensen2022-09-022-3/+2
| | | | | | | | | | | test_runJavaScript() was badly written with a hardcoded wait of 100ms this should make it both faster on normal machines and more reliable on slower ones. Fixes: QTBUG-106210 Pick-to: 6.4 Change-Id: I539e59dce6e3719661202e1a213277794a660bd3 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add tst_MultiPageView::navigation() testShawn Rutledge2022-09-013-0/+138
| | | | | | | | | | | | The navigation() test is a high-level one to verify that the navigation stack works and that the TableView jumps to the expected locations inside the document when we go to pages, click links and use the forward() and back() methods. It's similar to the internalLink() test, but more programmable. Pick-to: 6.4 Change-Id: I337e2ae283213238288a172d1bab3df07a1395e0 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Blacklist tst_MultiPageView::password on WindowsShawn Rutledge2022-08-311-0/+3
| | | | | | Task-number: QTBUG-106072 Change-Id: Iecc763f0f8cd5f1b83588a31f1de4fd4f8c0055e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Begin adding Qt Quick Pdf testsShawn Rutledge2022-08-319-0/+762
| | | | | | | | | | | | | | | | | ...starting with tests for the PdfMultiPageView component. The file bookmarksAndLinks.pdf is fx/other/bookmarkgetcolor.pdf from https://pdfium.googlesource.com/pdfium_tests pdf-sample.protected.pdf is from 55b863f2dd2773290c63259c3835b19dcb277098 The shared/util implementation is adapted from the Qt Quick 3D module, with showView() adapted from qtdeclarative's viewtestutils.cpp. Pick-to: 6.4 Change-Id: I1458968846d33f262465a368fdaec771d4979b67 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Add touchHandles for widgetsMartin Negyokru2022-08-297-1/+131
| | | | | | | Task-number: QTBUG-100418 Task-number: QTBUG-91712 Change-Id: I69131d3c7c4511ea3114df7a9300bf6ff1a59fee Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crashes of combobox popup testsMichal Klocek2022-08-261-9/+22
| | | | | | | | | | | | | | | | Offscreenwindow from quickwidget is a top level window, which was from time to time used as "popup" window in the test instead of widgetwindow of webengineview. Check if window is offscreenwindow and do not consider it as valid window in the test. Moreover popup should be closed in the end of test, however checking for offscreen window would result in bogus outcome as offscreen window is destroyed before quickwidgetwindow. Pick-to: 6.4 6.3 Task-number: QTBUG-105342 Change-Id: Ibfeab0cad0bc43690c2458cb97738b4b5ea132f4 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-26110-110/+110
| | | | | | Task-number: QTBUG-105718 Change-Id: I2ad190e5536cdbdc8d2656e61892545d66911a02 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Reestablish default config for embedded buildsAllan Sandfeld Jensen2022-08-264-0/+21
| | | | | | | | | Was missing from the CMake switch-over Pick-to: 6.4 Change-Id: I0171d395f9e66c072e368b7019539fc29ff865b8 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix build with disabled webengine_printing_and_pdfPeter Varga2022-08-246-17/+51
| | | | | | | | Now the extensions can be enabled when printing is disabled. Pick-to: 6.4 Change-Id: I6183c795298eedf9cdf5110e580e73ba88f45828 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update ChromiumPeter Varga2022-08-241-0/+0
| | | | | | | | | | Submodule src/3rdparty 7ed043a1b..a7ecbb5ca: > Avoid calling git in build scripts > FIXUP: Fixes for jumbo build Pick-to: 6.4 Change-Id: I47ae3494c00750adefae192a45da270ca3706e86 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix debug build on armMichal Klocek2022-08-241-1/+4
| | | | | | | | We need --long-plt for arm debug builds. Pick-to: 6.4 6.3 Change-Id: I99fa6a2f8ec803cc399509d02a5cc9ad22fd0f87 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix initial widget focusPeter Varga2022-08-242-14/+43
| | | | | | | | | | | | Avoid WebEngineQuickWidget::rootObject() to steal focus from the content item (RenderWidgetHostViewQtDelegateItem). The root object is supposed to keep the content item alive and not handling input events. Fixes: QTBUG-105072 Pick-to: 6.4 Change-Id: I18e8ff39bfe338b742416bc56f6937edcfd2bc21 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>