summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix build with only OpenGL/ES2wip/44-basedAllan Sandfeld Jensen2015-07-061-0/+4
| | | | | | | | Define the needed extension when not available at compile time. Change-Id: I93be828facb2d2e3bf16ac98c04ef3544d695675 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Add xscrnsaver to required packagesAllan Sandfeld Jensen2015-07-021-1/+1
| | | | | | | | | Xscrnsaver is now used for idle desktop detection on Linux, and required unless we disable that functionality from Chromium. Change-Id: I5295ebd822a4b53024d86868aa6dc4912ab120c1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Update BrowserContext and WebContentsDelegate for Chromium 44Allan Sandfeld Jensen2015-07-014-7/+23
| | | | | | | Adds and changes interfaces to work with Chromium 44. Change-Id: Id7c02e7b1be255d591f7ac5449dde5823c261eb5 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Switch UserScriptControllerHost to listen for created RenderViewHostsAllan Sandfeld Jensen2015-07-011-3/+16
| | | | | | | | | AboutToNavigateRenderView(RenderViewHost*) no longer exists so we must listen to something else to know when to send the scripts to a new RenderView. Change-Id: Ic4d296feab722a149ba304b35bfceaf4952c136e Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Fix video output with Chromium 44Allan Sandfeld Jensen2015-07-013-46/+171
| | | | | | | | | Updates shaders and rendering logic to match the new similar logic from Chromium. This includes separate UV and YA channels and different YUV color spaces. Change-Id: I677ec5477207a00d259d69989be6b8737803221d Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
* Avoid assert in proxy resolutionAllan Sandfeld Jensen2015-07-011-0/+2
| | | | | | | | QtWebEngine triggers asserts on Windows due to OnProxyConfigChanged called with a still pending configuration. Change-Id: I835860507c17110e642f3fa0628b5f7cb531e0e4 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Unbundle zlib, minizip, libxml2 and libxslt on LinuxAllan Sandfeld Jensen2015-07-013-0/+12
| | | | | | | If available use the system versions of these basic libraries on Linux. Change-Id: Iebcd5c11c53d0d491c457ccff71be04f8b2cac1c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Respect the system-png configure optionAllan Sandfeld Jensen2015-07-012-0/+2
| | | | | | | Link to system libpng on Linux if Qt was configured to do so. Change-Id: Ic86120aabb206173738e5a1977cad1d762794f2a Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Other changes for Chromium 44Allan Sandfeld Jensen2015-07-013-6/+3
| | | | | | | Minor changes for Chromium 44 that didn't fit in anywhere else. Change-Id: I569422239acd077e33e1878a1d5dc7afeac0bea6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Remove onloaded signal from Cookie APIAllan Sandfeld Jensen2015-07-015-17/+0
| | | | | | | | This callback is no longer available from Chromium, and was not very important to the API in the first place. Change-Id: If65509380f2c27053cb4c04801b4e50694440d6a Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Remove now invalid assertAllan Sandfeld Jensen2015-07-011-3/+0
| | | | | | | Frame to navigate has been moved from NavigationEntry to LoadURLParams. Change-Id: Ic421867ba067a79bbc499904e24066d40ff9b1ea Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Implement MotionEvent::GetUniqueEventId()Allan Sandfeld Jensen2015-07-011-1/+4
| | | | | | | Not currently used by Chromium except asserted not to be zero. Change-Id: I8eaab67fa316c80bd5b18af46993395c06aa8801 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Define DriverEGL::GetPlatformExtensions hereAllan Sandfeld Jensen2015-07-011-0/+16
| | | | | | | We need access to Qt classes to extract the EGLDisplay. Change-Id: I4e57aa72f3f7e08a55bc5e9694389e35f258e039 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Remove some Chromium overridesAllan Sandfeld Jensen2015-07-011-34/+1
| | | | | | | These are now always defined in Chromium or have been removed. Change-Id: I8f59805d793ecb91e51dede68b58a696dc3f84cd Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Permission Management for Chromium 44Allan Sandfeld Jensen2015-07-0112-76/+361
| | | | | | | Implementing the new PermissionManager API. Change-Id: If0fdac24b8fec561a898aba009345576b5ce7fc6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Update RenderWidgetHostViewQt for Chromium 44Allan Sandfeld Jensen2015-06-232-36/+12
| | | | | | | | Handle moved and refactored methods, and the removal of the short-cut to not forward events. Change-Id: I11ef205c5d575a15ee6fe8f36b8a71505d656fe8 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Fix Chromium 44 on OpenGL ES3Allan Sandfeld Jensen2015-06-231-4/+0
| | | | | | | | | | Chromium will now use the sync extension on OpenGL ES3, this means we shouldn't check for DesktopGL specific define, and since we do not use anything directly from the extension we don't need the ifdef. Change-Id: If664a885042c216079f1c58c8e6245b1c5447c9e Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Fix ProxyResolverQt for Chromium 44Allan Sandfeld Jensen2015-06-232-3/+16
| | | | | | | | | We now have to construct the proxy service using a proxy resolver factory. Change-Id: Id5c7957165f997c4a7f05d24d77b4ae68efd5a62 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Fix MSVC buildsAllan Sandfeld Jensen2015-06-231-0/+6
| | | | | | | | | | | | Chromium now expects the MSVS version to be set in GYP_MSVS_VERSION, so we need to set that. Fortunately we can use the VisualStudioVersion environment to do so. Note we should be setting it to "2013e" when using Express, but I can not currently detect that. Change-Id: Id51c04c8d3292c05809d4aa1301a50b12b2d57fd Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Update remote inspector for Chromium 44Allan Sandfeld Jensen2015-06-235-79/+91
| | | | | | | | Handle changes in modules, API and ownership of inspector related classes. Change-Id: I8faa7f22b50828edeac450cc34c151fbb2c45a0c Reviewed-by: Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
* Update accessibility for Chromium 44Allan Sandfeld Jensen2015-06-232-108/+5
| | | | | | | | Remove previously unused types chromium has removed. Change-Id: I75749e56035a0168385961d80260243379bbddf4 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Trivial changes for Chromium 44Allan Sandfeld Jensen2015-06-2323-45/+46
| | | | | Change-Id: I8261b201f1d6623eff3427b68b8d098c17d293d3 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Disable V8 binary blobsAllan Sandfeld Jensen2015-06-231-0/+2
| | | | | | | | | V8 will now by default require two external binary blobs in libexec. We prefer not having to ship more external dependencies, which are both inconvinient and a security risk. Change-Id: Id171f9be83add871bfa7d76c000799ebda9b7666 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Update scripts for Chromium 44Allan Sandfeld Jensen2015-06-232-24/+22
| | | | | | | Updates version and snapshot script Change-Id: Ie1bd69d6a5042edbd563357bb2fc326cbbb813e8 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Add QWebEngineCookieStoreClient core APIAndras Becsi2015-06-1617-7/+633
| | | | | | | | | | | | | | | | | This class or its subclass can be set on the QWebEngineProfile and its API enables intercepting Chromium's cookies, setting and deleting cookies in the cookie store. These functions are asynchronous so if the result of the task is needed the user can provide a callback which will be run on the calling thread when the requested operation finishes. This does not include a hook for QQuick layer yet, there we have to figure out what the most convenient way is from a developer's perspective. Change-Id: I6a3af071883ce632df7a2fb952da93f306ac3fe2 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Introduce ProxyResolverQtPierre Rossi2015-06-085-2/+177
| | | | | | | | | | | This allows using QtNetwork's proxy auto conf detection code from QNetworkProxyFactory, by setting the QTWEBENGINE_USE_QT_PROXYRESOLVER environment variable. Otherwise, we still rely on chromium's implementation. Task-number: QTBUG-45376 Change-Id: I7b8b77c932060ad36090d388d616b713d93cad0a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Move QWebEngineCallback to core API and templatize CallbackDirectoryAndras Becsi2015-06-086-183/+315
| | | | | | | | | | | This undocumented helper template will also be utilized by the core API since Chromium's content API heavily relies on callbacks. To make the internal CallbackDirectory easily extendable with new types, templatize its callback registration and dispatching functions to be able to replace its type switches and the internal union. Change-Id: I3f636fef48973ac95253f1c1bd396550286e571e Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Add public QtWebEngineCore C++ APIAndras Becsi2015-06-0822-35/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a new public C++ API layer in preparation to make it possible to integrate with lower level Chromium features related mostly to networking operations like accessing and blocking cookies, custom request headers, etc. This API layer can be used both by Qt Widgets and Qt Quick applications with a small C++ core. It should contatain API to access features that usually run on the IO thread to make it possible to perform heavy tasks that would otherwise require costly context switches to the UI thread. Furthermore for these features a QML API does either not make sense, since they are non-UI-related, or a QML API is simply not feasible, because the API is meant for advanced usecases like web browser development (i.e. custom protocol handlers, network traffic interception cookie syncing, etc.). In the long term this layer could also make it possible to reduce code duplication in the widgets and quick layers by moving common parts to the core layer. The new API is built entirely by qmake as a separate static library which is then linked into the QtWebEngineCore library built by gyp and ninja, to prevent the build options passed to Chromium to break the API layer. As a first step this only contains the global headers for core. Change-Id: Iccf8544587cde7c0d9c6abd462e4766bf9ec81ae Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* QQuickWebEngineView: add activeFocusOnPress propertyPierre Rossi2015-06-0330-31/+154
| | | | | | | | | | This allows to use a WebEngineView to make a UI element that should not get focus, which can be useful inthe case of hybrid UIs. [ChangeLog][QtWebEngineQML][QQuickWebEngineView] Add activeFocusOnPress Change-Id: I0666f81badd135db0049e0dd7b0fc30d0765b1c9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Fix inconsistent dll linkage warningsAndras Becsi2015-06-031-1/+1
| | | | | | | | Use the correct export macro in qwebenginescriptcollection.h else we'll end up with inconsistent dll linkage issues with msvc. Change-Id: Ie38bc9fd7ec120b68ef65e6b661536a942aea9f6 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Support QNetworkProxy::applicationProxyPierre Rossi2015-05-294-2/+263
| | | | | | | | | Implement a ProxyConfigService that keeps track of the state of Qt's application proxy which, if set, takes precedence over the system settings. Change-Id: I7f1eba9015b70cf90f53a41736dd0a6d0ad28489 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Make QQuick contextmenu actions behave like widget counterpartsAllan Sandfeld Jensen2015-05-275-4/+43
| | | | | | | | | Updates a two of the context menu actions so they behave like the updated actions in qtwebenginewidgets. Also improves the default label of OpenInThisWindow, since by default there are no other windows. Change-Id: Iac0dc23e8f31598296cba87f93503cefd926983f Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devAllan Sandfeld Jensen2015-05-1829-87/+235
|\
| * Merge remote-tracking branch 'origin/5.5' into devPierre Rossi2015-05-1529-87/+235
| |\ | | | | | | | | | Change-Id: I1fbcd05760cb287d1d8a0fba344ec7cfe8348c7d
| | * Add redirect and error API for custom URLAllan Sandfeld Jensen2015-05-136-2/+126
| | | | | | | | | | | | | | | | | | | | | Adds API for failing or redirecting custom URL requests. Change-Id: Ia633bff2c0b8484fd6fdb8d42982fda2e427db4c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Update embedded configurationAndras Becsi2015-05-121-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some obsolete options and add conditionals similar to desktop_linux.pri. Change-Id: Id295345028e5fd5f593cbd0b5dc6acdb5c00518b Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Fix Menu ui delegate after on__MenuClosed has been renamedAndras Becsi2015-05-127-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The internal on__MenuClosed signal has been renamed to onAboutToHide in qtquickcontrols. Also update some import versions while we're at it. This patch also adds examples OSX application bundles to .gitignore which only contained the unix binaries. Change-Id: If1d91cb65987dda6d0e10794c1649b1b4e1ccde3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Remove unneeded ResourceContextQt::set_url_request_context_getterAndras Becsi2015-05-123-16/+3
| | | | | | | | | | | | | | | | | | | | | This is an ancient relic that can be removed. Change-Id: Ia6926fff65d0e4d0769de940516866a2c51d9a0c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Reintroduce private browsing mode for example browserAllan Sandfeld Jensen2015-05-1112-53/+90
| | | | | | | | | | | | | | | | | | | | | Uses QWebEngineProfile to support private browsing mode. Change-Id: I78fa712d2425eb2df519594ee3fa5639bbcbebf6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | | Honor the AcceptsInputMethod flag on the WebViewPierre Rossi2015-05-152-4/+6
|/ / | | | | | | | | | | | | This can come in handy to make an HTML based input method keyboard Change-Id: Ieaf49a676262f40b0f250dc67e2f1cd0eeb08d82 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devAllan Sandfeld Jensen2015-05-1226-129/+269
|\ \
| * \ Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-05-1126-129/+269
| |\ \ | | |/ | | | | | | Change-Id: I122ca8d3438333c6b41f751c47b1ce1f9a7066b9
| | * Quick: Share profiles between application windowsSzabolcs David2015-05-078-63/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The applications should not create new WebEngineProfiles for each window, because the WebEngineView can not adopt content from a different profile when the target of the NewViewRequest is a new window (SHIFT+click) or a dialog. This also adds a notifier signal to the profile property in order to avoid "non-NOTIFYable" warnings. Change-Id: I235789f9bfa1a216f99592204e50266242d0ef1c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Improve thread safety and behavior of custom URL requestsAllan Sandfeld Jensen2015-05-063-8/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds thread protection between the UI and IO threads access to the QIODevice, and changes it to a QPointer, so we can tell if the user deletes it. Change-Id: I3e7b3f682d4c5a145d75cd5822affcfc9012cff7 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Add documentation of Custom URL requestsAllan Sandfeld Jensen2015-05-062-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds basic documentation to the API. Though the API is still private we would like people to experiment with it, which is easy if it is documented. Change-Id: I63985dfc16dc91270d95edf6fc306f9c71a10f29 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org>
| | * Fix crash when updating a storage context with active requestsAllan Sandfeld Jensen2015-05-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requests keep pointers to objects owneded by the storage context such as the SSL context handler and HTTP cache. This means we must stop all requests before destroying the context, otherwise the requests will access deleted data. Change-Id: I67863287b3ffb470c8d84ff6cac143493998a6da Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Prevent conflicting declaration errors of GL typedefsv5.5.0-beta1Andras Becsi2015-04-303-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Including gpu/command_buffer headers in Qt code pollute by including ui/gl/gl_bindings.h which pulls in system GL headers. This will cause conflicting declaration of typedefs when included together with content/gpu and content/common/gpu headers which pull in gles2_cmd_format.h that forward declares some GL types. Although the gl_bindings.h header states in a comment that it should only be included in source files, the inline implementation of texture_manager.h and some other low-level GL integration headers nonetheless require gl_bindings.h, which unfortunately cascades through to our core layer and may cause problems when Qt code is compiled. Since getting rid of this include in Chromium's headers is not feasible due to maintenance costs, making sure that in Qt code gpu/command_buffer headers are included before content/gpu and content/common/gpu headers and guarding forward declarations in gpu/command_buffer/common/gles2_cmd_format.h should be a sufficient workaround. We can however get rid of the polluting includes in src/core/gl_surface_qt.cpp, which only requires forward declarations. This also includes a SHA1 update for the Chromium submodule. Task-number: QTBUG-44240 Change-Id: I5813a3663d36e2b565e4fd7f429add7b6f8f8a69 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
| | * Remove Q_UNREACHABLE from DesktopScreenQt::GetDisplayNearestWindowSzabolcs David2015-04-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Chromium uses this method when the user attempts to drag. Task-number: QTBUG-45723 Change-Id: Ibe3946846f0f4e2d2a25ca36e66fa7235d4aecea Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Fix prefix buildPeter Varga2015-04-292-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deploy resources, locales, icu and plugins into the build directory instead of install directory. It is necessary when Qt is configured with -developer-build and -prefix options: the compilation may fail if user has no write access for install directory. Task-number: QTBUG-45796 Change-Id: I425f26fcb4b611c255dd744cb9b4eafe16015d6f Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * Widgets: Use overridden show()Szabolcs David2015-04-272-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notify client about the show() after RWHVQD creation. The WasShown(...) hack is not necessary anymore in the core layer. Change-Id: I221b2d027ee83d81d70191419bc4fa8d41231674 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>