summaryrefslogtreecommitdiffstats
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* Reinstate skipping content/browser for jumbo-buildsv5.12.0-rc1Allan Sandfeld Jensen2018-11-191-1/+2
| | | | | | | | | | We are hitting OOM crashes on the CIs again. Task-number: QTBUG-71870 Change-Id: Ief97b83b26091136acf4988e555b331191ce8271 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 24d883d703d3599d6818b6b371ae06dd4ca6f734) Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Add missing refactoring for glxGetProcAddressMichal Klocek2018-11-131-14/+4
| | | | | | | | | | Commit 9ad3c7aa fixed regression, however refactoring which took place 9397251b is missing. Task-number: QTBUG-70696 Task-number: QTBUG-71742 Change-Id: I4ff3f5fbbd14996478299f51a3d766d2fa1a7017 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix smooth-scrolling of mouse wheelsv5.12.0-beta4Allan Sandfeld Jensen2018-11-021-1/+9
| | | | | | | | | Turns out has_precise_scrolling_deltas, doesn't mean what its name says, but instead is a macOS'ism indicating a system scroll gesture. Fixes: QTBUG-71378 Change-Id: I124ba8f64495671e8a8ad7a9c397fb506d7fedf9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix quicknanobrowser crash on startupJüri Valdmann2018-11-021-4/+5
| | | | | | | | Don't call SynchronizeVisualProperties from updatePaintNode Fixes: QTBUG-71430 Change-Id: I6bd231b22c0473f9fd47ca3cdbcb8262f314bd5b Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add missing fallback for glxGetProcAddressMichal Klocek2018-11-021-1/+18
| | | | | | | | | This fallback was added in 5.11, however fell out somehow during ozone change. Fixes: QTBUG-70696 Change-Id: I68d12842e2283a25db64035e57d5a19323b4e6c0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12.0Allan Sandfeld Jensen2018-11-011-1/+2
|\ | | | | | | Change-Id: Id54a452d04438147e541ff9978c59db27269f694
| * Fix thirdParty setting for first party requestAllan Sandfeld Jensen2018-10-301-1/+2
| | | | | | | | | | | | | | | | | | Some first party requests has no site_for_cookies yet, and thus returns an empty string. The logic matches that of StaticCookiePolicy. Change-Id: I10caf978dc410639cd21fc2aa01eb2bf6dc67c1f Fixes: QTBUG-71393 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Fix background of composition textPeter Varga2018-10-301-4/+3
| | | | | | | | | | | | | | | | | | | | The Chromium API has been changed: https://chromium-review.googlesource.com/c/chromium/src/+/959006/ Task-number: QTBUG-70289 Task-number: QTBUG-71453 Change-Id: Ib20a82bd826d8067aa3eb3bccccda7d8716e20ad Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Fix build with disabled accessibilityPeter Varga2018-10-302-7/+15
| | | | | | | | | | Change-Id: Icdf58c228fc2511508c997e733d881d53709dd21 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into 5.12.0Michael Brüning2018-10-301-1/+26
|\| | | | | | | Change-Id: I319ea175f9d95a3ffea9cc3140696976348a5238
| * Trigger disabling offline renderers on late 2013 Mac ProsMichael Brüning2018-10-231-1/+26
| | | | | | | | | | | | | | | | | | | | | | This reads the hw.model string through sysctlbyname and sets the environment variable QT_MAC_PRO_WEBENGINE_WORKAROUND to tell the Cocoa platform plugin to not enable offline renderers upon creation of the platform OpenGL context. Task-number: QTBUG-70062 Change-Id: I986d9d76a80f96a215f3fcd08b3d47e546682e35 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Stop showing speculative framesJüri Valdmann2018-10-299-25/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chromium creates "speculative" frames (RenderFrameHost and company) for pending cross-process navigations (and maybe other navigations too). For example, a redirect from http://qt.io to https://qt.io will trigger this, as described in the bug report. These speculative frames are loading in the background and only shown once they are officially ready (as decided by the RenderFrameHostManager and signaled to WebContentsObserver::RenderViewHostChanged). At least, this is how it's supposed to work and how it works in Chrome. In WebEngine, however, we actually show these speculative frames as soon as they are created and before they are ready. This runs into the problem that the if the speculative frame is dropped (instead of committed), then Chromium will not ask us to re-show the old frame (since it hasn't actually asked to us to show the new frame, it naturally assumes we are still showing the old one). Fixes: QTBUG-68727 Change-Id: I9d53035ce60e3a002d5412d4473d940a32644b5d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Bumb jumbo buildsAllan Sandfeld Jensen2018-10-281-2/+1
| | | | | | | | | | | | | | | | With content/browser and content/browser limited in GN, we can drop disabling them here and try increasing the jumbo-width a little. Change-Id: I0f84e44881c8a71ee57a4bba2230c5f110595616 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Unify updating navigation actionsSzabolcs David2018-10-233-9/+16
| | | | | | | | | | | | | | | | | | | | On the Quick side, navigation actions were dependent on the context menu. They were only updated when requesting a new context menu and this is obviously wrong if an action is tied to a button or another type of UI element. Change-Id: I5f14b019b66215f16d027fb57d76f052b1604365 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Clean-up BrowserMainPartsQtAllan Sandfeld Jensen2018-10-234-182/+315
| | | | | | | | | | | | | | Move to a separate file and cleanup the code. Change-Id: I33d9536c7e40315b6bf271e33bdc3f838ab4b671 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Remove some outdated Qt version checksAllan Sandfeld Jensen2018-10-235-67/+0
| | | | | | | | | | | | | | | | We can't not build with older than Qt 5.9 anyway due to QSG and qmake changes. Change-Id: Iff0247e70d9ffc1e045e2c571f0089d68df9a589 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Fix four switch related warningsAllan Sandfeld Jensen2018-10-232-3/+7
| | | | | | | | | | Change-Id: If4888c1b170568735953ac715c4a7c40de614dd8 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Add extra config check for x11 ozone pluginMichal Klocek2018-10-231-1/+1
| | | | | | | | | | | | | | | | In case of cross compilation for targets with x11, check also for dependencies. Change-Id: I32df962a61e5a13ee1290ab2c256f0f222dafbd3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix builds against Qt 5.11Allan Sandfeld Jensen2018-10-231-0/+2
| | | | | | | | | | Change-Id: I1e1d36c656e465ca718985896aca96b27754aa84 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Allow client certificates without opensslAllan Sandfeld Jensen2018-10-232-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | We don't use OpenSSL, but only depended on it because QtNetwork didn't define QSslCertificate without an SSL backend. I changed that in QtNetwork 5.12, so we only rely on a QtNetwork SSL backend with older Qt versions. Task-number: QTBUG-54877 Change-Id: I16f3077235f5c48610597868608ef2e5ca2efa99 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Merge "Merge remote-tracking branch 'origin/5.11' into 5.12" into ↵Allan Sandfeld Jensen2018-10-2212-7/+160
|\ \ | | | | | | | | | refs/staging/5.12
| * | Merge remote-tracking branch 'origin/5.11' into 5.12Allan Sandfeld Jensen2018-10-2212-7/+160
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.json src/3rdparty src/core/content_browser_client_qt.cpp src/core/content_browser_client_qt.h src/core/login_delegate_qt.cpp src/core/login_delegate_qt.h src/core/net/url_request_context_getter_qt.cpp src/core/net/url_request_context_getter_qt.h src/core/qtwebengine.gni 3rdparty changes: 616a7f558c7e This is expected for us, so don't report it as an error. c30febceaa1b Do not write <protocol>.json to source directory 9e68e4f2d92c Remove incomplete logic to detect AMD K2 CPU's e0ed41c8e90a FIXUP: This is expected for us, so don't report it as an error. f9fd9109b4b7 Fix --single-process --disable-gpu combination not to hit asserts f305d65cc27e Reduce severity level of messages when kDisableGpu switch is used 5e3e5074bb78 Work around MSVC2017 optimizer bug when printing a page usind Pdfium 34f52ec3bae8 Bump maximum number of custom isolated world ids f7a2f8153c82 Fix hunspell::NodeReader::affix_id_for_leaf bounds check 1e80090f7044 Fix resolve_proxy service permissions 2e498629651d Add proxy_resolver_manifest Change-Id: I2b176c80aa315a0ae0a22b5707694fdcd407407b
| | * Add proxy resolver serviceMichal Klocek2018-10-188-1/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds proxy resolver service as a part of content utility process and pulls in the corresponding change in Chromium. Fixes: QTBUG-69281 Change-Id: Icb2b67e1e506a5b511531322a8c13d7df0e11f9f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Fix race condition in ResourceDispatcherHostLoginDelegateQtMichal Klocek2018-10-182-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Do no access m_request from ui thread. The auth request can get cancelled, this can happen for example when a new navigation interrupts the current one. Fixes: QTBUG-71128 Change-Id: I140b1a164294342bad13a76342c1f642ba0960c8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Add content_browser manifest handlingMichal Klocek2018-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-69281 Change-Id: If48d1a7ad723b18d4577d675b11c0cdc5e22f758 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * Do not bind resolve proxy factory on ui threadMichal Klocek2018-09-282-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Pass interface to io thread and bind there. Task-number: QTBUG-69281 Change-Id: Ia8630cb7ff216cecaec5274a0b3da3ef0881fcea Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | Cleanup web_contents_view_qt.hAllan Sandfeld Jensen2018-10-2111-14/+26
| | | | | | | | | | | | | | | | | | | | | It had too many headers, and many files depending on its over inclusion. Change-Id: I5add1c4e07a14e017ac60db75efab5fc11e4166f Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | | Clean up header includes in corev5.12.0-beta3Peter Varga2018-10-204-22/+10
|/ / | | | | | | | | Change-Id: I3ffc92eacf30265ecb80061870d213e521e4f838 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix build for Boot2QtMichael Brüning2018-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | A change in Chromium 69 pulled a mojom header into the public content browser API without, assuming the dependencies would always be fulfilled via building the extension system. Add the dependency explicitly to fix this. Change-Id: I005aa0970c7ecdbdce90d8c1db78c38f2274d324 Fixes: QTBUG-70914 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Allow XMLHttpRequests from qrc to fileJüri Valdmann2018-10-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test for cross origin XMLHttpRequests from/to custom schemes. By default, this is not allowed, but can be changed by adding an origin access whitelist entry to blink::WebSecurityPolicy in the renderer. Do this for the qrc scheme. As a result SecurityOrigin("qrc").CanRequest("file") will return true, which makes DocumentThreadableLoader::Start disable CORS for the request. Otherwise, CORS would be used, which only works with CORS enabled schemes. Fixes: QTBUG-70228 Change-Id: I2da60fddbbfb490c6d2f03329be286dbc28e1f12 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add kerberos feature to configure systemMichal Klocek2018-10-176-4/+16
| | | | | | | | | | | | Task-number: QTBUG-51082 Change-Id: I2c3ed5b42b054a9385f358eb9311646bc2a6cde0 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Use common Qt settings instead of setting C++14 explicit in core APIAllan Sandfeld Jensen2018-10-161-2/+5
| | | | | | | | | | | | | | | | Makes it unnecessary for us to try match Qt settings. Only done for API, due to the rest of core being built by GN. Change-Id: Ib9f8acb7e99ae22dd2d7281c9082d822f1d238eb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Disable error pages for external URLsv5.12.0-beta2Jüri Valdmann2018-10-121-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Failing to launch an external URL triggers a navigation to "chrome-error://chromewebdata". Navigating to "chrome-error://chromewebdata" results in a failed attempt to launch it as an external URL. The cycle repeats until the computer becomes bored. Match Chromium and disable error pages for external URL load failures. Fixes: QTBUG-63378 Change-Id: I6c401532d658744edc56921b55efd0d040a12b1a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix mojo-based WebUIAllan Sandfeld Jensen2018-10-121-0/+2
| | | | | | | | | | | | | | We were lacking the mojo_bindings.js resource. Change-Id: I7afa4dc101fb9dfd7e28e17ccb7f3edef0a5566b Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Rename GLContextHelper::getXConfig() to getGlXConfig()Allan Sandfeld Jensen2018-10-114-5/+5
| | | | | | | | | | | | | | It returns a GLX specific configuration, not an X-specific. Change-Id: Iecbb52b8d33c6f6f6471aec41082ecb49eaed416 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Fix Ozone platform detectionAllan Sandfeld Jensen2018-10-111-5/+7
| | | | | | | | | | | | | | | | | | Only use GLX if GLX is used as OpenGL backend. This fixes using QtWebEngine on Linux with QT_XCB_GL_INTEGRATION=xcb_egl set, or when it automatically falls back to EGL. Change-Id: Ida95e4148e72af0d64fe16285b5007e3105ad898 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Use configs instead of setting include dirs directlyAllan Sandfeld Jensen2018-10-111-6/+6
| | | | | | | | | | | | | | | | This is more correct and can help us when include dir changes in future. Change-Id: I83b719944651b3229fc09fa23b74b4e2599dc7cc Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Chromium requires C++14Allan Sandfeld Jensen2018-10-111-0/+3
| | | | | | | | | | | | | | | | | | QtWebEngineCore was only building because Chromium CPPFLAGS was overriding ours. And setting C++11 in our examples and tests now forces a downgrade. Change-Id: I3642394f15bb9974688991800552624d2379faf9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Fix leak which arises on querying GLOzone instance in SurfaceFactoryQtKirill Burtsev2018-10-084-18/+12
| | | | | | | | | | | | | | | | | | Ownership of GLOzone instance assumed to be hold by factory, no new instance should be created on each GetGLOzone call. Task-number: QTBUG-69088 Change-Id: I7eb8575f1f35bd30292a8b4fc5ab1334ccb8e2bb Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Update Chromiumv5.12.0-beta1Allan Sandfeld Jensen2018-10-022-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: 8e6f5751e5 Restore media::FFmpegGlue::InitializeFFmpeg() 0c8d188f16 Add x86 target support for gn 2a52817b6e Fix creation of 'x86' toolchain in gn 3a84c2a8bc Add support for modules limiting jumbo width c69fdae9c7 BASELINE: Update Chromium to 69.0.3497.113 3a783ba38b Merge remote-tracking branch 'origin/upstream-master' into 69-based a4ecaddc7c Remove missing symlink to gen from perfetto/ui/src 3f8994c671 [Backport] Use newer GrGLFunction based on templated function types rather than pointers. Change-Id: Ibfe810c1c9b88e25e9093fbb2aa213249f1a77bf Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Fix tiled layersAllan Sandfeld Jensen2018-10-021-7/+10
| | | | | | | | | | | | | | | | Calculates and uses the source rect of layers. Task-number: QTBUG-67652 Change-Id: If5569da6e18a3b9728392ecf1f3c60e9e0663229 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Cleanup scenegraph integrationAllan Sandfeld Jensen2018-10-022-45/+15
| | | | | | | | | | | | | | | | Get rid of old QSG type names, and also remove redundant setupTiledNode call. Change-Id: Ifbd83f6bdc0e029eb52899b20562ef6606f5562b Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Remove old switches no longer used by AndroidAllan Sandfeld Jensen2018-09-281-3/+1
| | | | | | | | | | Change-Id: Id2a50e7b133e9b32150f3fd248e9822e1668fc13 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Cleaner shutdownAllan Sandfeld Jensen2018-09-271-0/+9
| | | | | | | | | | | | | | | | | | | | The print-job manager was trying to recreate a notification service, so destroy it earlier, and at the same time kill the content runner before existing WebEngineContext::destroy() to catch any other late recreations of singletons. Change-Id: Ifaa333386248c3dbc6d4f828c727a0a17d5f5c90 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | White-space cleanup of media_capture_devices_dispatcher filesAllan Sandfeld Jensen2018-09-272-205/+193
| | | | | | | | | | | | | | | | In preparation for a deeper cleanup to avoid mixing whitespace and non- whitespace changes. Change-Id: Iedbaf304a06b227799bbe74c71c570b7a675aea4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into 5.12Liang Qi2018-09-271-0/+15
|\| | | | | | | | | | | | | | | | | Conflicts: configure.json configure.pri src/3rdparty Change-Id: I2e0614b33596fe66999508556c464ed84acc8e2f
* | Add accessibility_tree_formatter_qtAllan Sandfeld Jensen2018-09-256-15/+227
| | | | | | | | | | | | | | | | | | | | | | Needed by chrome://accessibility Updates chromium to related change: 224fc0748a Do not assert on --disable-gpu 0ba5e6626a FIXUP: Add ifdefs to exclude ATL and accessibility from the build Change-Id: Ida0b03048ab6aa04686251d16ccfbf4855a37690 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Set enable_channel_idAllan Sandfeld Jensen2018-09-241-0/+7
| | | | | | | | | | | | | | | | | | | | Channel ID is now default off in the params constructor, but still default on as a feature in Chromium, but is deprecated and scheduled for being removed and replaced with token-binding. This patch follows the Chromium feature defaults for which of those is on or off. Change-Id: I3b9a0bc38bd42668d515d1e321c3f3b92144e986 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | [macOS] Fix building with native spellchecker optionMichael Brüning2018-09-242-7/+1
| | | | | | | | | | | | | | | | Some files that the native spellchecker feature included were removed after a reafctoring in Chromium. Change-Id: I07ab0a235bb2a916b979c1981164f325e5204be5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Set a maximum size on faviconsJüri Valdmann2018-09-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | Favicons are downloaded by the render process and sent back via mojo message. However, mojo messages have a maximum size; if the favicon doesn't fit, the render process is killed. Impose a maximum size to ensure that favicons can fit in mojo messages. Task-number: QTBUG-69123 Change-Id: I6027bc310dcc77ec530145e4f125efa36106464f Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>