summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add post configure step and make using system ICU an optionAllan Sandfeld Jensen2015-07-273-2/+5
| | | | | | | | | | Adds a post configure step to test qmake arguments, summerize options, and make it possible to enable using system ICU, but leaving it default off for now. Also summerizes the proprietary codec configuration. Change-Id: I620a69dcdbb14b49143770d38eecb5aeab48ad05 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Fix a crash on new windowsJocelyn Turcotte2015-07-231-3/+6
| | | | | | | | | | Fixes a regression of 99e98f7bf6aec78fe0d647fb898e65d13ff522e4 by delaying applying the background color if the client hasn't been set on the WebContentsViewQt yet. Task-number: QTBUG-41960 Change-Id: I1c138777f616541179976570d8c29f8f4d49ecbf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix widgets plugin settingsAllan Sandfeld Jensen2015-07-201-0/+2
| | | | | | | | Connect the user setting to the webengine settings, and make it available in the demo browser Change-Id: Id4da8a4125a9f982cb687d433b6fce123e72c4c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Use system libsrtp if availableAllan Sandfeld Jensen2015-07-192-0/+2
| | | | | | | | Adds configure check and configures chromium to use system libsrtp if available. Change-Id: I134c50e1179bfb6acf01347456f8be26f27bf559 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Detect and use system librariesAllan Sandfeld Jensen2015-07-192-2/+16
| | | | | | | | Uses pkg-config to detect libevent, libwebp, flac, jsoncpp, opus, speex and vpx, and configure chromium to link with system versions. Change-Id: Ic6c5bbe07929a7c2b79abcb760a8c61b0c9ed92f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* implement Download* web actions in QML WebViewJoerg Bornemann2015-07-182-0/+21
| | | | | Change-Id: I4b5afc22a1884f59d6903593b1e62e991eaba57f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Export fullscreen support setting to QML APIAllan Sandfeld Jensen2015-07-176-1/+33
| | | | | | | | Let applications tell QtWebEngine whether they support the fullscreen API or not. Change-Id: I97681cf1c68a9d7a3b8bb7dcca861ec0b0a79ed6 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Implement pure virtual functions of NetworkDelegateAndras Becsi2015-07-162-11/+114
| | | | | | | | | | Instead of subclassing net::NetworkDelegateImpl and potentially introduce silent behavior changes, use the common pattern of implementing the pure virtual functions of the abstract base class in our implementation of NetworkDelegateQt. Change-Id: I54a22c60b0cfd54291515b9381535c5ce958efbf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Add cookie API testsAndras Becsi2015-07-163-1/+10
| | | | | | | | | | | | | | | | | | | | | | This tests the part of the cookie API that can be tested locally. The notification about third-party cookies (acceptCookieFromUrl) can not be tested locally since it requires cookies to be set from a different domain than the main frame, which requires a remote host or a local web server with support for virtual DNS. Testing requires the ability to set cookies for local pages loaded through the qrc scheme. We could eventually extend this in the future to enable setting cookies on registered custom schemes, but for that we might have to implement our own cookie store. Since Chromium's cookie store relies on source url's to manage cookies and qrc:// cookies do not specify a domain, a specific source url is needed to be able to delete an individual cookie that has been set by a page loaded through qrc://. This patch requires a new function on QNetworkCookie to be able to forward the source url of the cookie to Chromium. Change-Id: I97dd04b27fbb8ec63060f9b741ad65c29a773a6c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Remove code dealing with now removed ffmpegsumo pluginAllan Sandfeld Jensen2015-07-153-32/+6
| | | | | | | | | | Chromium now links statically to ffmpeg, and the ffmpegsumo plugin is no longer built. This also makes the plugin dir unneeded. Change-Id: I2204ce966b067886d57a9548d8aec829b73642d8 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Update Chromium version to 44.0.2403.80Allan Sandfeld Jensen2015-07-151-0/+0
| | | | | | | | Also switch to parsing DEPS instead of .DEPS.git as the latter has been removed from upstream chromium. Change-Id: Ie449e310202458c5c514a5eb6af2d30486ec0891 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* Add a backgroundColor propertyJocelyn Turcotte2015-07-1422-2/+141
| | | | | | | | | | | | | | | | | This also allows setting a transparent color to see through the web view's body if its background color isn't specified. The color is initially held by the top API view and is pulled by the WebContentsAdapter in order to set it on the RenderView. Since both blink and our local compositors (in the QOpenGLWidget case) need to know about this color, RWHVQt takes care of pushing it to both. The former through an IPC message and the latter directly on the RWHVQtDelegate. Task-number: QTBUG-41960 Change-Id: Ie13317b2d087f5612ad9c5fb0e05ca3e91aec9af Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* make copy web action available for canvasesJoerg Bornemann2015-07-142-4/+12
| | | | | | | | We need to take into account that canvases don't have a valid media URL. Task-number: QTBUG-47187 Change-Id: I01e1097c74df623a7d28189b6ab25fdc27c5e766 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Implement missing WebActions in QML APIAllan Sandfeld Jensen2015-07-107-65/+174
| | | | | | | | Implements the remaining WebActions from the widgets API in the QML API, so the available actions matches. Change-Id: I60dfd4a574b80cdd82b8891abfb27a8bfb1b88ec Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Add support for batch tasks to the cookie clientAndras Becsi2015-07-086-0/+163
| | | | | | | | | | This patch adds support for deleteSessionCookies, deleteAllCookies and getAllCookies to make these features directly accessible without the need of subclassing QWebEngineCookieStoreClient and having to implement a less efficient equivalent. Change-Id: I6645bee7fcef38d00dccfaa81f4e9ada86c491df Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* add Download*ToDisk web actionsJoerg Bornemann2015-07-067-0/+44
| | | | | | | | Add the web actions DownloadLinkToDisk, DownloadImageToDisk and DownloadMediaToDisk. Change-Id: If6c9c8a3f4b95ad3032cff71ffc53a48be26e083 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Merge "Merge Chromium 44 and fixes" into refs/staging/devAllan Sandfeld Jensen2015-07-0656-469/+777
|\
| * Merge Chromium 44 and fixesAllan Sandfeld Jensen2015-07-0656-469/+777
| |\ | | | | | | | | | | | | | | | | | | Bumbs the Chromium version to 44 and merges the 'wip/44-based' branch, which contains all the patches to build against Chromium 44. Change-Id: If03dd301cb2a5cf7da3fe0a92ce1134f1239bf00
| | * Fix build with only OpenGL/ES2Allan 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>
| | * 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-012-0/+4
| | | | | | | | | | | | | | | | | | | | | 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>
| | * 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>
* | | Add WebAction to QML apiAllan Sandfeld Jensen2015-07-066-44/+73
|/ / | | | | | | | | | | | | | | | | | | Adds WebActions matching QWebEnginePage to QQuickWebEngineView, this makes it possible to support copy/paste on OS X, and makes it possible to do rich text copy to clipboard on all platforms. Change-Id: If43c1b2e8ae0496423f830cfe6b86e0fa1b8126e Task-number: QTBUG-44289 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge "Merge remote-tracking branch 'origin/5.5' into dev" into refs/staging/devLiang Qi2015-06-3016-45/+234
|\ \
| * \ Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-2916-45/+234
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/webenginewidgets/api/qwebenginepage.cpp Change-Id: Idb33c92bd53fab76eee8fedb542dbf5e4a10f9e6
| | * | Polished the module overview.Kavindra Palaraja2015-06-271-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplified sentences in the Architecture section to improve readability. Change-Id: I324a95caf811c0c8afe14c90fe10529999e3c538 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | * | Merge "Merge remote-tracking branch 'origin/5.5.0' into 5.5" into ↵Liang Qi2015-06-2612-35/+216
| | |\ \ | | | | | | | | | | | | | | | refs/staging/5.5
| | | * \ Merge remote-tracking branch 'origin/5.5.0' into 5.5Liang Qi2015-06-2612-35/+216
| | | |\ \ | | | | | | | | | | | | | | | | | | Change-Id: Ie9373d6278c9ba1514de5640802d985ec35aceb2
| | | | * | Use system fontconfig on embedded linuxv5.5.0Andras Becsi2015-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since our reference platform provides fontconfig on the system we can use that instead of the bundled one. This prevents us from duplicating the fontconfig cache which might also result in a very long first startup time. Change-Id: Ida74651a0d73ac7631cb5b60c0ced5998e59bc8c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | | | * | Add documentation for QWebEngineScript and QWebEngineScriptCollectionPierre Rossi2015-06-122-3/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I494f31a6b4efc038a96ca68142fa2f9a56d53802 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | | | * | WebEngineView: add a doc entry for settings.Pierre Rossi2015-06-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Appears to be an oversight. The settings class itself is documented. Change-Id: Id768a61957c6cd77a5dd15698ce77754399d9199 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | | | * | Last minute API review cleanupPierre Rossi2015-06-126-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getters in QWebEngineDownloadItem were not const. The script collection in QWebEngineProfile was passed by reference, which is not idiomatic of Qt. Change-Id: I9b4218b407288b91a726a711bd2a7e1c1167d99a Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| | | | * | Add license file and mention in the docs for GPLv2+.Pierre Rossi2015-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4fa625452228eda7aef97b3e4fb09d21bbdf6470 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| | | | * | Fix msvc linking issues caused by wrong export macroAndras Becsi2015-06-082-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the correct export macro QWEBENGINEWIDGETS_EXPORT for widget API. Change-Id: I1fe61008938522548fe84936fd97e0458ada3104 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>