summaryrefslogtreecommitdiffstats
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken jpeg includesMichal Klocek2019-09-031-3/+15
| | | | | | | | | In Chromium 67 use of system jpeg is by default. Fix our configure. Fixes: QTBUG-77827 Change-Id: I6319f0fab9983d63c733a9723847ad793141e073 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add doc's cross-references for web notification example and api methodsKirill Burtsev2019-08-291-0/+6
| | | | | Change-Id: If5a2d6a15a282a83e47e2bfb3d7e1a2a7c9a50fa Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Add missing doc for WebEngineNotification QML typeKirill Burtsev2019-08-291-4/+73
| | | | | Change-Id: I3090b7cbbb9b913f147aaba8f39cefcd41e30d46 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/5.12' into 5.13Liang Qi2019-08-112-1/+3
|\ | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: I64b46801bbaac4e96e32fece30f24f1d6cfc97a4
| * Fix use-after-free of HostResolverJüri Valdmann2019-07-242-1/+3
| | | | | | | | | | | | | | | | | | Create one HostResolver per profile to avoid use-after-free in NetworkHintsMessageFilter (5.12) or NetworkContext (5.13). Fixes: QTBUG-75884 Change-Id: Ic1a2973b4fb0aed6bd0fa1bb9a1d7c3012c30fe0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix file URI checks for FilePickerController::accepted() on WindowsTamas Zakor2019-07-311-4/+19
| | | | | | | | | | | | | | Extend auto tests with windows specific cases. Change-Id: I731cd520c12a38636a5df4829a79d7bd1d85a314 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix compilation against 5.9Michal Klocek2019-07-313-4/+11
| | | | | | | | | | Change-Id: Icfe50ba5c60a6e2e588af6cdc07500013b6df9a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Lower requirement for glibc to 2.17Michal Klocek2019-07-291-1/+1
| | | | | | | | | | | | Fixes: QTBUG-77171 Change-Id: I9eb5a34adbc62c8738ba5ffdf315ccf056da7b98 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Clean-up handling of selected filesAllan Sandfeld Jensen2019-07-271-20/+16
| | | | | | | | | | | | | | | | | | | | Simplifies the code and makes sure both the two QML implementations of the file-selector are source compatible. Note, this does not address issues with test on Windows. Change-Id: Ieee84866c456d600a812683cae389d6a6980366f Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-07-238-8/+52
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: src/core/config/common.pri src/core/configure.json src/core/net/url_request_qrc_job_qt.cpp src/core/ozone/surface_factory_qt.cpp src/core/web_contents_adapter.cpp Change-Id: If679aa179123f793639da3d8ee4ab5d116707754
| * Fix use-after-free in WebContentsAdapter::loadJüri Valdmann2019-07-181-3/+7
| | | | | | | | | | | | | | | | | | Pass WebContentsAdapter pointer to lambda via QWeakPointer in case the adapter has been deleted already. Fixes: QTBUG-76958 Change-Id: I1962ba3dd1794a27e7013a2ad1b729fe7a08c079 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Reset findText reply id on StopFinding to prevent callback laterKirill Burtsev2019-07-163-1/+4
| | | | | | | | | | | | | | | | | | Not updating lastReceivedFindReply caused next findText call after StopFinding to trigger redundant callback call on checking stale query. Fixes: QTBUG-77029 Change-Id: Iad4b71364ecb3ec3db3096b739e77620d12731f9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| * Do not proceed with uninitialized resourcesMichal Klocek2019-07-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | QRC files can be optimized with CONFIG+=qtquickcompiler and removed, in that case 'size' of resource is zero. Do not process 'empty' resources. Throw warning. Fixes: QTBUG-76403 Change-Id: If21ff698e7985f82e6456500d4d24cb366cff012 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * Make enabling full debug information easierAllan Sandfeld Jensen2019-07-121-0/+12
| | | | | | | | | | | | | | | | Avoids asking customers to edit source files or add CONFIG to qmake on the command line to enable full debug information. Change-Id: Id58388565df88442e74e02687eb3189136e998f3 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| * If Qt is configured with ccache feature pass that along to GNAlexandru Croitor2019-07-121-0/+4
| | | | | | | | | | | | | | | | | | This will set the cc_wrapper to ccache when running GN, which in turn will prefix all compiler calls with ccache. This allows a nice way of using ccache and icecream on macOS. Change-Id: I19ca1261aa8ebc4aaf7f8c34b3cb363baa29de01 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix detection of ozone x11 supportMichal Klocek2019-07-124-6/+22
| | | | | | | | | | | | Fixes: QTBUG-77011 Change-Id: I0136b360c74970b912124f6f308f598c80eceba3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Pass an accurate touchpoint ToolType to ChromiumRomain Pokrzywka2019-07-161-1/+4
| | | | | | | | | | | | | | | | | | | | QTouchEvent::TouchPoint's flags() specifies the tool type (pen, finger) for the touchpoint, so we can forward that information to Chromium. This allows proper touch handling in web pages that depend on the touch type property detect finger/pen touches. Change-Id: Ib6069a057249ef2776a6b315bc71c75d14c9b673 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-07-103-5/+16
|\| | | | | | | | | | | | | | | | | Conflicts: .qmake.conf tests/auto/quick/qmltests/BLACKLIST tests/auto/quick/qquickwebengineview/BLACKLIST Change-Id: I29b68dec8692d0369a2dda56350ee62d3ad73e08
| * Unset global share context pointer on deletionJüri Valdmann2019-07-041-0/+2
| | | | | | | | | | | | Fixes: QTBUG-76828 Change-Id: I43eae3c04a23abe118f51c69742772ddb38646f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Set custom user-agent manually on new windowsAllan Sandfeld Jensen2019-06-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Use Chromium linker flagsMichal Klocek2019-06-041-5/+9
| | | | | | | | | | | | | | | | | | Add all Chromium linker flags by default and explicitly blacklist some of them. Change-Id: Icb461838f71c8511fe5730d4601eb20bc2aa135c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Null check result of consuming mailbox textureJüri Valdmann2019-07-091-1/+2
| | | | | | | | | | | | Fixes: QTBUG-76913 Change-Id: Ib036121f366d037d507f59bf31c3ab9c79bfea5e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Disable optimization of V8 for MSVC debugAllan Sandfeld Jensen2019-07-091-0/+4
| | | | | | | | | | | | | | | | It leads to mismatching iterator debugging at runtime. We only avoid it on the CI because they run all the tests as release. Change-Id: I570fb252c050ad966d205688deba5e75d02c21bb Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Fix unregistered custom scheme warningJüri Valdmann2019-07-031-3/+5
| | | | | | | | | | | | | | The warning is emitted even for registered custom schemes. Change-Id: I07a505253627a920d96b75df8fa1fb2d81ab1f68 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Prevent double encoding of url encoded characters when loading PDFsMichael Brüning2019-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | At the point when PDFs are being loaded, their URL should already have been encoded, so encoding it again will render a wrong URL because it tries to encode already encoded characters. Change-Id: I69e6effeacec52e57194b02478cfd082fe9c7570 Fixes: QTBUG-76226 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Pump up required icu versionMichal Klocek2019-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update according to: "static assertion failed: v8 is required to build with ICU 63 and up". Change-Id: I55864e0fd7c98ee89c641926402115e85c65b1df Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Pass isIncognito to render processAllan Sandfeld Jensen2019-06-178-2/+169
| | | | | | | | | | | | | | | | Uses the RenderThreadObserver pattern Chrome uses. Change-Id: Ieafff311ef5e31f67070517b2de49ad94a7bd674 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Fix our fake projectAllan Sandfeld Jensen2019-05-295-11/+6
| | | | | | | | | | | | | | | | | | | | | | Since we use our configuration in core_common.pri, we should include it there to ensure we don't miss it somewhere. Task-number: QTCREATORBUG-22315 Change-Id: I9c35dd850d76486e7c787613e7508c03d6f42b2b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Add more robust glibc testMichal Klocek2019-05-271-1/+2
| | | | | | | | | | | | | | | | This test also works now when cross compiling. Change-Id: If73e16084cfbaf68ba515c2706d3ec2ec8eab8c9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Request ubsan-vptr correctly from GNAllan Sandfeld Jensen2019-06-041-4/+1
| | | | | | | | | | | | | | | | | | | | GN will also set use_rtti on its own based on this. Change-Id: I5812b3c26250f19810ab2d6dfb063316e27d4938 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Pump up glibc required versionMichal Klocek2019-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We need glibc wrappers for PTRACE_GET_THREAD_AREA system calls, which were added in b05cb613e7a of glibc. Change-Id: Ifee2b0eb9f4e0f85e990f3d78354804ec859795c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-06-118-2/+101
|\| | | | | | | | | | | | | | | | | | | | | 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
| * Merge remote-tracking branch 'origin/5.12.4' into 5.12Allan Sandfeld Jensen2019-06-076-24/+37
| |\ | | | | | | | | | Change-Id: I243662eee18709478038e918ff6b16aabd1f0662
| | * Don't allow QtWebEngineCore to request executable stackThiago Macieira2019-05-312-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Chromium sources contain assembly code that causes the library to default to executable stack (the linker requires that *all* .o files have a .note.GNU-stack section in order to default to non-executable). So add the -z noexecstack linker flag to change the setting. The other libraries are not affected. Change-Id: I0bf9ebeb5aa34d19be30fffd15a3d3063dea2005 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Fix automatic NTLM authentication by backporting server white list supportAllan Sandfeld Jensen2019-05-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support --auth-server-whitelist Read it and pass it to an HttpAuthPreference. Change-Id: I37c23f4d777ff11b2c0480fa9c28ea6fbe029737 Task-number: QTBUG-75539 Task-number: QTBUG-57729 Reviewed-by: Kai Koehne <kai.koehne@qt.io> (cherry picked from commit b81d7095825cdd4f486e83894c801e596f248936) Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Make linker call look great againMichal Klocek2019-05-274-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues with messed up linker path: * do not use LIBS_PRIVATE on linux at least for passing object and archive responses files. * do not use QT and QT_PRIVATE with same libs, it simply includes libs in LIB and LIB_PRIVATE so doubles linker libs. * remove bogus dependency for gui and core for webengineheaders pseudo module. * remove unused egl config flag Fixes: QTBUG-75832 Task-number: QTBUG-75357 Change-Id: I1720394e636e3f89d546f372b10932dd4ad395fe Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit ee12b53eba009e8a3ca12ef77031d9a48c609cb4) Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | * Fix linker too long argument listMichal Klocek2019-05-271-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For yocto builds linker can get quite long path since all archives are listed as absolute paths. This can end up as "execvp: /bin/sh: Argument list too long" Use rsp files also for archives. Change-Id: I096e2f35ed72b68261bf465e84baddd1f78cd917 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 546c42e42643a209d893d5291c26c3f8ef7102a3) Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Disable edit actions when content has no focused framePeter Varga2019-05-276-2/+89
| |/ | | | | | | | | | | | | | | | | Task-number: QTBUG-75505 Change-Id: Ia1329ff554a86e307aa7995e9af1665ea6c5e64c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Workaround for CSS orientation issuesSzabolcs David2019-06-042-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Web content can define its orientation for printing using the @page rule in CSS. This creates some edge cases, for example when the pages are not uniform and some of them has different orientation than the others. The current version of desktop Chromium can't handle this perfectly: sometimes it renders portrait pages to landscape papers by cutting down the extra parts. This patch makes our result similar to Chromium's - by ignoring the user's orientation settings in QPrinter. Task-number: QTBUG-75092 Change-Id: Ifaea69c94b6ee1b6a83609cb15207a58554975f9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.13.0' into 5.13Allan Sandfeld Jensen2019-06-044-16/+17
|\ \ | | | | | | | | | Change-Id: I82726c9286e1cc7b2904887a5c0b05df4c669233
| * | Make linker call look great againMichal Klocek2019-05-204-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues with messed up linker path: * do not use LIBS_PRIVATE on linux at least for passing object and archive responses files. * do not use QT and QT_PRIVATE with same libs, it simply includes libs in LIB and LIB_PRIVATE so doubles linker libs. * remove bogus dependency for gui and core for webengineheaders pseudo module. * remove unused egl config flag Fixes: QTBUG-75832 Task-number: QTBUG-75357 Change-Id: I1720394e636e3f89d546f372b10932dd4ad395fe Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix linker too long argument listMichal Klocek2019-05-201-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For yocto builds linker can get quite long path since all archives are listed as absolute paths. This can end up as "execvp: /bin/sh: Argument list too long" Use rsp files also for archives. Change-Id: I096e2f35ed72b68261bf465e84baddd1f78cd917 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Claim to support hoverFlorian Bruhin2019-05-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chromium sets those settings based on ui::GetAvailableHoverTypes() and GetPrimaryHoverType() which (on Linux) use an InputDeviceManager to check whether there's a mouse or touchpad present. With them being unset, CSS media queries (hover/any-hover) tell websites that hovering isn't supported: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover https://developer.mozilla.org/en-US/docs/Web/CSS/@media/any-hover On some websites such as GitHub, this disables/breaks hovering functionality. QtWebEngine can't figure out whether it's running on a device with a mouse/touchpad (using Chromium's code won't work as no InputDeviceManager is available, and Qt doesn't seem to have any comparable functionality). However, since QtWebEngine is not available for mobile platforms, assuming that a mouse is present (rather than assuming that none is) seems reasonable. Change-Id: Ie038318f105bafdf955d512ab10f13f33da1111b Fixes: QTBUG-75894 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-05-244-5/+32
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/net/network_delegate_qt.cpp tests/auto/widgets/qwebenginedownloaditem/tst_qwebenginedownloaditem.cpp Change-Id: Ib715b3047213583e0441b915d3cabb801d9d4ba8
| * | Fix detection of the webengine-arm-thumb featureJoerg Bornemann2019-05-212-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure tests must run in a clean environment. That's why functions that are defined below the mkspecs directory are discarded during the configure run. As a result, extractCFlag could not be found when running qtConftest_hasThumbFlag. This patch moves extractCFlag to src/core/config/functions.pri. Also, extractCFlag gets a qtwebengine_ prefix to avoid collisions with functions defined in other modules. The alias extractCFlag in functions.prf lets us use the old function within QtWebEngine itself. Fixes: QTBUG-75748 Change-Id: I6be613fbc569d5f7b3c145ef44b9a7be8e2ecb9d Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * | Referrer HTTP Header no longer ignored when set via RequestInterceptorLeander Beernaert2019-05-201-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Fix various remaining clang_cl building issuesAllan Sandfeld Jensen2019-05-212-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doesn't support /debug:fastlink, and we need to tell chromium we are using lld. Also fixes the wrong quoting as we need escaped quotes, not system quotes. Change-Id: I97e4294a358004df2f4c653cf74693fe2d40945f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Avoid setting feature switches multiple timesAllan Sandfeld Jensen2019-05-161-9/+23
| | | | | | | | | | | | | | | | | | | | | | | | We were setting and overriding switch each time it was changed, this led to needlessly long command line. Change-Id: Icdfc9fb5769820330ad918da19da2c886dc02e80 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/5.12' into 5.13" into ↵Allan Sandfeld Jensen2019-05-133-12/+32
|\ \ \ | | | | | | | | | | | | refs/staging/5.13
| * | | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-05-102-12/+31
| |\| | | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | 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