summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Use QOpenGLContext::isOpenGLES() to check if OpenGL ES is enabledSiteshwar Vashisht2015-12-211-7/+9
| | | | | | | | | | | | | | QOpenGLContext::openGLModuleType() performs a general check whether OpenGL ES support is enabled or not. However it is possible that a specific OpenGL context does not have OpenGL ES support enabled even when QOpenGLContext::openGLModuleType() returns QOpenGLContext::LibGLES. In such situations QOpenGLContext::isOpenGLES() method is correct way to determine if the context is an OpenGL ES context. Task-number: QTBUG-50015 Change-Id: I319c2932a62027d3142040045a46cdcb12fcdebe Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Doc: add info about unavailable API from the wikiLeena Miettinen2015-12-181-1/+7
| | | | | | | https://wiki.qt.io/Porting_from_QtWebKit_to_QtWebEngine Change-Id: Ic28e2140ca1dd9643d68a0a21bdd30317b70e282 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Doc: Audio and video codec supportLeena Miettinen2015-12-172-0/+27
| | | | | | Task-number: QTBUG-48741 Change-Id: I2676661ec389e6b5c0bd775302fcc3ee4a4bfde6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix fullscreen mode in qml apiMichal Klocek2015-12-173-19/+23
| | | | | | | | | | | | Current implementation was not working correctly for quicknanobrowser when entering and leaving fullscreen video, in cases where the browser itself was already fullscreen. Use ExitFullScreen to leave fullscreen in demo code. Use onFullScreenRequested handler to track if fullscreen mode is on. Change-Id: I022d5e830b189897d34a9a8747381d041101c692 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Doc: loading PPAPI pluginsLeena Miettinen2015-12-171-4/+24
| | | | | | Task-number: QTBUG-49625 Change-Id: I1729fb900e0a84971f81ea7bce384839279712f8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Update ChromiumAllan Sandfeld Jensen2015-12-171-0/+0
| | | | | | | Pulls in recent patches in 45-branch. Change-Id: I5db148839ef3065a92ac1f9aac8ff0ee8eb7a2a0 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Expose UrlSchemeHandler API in QQuickWebEngineProfileKai Koehne2015-12-172-0/+95
| | | | | | Task-number: QTBUG-49914 Change-Id: Idfe596db1ec9fab3728f6dbfa55d5e6d7e5415ff Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix MouseReleaseEvent not being sent when clicking on a context item.Alexandru Croitor2015-12-161-1/+3
| | | | | | | | | | | | | The context menu that appears, when right clicking in a WebEngineView, does not have a parent. On OSX if a context menu does not have a parent, a MouseReleaseEvent is not sent when an item is chosen in the menu, and thus consecutive mouse events are not handled properly. The fix consists in assiging the WebEngineView as the QML parent for the context menu that is opened. Task-number: QTBUG-44666 Change-Id: I7f79d4497c57a814866089195da1570591a6999e Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Use default URLRequestInterceptors passed from ChromiumAleksey Yermakov2015-12-165-14/+29
| | | | | | | | | | | Default URLRequestInterceptors are required for App Cache and Service Workers support. They were previously ignored and dropped in BrowserContextQt::CreateRequestContext. Implementation in content shell was taken as a reference. Change-Id: I5a12e90febdb4c639f9ead9faf044df09431bdd0 Reviewed-by: Aleksey Yermakov <jp.kuraisu@gmail.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Add QQuickWebEngineProfile::setRequestInterceptorKai Koehne2015-12-152-2/+18
| | | | | Change-Id: Icde3eb91ca61c5fcaa7cf5adc2171a34cc3c2452 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Move WebEngine initialization to core libraryAllan Sandfeld Jensen2015-12-155-50/+107
| | | | | | | | This means QtWebEngineWidgets no longer needs to depend on and link to the QML API. Change-Id: If59693bf0ae1fb43dc86c141daf4e09c8cc68c25 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Stabilize test_urlPropertyv5.6.0-beta1Allan Sandfeld Jensen2015-12-141-0/+0
| | | | | | | | | | Pulls in Chromium patches that fixes crashes in the test, and add a missing waitForLoadSucceeded, that otherwise might cause the next test to fail. Task-number: QTBUG-48031 Change-Id: I4844aee0ccf159e50de955f3b3da704160a4a0f5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Make QQuickWebEngineProfile publicKai Koehne2015-12-1212-186/+340
| | | | | | | | | Make QQuickWebEngineProfile a publicly exported class. This allows users to set up and manipulate the profile from C++, and removes the ugly hack needed to access the cookie store. Change-Id: I99e1a8c2cb99d9d1a14e1c78bec5948ba1282fb3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix some syncqt warningsJoerg Bornemann2015-12-113-0/+26
| | | | | | Change-Id: I9f224e96138117bdf202084231ce6c805e15f5b2 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Remove explicit version \inqmlmoduleKai Koehne2015-12-109-11/+11
| | | | | | | Also bump version in \qmlmodule QtWebEngine 1.2 Change-Id: I4d0379a3a46548e626508a8cf1fad51f742c8ddb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Update ChromiumAllan Sandfeld Jensen2015-12-101-0/+0
| | | | | | | Pulls in the last of the Chromium 47 security fixes Change-Id: Iaffa0a727948a45ca1dea036823bab2399105e09 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* Make use of QObject's d-pointer in QWebEngineCookieStoreJoerg Bornemann2015-12-104-12/+10
| | | | | | | | | This safes us from managing d_ptr/q_ptr pairs and saves a bit of memory. Change-Id: Icdd692c5ddf0980de980bebb691ecf51b738acaa Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Michael Bruning2015-12-093-24/+87
|\ | | | | | | | | | | | | Conflicts: src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp Change-Id: I451bc61673014db8e87b2a2cf98fb6879ce0e58d
| * Fix incorrect device pixel ratio used on startup.Alexandru Croitor2015-12-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Report the correct device pixel ratio to Chromium, when the QOpenGLWidget gets initialized. The initial value on startup is incorrect, because Chromium tries to query the screen information, before a relevant QWindow handle can be returned, and thus defaults to 1.0f. Change-Id: Ibbedd7b2915840f9716340e582aedbc13406f11a Task-number: QTBUG-49727 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
| * Reuse or clean up HttpNetworkSession when (re-) setting a cache type.Michael Bruning2015-12-042-24/+81
| | | | | | | | | | | | | | | | | | | | | | Not reusing or cleaning up the session led to race conditions which in turn lead to crashes and asserts. Reuse the session if parameters match, clean up and it recreate otherwise. Task-number: QTBUG-49397 Change-Id: I4f846a448b50d80a3cf7c4f9bb833fa6d64974d7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Fix embedded Linux debug buildJoerg Bornemann2015-12-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | The icu header files are picked up from src/3rdparty/chromium/third_party/icu, but the syroot's icu libs were linked. Do not claim to support linking against the sysroot's icu. This never worked properly in 5.5. Task-number: QTBUG-49693 Change-Id: I7dca37ecefbc5b1dabfadf86540442b8face8347 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Update Chromium SHA1Allan Sandfeld Jensen2015-12-081-0/+0
| | | | | | | | | | | | | | Pulls in most of the security updates from Chromium 47 Change-Id: I1c023deb97a9d1b4f24c8573127d135672ed7ab4 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Make the MIME-type of downloads availableAllan Sandfeld Jensen2015-12-0711-10/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An application currently have to rely on suggested filename only to guess the type of a download. This is often insufficient when the suffix is misleading or missing. This patch adds the mimetype to the reported metadata and also adds a mimetype appropriate suffix to suggested filenames. Task-number: QTBUG-48206 Change-Id: I4c70f076d6eb5ae820fd6b7f568515eeb7c18df5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Quick: Close WebUI popups properlySzabolcs David2015-12-072-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch deactivates the web view with a FocusOut event when it turns to invisible and Chromium closes its WebUI popups. In case when the window is closing, we can't always rely on the destroyed() signal or the visibility state of the WebEngineView, since we have multiple top level windows and the destroying order of the items is not so trivial as in the single-window case. Task-number: QTBUG-49099 Change-Id: I802a47c72eed3ed6352f1ba24998622fc95bb48a Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Doc: edit WebEngineCertificateError QML type docsLeena Miettinen2015-12-041-9/+11
| | | | | | | | | | Change-Id: I658eaaefa422a0393318140a345e5114a3c085e6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Doc: mark QWebEngineUrlRequestInfo::changed() internalLeena Miettinen2015-12-031-0/+3
| | | | | | | | | | | | | | ...to stop QDoc from printing an error. Change-Id: I22ac3d94e4f8ad53c0bfbda97a71c615a43a2262 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Doc: remove obsolete docs about URL requests and scheme handlerLeena Miettinen2015-12-022-12/+0
| | | | | | | | | | Change-Id: Ic567bcd9ba91d82c1df1ef42f6b57e4209418f22 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Rename setExtraHeader to setHttpHeader in QWebEngineUrlRequestInfo.Michael Bruning2015-12-022-3/+3
| | | | | | | | | | | | | | | | Also make a small update to the documentation of the method. Change-Id: Ie19578ffccfd30c884cdfe882dffcdae6637e8e2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Change QWebEngineUrlRequestInterceptor::interceptRequest to void.Michael Bruning2015-12-025-2/+15
| | | | | | | | | | | | | | | | Now uses a flag in QWebEngineUrlRequestInfoPrivate to store if the interceptor actually changed the request. Change-Id: Idccbd1c15696e577ee69248e53b75ba6ec1c571c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Doc: edit QWebEngineCookieStoreClient::FilterRequest docsLeena Miettinen2015-12-021-7/+18
| | | | | | | | | | | | | | | | | | - Add \brief commands. - Each \variable command needs to be in a separate help topic. - Edit the language Change-Id: Iac9b57ceaca5d3decce83305b8d3d39d54eb09dd Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Doc: edit the porting instructionsLeena Miettinen2015-12-021-20/+19
| | | | | | | | | | | | | | | | Follow the Qt documentation guidelines and fix some grammar issues. Change-Id: I1e708a2089b112aa079871b19698f71f0d3e85c3 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Work around MSVC linker out of memory failureJoerg Bornemann2015-12-021-0/+24
| | | | | | | | | | | | | | | | | | | | The native 32 bit MSVC linker tends to fail with LNK1102 (out of memory) in debug mode. Work around this issue by disabling debug information for x86, when not using the amd64_x86 cross-compiler. Task-number: QTBUG-49545 Change-Id: I2aac7e400719f74ced450e264ab1464596e5f204 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Support custom mouse cursorsSzabolcs David2015-12-012-2/+17
| | | | | | | | | | | | Task-number: QTBUG-43009 Change-Id: Ic36554c5137a55d9d4b9143c204d9d4400e23ff8 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Add core-private dependency to core_api.proJoerg Bornemann2015-12-011-1/+1
| | | | | | | | | | | | | | | | We want to use private QtCore API in later commits. Change-Id: If006d9bfd503cdb21b3adf164c0ebf2aa8967bac Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Remove superfluous destructor from QWebEngineCookieStorePrivateJoerg Bornemann2015-12-012-6/+0
| | | | | | | | | | | | Change-Id: I449f4c19b256373b78fa4585c14d06dbc8bc7276 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Rename QWebEngineCookieStoreClient to QWebEngineCookieStoreMichal Klocek2015-12-0115-108/+108
| | | | | | | | | | Change-Id: I8f9a4c5c155a65ede24908799218fd867db0767c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Remove the empty virtual destructor from QWebEngineUrlRequestInterceptor.Michael Bruning2015-12-011-3/+0
| | | | | | | | | | Change-Id: Ia7bcdcfd7db7120e6d9e5f46842501ec0f613f18 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Rename url scheme handler's destroyed signalAllan Sandfeld Jensen2015-12-013-5/+7
| | | | | | | | | | | | | | | | Make the signal distinct from the QObject destroyed signal and make sure it is not documented and follows private signal naming. Change-Id: If10a6e7fcee5e9ea4d3ed12ddb8e6ff3f1170adc Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Merge "Merge branch '5.5' into 5.6" into refs/staging/5.6Allan Sandfeld Jensen2015-12-011-0/+18
|\ \
| * | Merge branch '5.5' into 5.6Allan Sandfeld Jensen2015-11-271-0/+18
| |\| | | | | | | | | | Change-Id: Ie1f05c97650ecb86a6fe2d69ad037790c315a83b
| | * Reassociate the web channel when setting a profile.Michael Bruning2015-11-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The WebContentsAdapter gets recreated and the QmlWebChannel needs to be reassociated with the new adapter instance. Change-Id: I88494fd379c429f2ae98df95a22c04c334452088 Task-number: QTBUG-49521 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| | * fix crash on WebEngineNewViewRequest.openInJoerg Bornemann2015-11-241-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling WebEngineNewViewRequest.openIn with the WebEngineView that initiated the request, QQuickWebEngineViewPrivate::adoptWebContents would destroy the current WebContentsAdapter object. But this WebContentsAdapter implicitly holds the RenderHostViewImpl of the current call stack. Accesses to it after adoptWebContents is finished will crash. Fix the crash by deferred deletion of the current WebContentsAdapter. Task-number: QTBUG-47601 Change-Id: I3c229172511b4aed77632a0abefbe0265ebf1557 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Update QtWebEngine version in module overviewKai Koehne2015-12-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Also remove QtQuick import. This one is not specific for the module. Change-Id: I0cdbb0f36823e109e0b4b93e65ae3de59aebd2b7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* | | Fix loading of Flash plugin on WindowsKai Koehne2015-12-011-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | So far we were only storing the filenames, not the full paths. While at it also fix the loading on 32 bit Windows, and do not hardcode the location of the Windows directory. Change-Id: Ie5d9a23b941ff9bde36e687c37c412b15b4d65c8 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Configure gyp for arm64Allan Sandfeld Jensen2015-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | Introduces basic support for doing native arm64 builds. Change-Id: Ic03327c053a1c8197ba0610cf1364ccc93f015ff Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Doc: Adobe Flash player plugin supportLeena Miettinen2015-12-011-0/+30
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-49625 Change-Id: I2b01f45d0b8082a13eff4a4629de13fa8da862aa Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Doc: remove include and linking instructions from front pageLeena Miettinen2015-12-013-25/+15
| | | | | | | | | | | | | | | | | | | | | | | | Make sure that the instructions are visible on the linked page for each module. Change-Id: I47625bd8eb19ddf1f94e1bafb49f132216a0c069 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | | Doc: document QWebEngineHistoryItem::swap methodLeena Miettinen2015-12-011-0/+5
| | | | | | | | | | | | | | | Change-Id: Ie8c6e4d9887d5169037e580db8a91c102009df5e Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | | Doc: make docs for QWebEnginePage::requestedUrl clearerLeena Miettinen2015-12-011-2/+4
|/ / | | | | | | | | | | | | Task-number: QTBUG-49500 Change-Id: Ibeafae52ae523a526c912ef3e40f6d69da7b13bd Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com> Reviewed-by: Kati Kankaanpaa <kati.kankaanpaa@theqtcompany.com>
* | Force creation of default WebEngineProfileKai Koehne2015-11-241-0/+2
| | | | | | | | | | | | | | | | | | | | Make sure that the default QWebEngineProfile is created first. This creates the default WebEngineContext, which in turn initializes global things like AtExitManager. Task-number: QTBUG-49557 Change-Id: I9e8f6bd24edd7f4c7e8bb38d91a2c09631824828 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>