summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use chromium setting for persistent web notification idsv5.13.0-alpha1Kirill Burtsev2019-02-012-0/+4
| | | | | Change-Id: I38e65848da7c92adc6be87175ca9da3fe496a3dd Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fixup non-extensions build on 71-basedMichael Brüning2019-02-019-18/+32
| | | | | Change-Id: I7ce92ba0edc4b196ca05224729d3eb31748a7780 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fixup extensions / pdf code for 71-basedMichael Brüning2019-01-319-25/+27
| | | | | | | | | | | Includes: * Flagging out unsupprted API from PDF viewer JavaScript files * Correctly excluding apps_shim build files in no-extension builds * Flagging out the extensions update method * Miscellaneous adaptations Change-Id: Ie4d95c1ca991bce8f064a99fc78d1e1ed9626d2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Make text selection handles available on macOS tooPeter Varga2019-01-301-1/+1
| | | | | | Task-number: QTBUG-59999 Change-Id: I67b67aa88e1ef985441d8b3bd86d02ee265b38cf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Minor. Drop dependency for ffmpeg for test_supportMichal Klocek2019-01-291-1/+1
| | | | | | | | | This just cleans dependencies for ffmpeg. I should be now enough to unset media_use_ffmpeg, use_webaudio_ffmpeg to skip ffmpeg. Change-Id: I3b5b5a88b368f927413c605ec7ee7ff6687352e8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* FIXUP: Windows post-merge fixupsPeter Varga2019-01-251-0/+1
| | | | | | | Add missing return. Change-Id: Iff84856946842e68a7dd1783a0b4eae976529f81 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add check for Xcode clang to fix building on macOS 10.12Alexandru Croitor2019-01-241-1/+2
| | | | | | | | Target attribute avx2 doesn't seem to work on older Apple clangs. Change-Id: If56fbb2e6ef72786527f2507ae70d01ba5182b35 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Revert: Move RTC_CHECK_OP error message construction out of header file.Allan Sandfeld Jensen2019-01-243-117/+147
| | | | | | | | | Doesn't build with older MSVC 2017 versions. Reverts https://webrtc-review.googlesource.com/86544 Change-Id: Ieb80a6717929d153e39a2f04cb8a85631a03bc7a Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix building bundled zlib on non-clangAllan Sandfeld Jensen2019-01-241-1/+1
| | | | | | | The check for adding the logic and for adding the sources didn't match. Change-Id: I843a8e24fbf666c8ce1340d1ae0d21fc5b66101a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* FIXUP: Windows post-merge fixupsAllan Sandfeld Jensen2019-01-233-4/+9
| | | | | | | Fix build for x86 as well. Change-Id: I3338ad68634766ae3d8222a18346007c4bcbfae8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Pass Qt Prefix path to the macOS V2 Seatbelt SandboxAlexandru Croitor2019-01-234-0/+24
| | | | | | | | | | | | | The render process requires access to the Qt resources directory (for ICU data files for example). Pass the Qt prefix path to the sandbox rules, to allow file read access. Change-Id: I2364ef4711d225aae2d14da78e33c609f4f8b5bd Fixes: QTBUG-73089 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* [Backport][WebRTC] Remove event wait logic from DesktopConfigurationMonitorPeter Varga2019-01-235-63/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class exposes Wait()-Set() logic to synchronize events. - There is a bug in checking EventWrapper::Wait() as it returns [1,2]. Negating these values cause us to always pass timeout checks. - There is a general problem in this class with waiter. There are 2 scenarios: 1) Lock()-Unlock()-DisplaysReconfigured() In this scenario, Wait() in DisplaysReconfigured() immediately passes as event is already signaled. Next Lock() call won't continue until Set() is called in DisplaysReconfigured(). This blocks capture thread from accessing display until reconfiguration completes. 2) Lock()-DisplaysReconfigured()-Unlock() In this scenario, Wait() in DisplaysReconfigured() passes when Unlock() called. Capture thread accesses display while reconfiguration happens. Note that we are only delaying the OS delegate thread here. As an experiment, adding Sleep() in DisplaysReconfigured() results in no change, because it looks like OS uses this thread for only delegates but not for the actual display switch. Overall, (1) doesnt seem necessary as (2) already accesses display while reconfiguration happens. (2) doesn't seem necessary as blocking system delegate thread doesn't help. Therefore, I changed the class to only protect from race condition on |desktop_configuration_|. Bug: chromium:796889 Change-Id: I5a70c4efff999204eab8b1cfd66cbfe953b26467 Reviewed-on: https://webrtc-review.googlesource.com/c/108560 Commit-Queue: Emircan Uysaler <emircan@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25437} Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* FIXUP: Bring enable_webrtc backAllan Sandfeld Jensen2019-01-224-3/+26
| | | | | Change-Id: If47d9bb5b77a369442b4df576629512fc8635144 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Windows post-merge fixupsAllan Sandfeld Jensen2019-01-2227-45/+98
| | | | | | | Fixups for building Chromium 71 on MSVC. Change-Id: If8b364890c826a398a72604c00dd211f16de533a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Run video capture on separate thread on macOSJüri Valdmann2019-01-221-1/+12
| | | | | | | | | VideoCaptureDeviceFactoryMac needs a CFRunLoop-enabled thread, which the Qt main thread by default is not. Change-Id: I4a1b0f5f10bdd202d8b956a081551681cb874910 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix building on windows without toolkit_viewsAllan Sandfeld Jensen2019-01-182-2/+2
| | | | | | | We don't use toolkit_views on any platform Change-Id: If56aada46ab540523d80675ed983c4104a6743b3 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Disable allocator checkPeter Varga2019-01-181-0/+2
| | | | | | | Qt platform does not override default allocator. Fixes crash on macOS. Change-Id: I82d1fd165d83e678d9e370fc060819e2baa8dd57 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix jumbo build with GCCPeter Varga2019-01-171-0/+4
| | | | | | | | | Always inline BasicStringPiece constructor to avoid linker errors with GCC 8.2. Task-number: QTBUG-71689 Change-Id: Ib573b035c19fa1e359935e83277ec9e174998bf8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix heap overflow when allocating PowerSaveBlockerMichal Klocek2019-01-172-2/+11
| | | | | | | | | | We are missing build flag when compilng wake lock, which creates missmach in PowerSaveBlocer class size. Done-With: Kirill Burtsev<kirill.burtsev@qt.io> Change-Id: Id27c1a5da34c92961d614f54feae1858ffcb6e1d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
* Minor. Remove old src version of sqliteMichal Klocek2019-01-17588-476475/+0
| | | | | | | | | Remove old sqlite source code to avoid future misreference (src is using currently sqlite-src-3250200) Task-number: QTBUG-72632 Change-Id: I0300f4ff1b458d4e35e5eb01cc10603fbcc042f8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Add extensions to Qt build and fix it up for buildingMichael Brüning2019-01-1718-15/+186
| | | | | | | | | | Jumbo patch that includes all the patches needed to enable the extension system for the Qt build. Currently used for conveniently moving the code around, but may become the actual change to get it merged upstream. Change-Id: Ie1920b31f9bbf40c8753cada2716d7f9fcb39280 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Post 71-merge fixupsAllan Sandfeld Jensen2019-01-175-5/+8
| | | | | | | | Fixes new asserts and build issues from the Chromium 71 code. Change-Id: I102539873f82bfd446cf034a2d97eb40d2dfb1f5 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Make WebAuth optionalAllan Sandfeld Jensen2019-01-178-10/+34
| | | | | | | | We don't use it, and the code is terrible at cross platform support, and handling it takes up most of the adaption time. Change-Id: I1ac3165f736dea9ce9b9c26aa9afbac9355305c3 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Move dcheck to source fileAllan Sandfeld Jensen2019-01-172-25/+29
| | | | | | | | | Accesses details only defined in the source file. Likely only build for Google due to accidentently ending up in the same jumbo file. Change-Id: Ia6f6fc9ef973c79001a90f11e1f8e1b2958e2559 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Add missing GL_TEXTURE_2D macroTamas Zakor2019-01-151-0/+5
| | | | | Change-Id: I2d30b238a3430312d779fbf338ae87274324eb05 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* FIXUP: Extend url library for WebEngine custom schemesAllan Sandfeld Jensen2019-01-093-4/+4
| | | | | | | Re-enable custom scheme handling like for Android webview Change-Id: Icebfb1d96042e49b4923ea81ddbff1d5a3477337 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Do not bundle the tracing UI resourcesAllan Sandfeld Jensen2018-12-205-3/+34
| | | | | | | | We do not support loading the chrome://tracing WebUI and therefore we shouldn't bundle those resources in our library. Change-Id: If3aa4c676b22a55e772f19487e21b4cd48babe65 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add accessors and seams for the Qt delegated renderer integration.Allan Sandfeld Jensen2018-12-207-2/+38
| | | | | | | | | | | | This is needed to fetch the MessageLoop, the MailboxManager and the SyncPointManager of the GPU in-process host. And fetch the right shared context for the in GPU thread. Change-Id: I7f38e32b2df11da5b046f16643841d34260c11fb Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add net::URLRequest::first_party_url()Tamas Zakor2018-12-208-0/+54
| | | | | | | | | Returns the top level frame URL. Used instead of site_for_cookies() in case of cross-origin iframe navigations. Task-number: QTBUG-70790 Change-Id: Icec4beddd70b20120d53e17a35385d83d1276ac2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix idle detection with X11 OzoneAllan Sandfeld Jensen2018-12-203-15/+16
| | | | | | | Only depend on use_xscrnsaver, not on using the X11 backend. Change-Id: I64d63332d98cd83fcaf47515a3e8048aac22c737 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fixing zlib thumb issuesMichal Klocek2018-12-201-1/+1
| | | | | | | | | Fixes builing zlib without thump. Also fixes bogus check for thumb in zlib Change-Id: I5548b5a8ae351ae872e02441d869b3cd7bc5d426 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix building skcms with intel ccAllan Sandfeld Jensen2018-12-201-2/+2
| | | | | Change-Id: I25a4e5185566a542e909971c8479cc053ac457a1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Make sure we do not use png for host buildMichal Klocek2018-12-201-0/+2
| | | | | | | | Adds assert. Task-number: QTBUG-68090 Change-Id: I7aa153df99002ecd7b28081f2cfdb6b768cdcc49 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Do not make tools for webkit layout testsMichal Klocek2018-12-201-1/+1
| | | | | | | | | This drops requirement for png being needed by host tools (imagediff). Task-number: QTBUG-68090 Change-Id: Ib11c37c7404a66fe9455433676d6fd80222604c0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Stop orphan child processes from staying alive on WindowsAlexandru Croitor2018-12-202-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Task-number: QTBUG-69030 Change-Id: Iefd302aac48aa8729d8289490ddb310a5037ad96 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cherry-pick certain macOS V2 sandbox rules into the V1 sandbox rulesAlexandru Croitor2018-12-201-0/+14
| | | | | | | | | | | | | | | | | Certain UI controls weren't displayed correctly (like select fields, radio boxes, checkboxes) when the macOS sandbox was enabled. These were fixed for the second version of the sandbox "V2", but WebEngine does not currently work with it (missing code and additional rules to allow accessing Qt files). Backport the necessary sandbox permission rules from the "V2" version to the "V1" version, to allow correctly drawing the previously mentioned UI controls. Task-number: QTBUG-70715 Change-Id: I329433a311de58ea97e4e719e8c330568d578fa8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Disable some DCHECKs to fix printingSzabolcs David2018-12-202-2/+2
| | | | | Change-Id: Ie30a7514b1538b243f3bfe16709fcc9c8209fc12 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix building with MSVCAlexandru Croitor2018-12-201-0/+4
| | | | | | | | | | | The compiler somehow gets confused about which division operator to use when accessing a bitset. Output the flags as a simple int, instead of a bitset when building with MSVC. Change-Id: Ib95ea5c2da0b3806cb2138454a47825fd7c59c1a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix selection paste on LinuxAllan Sandfeld Jensen2018-12-202-2/+4
| | | | | | Change-Id: Ib269a80077834c1aff73be75e16e2338c52e23a9 Fixes: QTBUG-71457 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Make scroll animation less "drunk"Allan Sandfeld Jensen2018-12-205-6/+15
| | | | | | | | 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>
* Fix Chromium build without x11Michael Brüning2018-12-201-1/+0
| | | | | | | | | The BUILD.gn file for the power_save_blocker service included //ui/gfx/x as a dependency outside without checking for X11 actually being used. Change-Id: Ibbbe36018146c6a77e6752ab4dd9b23b4bb3a78f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix wake-lock with ozoneAllan Sandfeld Jensen2018-12-204-27/+24
| | | | | | | | | The "X11" implementation can use both dbus and XSS, and detects the latter at runtime, while the ozone implementation is just a stub doing nothing. Change-Id: I434fab0ec19a12845781f6ccece4a21813b5bca6 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Make XScrnSaver optionalAllan Sandfeld Jensen2018-12-206-6/+25
| | | | | | | | | | Add logic to disable the use of the libXss library, while still being able to suspend power save via the GNOME or freedesktop dbus interfaces. Change-Id: I97c6f03ba654ba30ad91709028bb0859b8a66de7 Reviewed-by: Michael Brüning <michael.bruning@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crash on exitAllan Sandfeld Jensen2018-12-202-2/+4
| | | | | | Task-number: QTBUG-71219 Change-Id: I0c5853a110e704016e3bd41c7f54f9a5e57094ae Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Silence most warningsAllan Sandfeld Jensen2018-12-208-6/+36
| | | | | | | | | Suppress and fix many clang, GCC and MSVC warnings "cause the night is crap and full of warnings" Change-Id: I09882f850bac97c04a3d772e5f6386ce896c57b9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add proxy_resolver_manifestMichal Klocek2018-12-201-1/+2
| | | | | | Task-number: QTBUG-69281 Change-Id: I0d8fe59caeb418533e4764f7f17a8bfe3ff0c72d Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix resolve_proxy service permissionsMichal Klocek2018-12-203-0/+23
| | | | | | Task-number: QTBUG-69281 Change-Id: I6ff926a0036c1df840c35192da71363ac240ce57 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Bump maximum number of custom isolated world idsAllan Sandfeld Jensen2018-12-201-2/+2
| | | | | | | | | The real maximum deeper in Chromium is (1<<29), but better not push the limit too much. Task-number: QTBUG-69904 Change-Id: Ie44d444471678cf8281ef7c6fc75fbad0eb8b8bc Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Work around MSVC2017 optimizer bug when printing a page usind PdfiumAlexandru Croitor2018-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | On Windows MSVC2017 32bit release builds of WebEngine, printing to a QPrinter instance only printed partial page content. This ended up being a compiler / optimizer bug triggered in the FX_atof function in src/3rdparty/chromium/third_party/pdfium/core/fxcrt/fx_string.cpp which resulted in returning float numbers without any digits past the decimal point. Because of that, many size / offset calcuations were wrong. The fix is to remove a redundant 'strc[cc] == "."' check, which is implcitly present in a previous if condition. This in turn stops the compiler from generating incorrect code, and thus parsing the digits past the decimal point. Task-number: QTBUG-69639 Change-Id: I7908318b6e7ca58e81d951af784ed8dcd901e12c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Reduce severity level of messages when kDisableGpu switch is usedAlexandru Croitor2018-12-202-2/+2
| | | | | | | | | | | | | | | | | On Windows when using ANGLE (thus implicitly using kDisableGpu switch) you get a bunch of errors that aren't really relevant. Like: ERROR:gpu_process_host.cc(473)] !GpuDataManagerImpl::GpuProcessStartAllowed() ERROR:gpu_process_transport_factory.cc(1017)] Lost UI shared context. Reduce the message level to warnings, and switch to DLOG. Task-number: QTBUG-69491 Change-Id: I7f92f8e84147d75af00c23b5316ef60927eed44b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>