summaryrefslogtreecommitdiff
path: root/Source/WebKit
Commit message (Collapse)AuthorAgeFilesLines
* decruft project fileOswald Buddenhagen2016-05-101-3/+0
| | | | | | | the "created by qt creator" header is not supposed to be checked in. Change-Id: I78294e52858387946b2bafd258f7be6b0b5d87d6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* make use of COPIESOswald Buddenhagen2016-05-102-16/+6
| | | | | Change-Id: I050003e46c437a3fadce11d417861f40d60f6c20 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Make more ctors explicitMarc Mutz2016-03-042-2/+2
| | | | | | | | | | Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: If2e979aa5772b8dc0b9a4a9360914740144d47a7 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Make public headers compile with -Wzero-as-null-pointer-constantMarc Mutz2016-03-046-12/+12
| | | | | | | | | | | | ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Change-Id: I9e521f91abe7972843eeeb6406f8605778dabbaf Task-number: QTBUG-45291 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* isLinkVisited: Don't build complete URL unless we use QWebHistoryInterface.Konstantin Tokarev2016-02-261-4/+4
| | | | | | | | visitedURL() is non-trivial function with memory allocations, so we should not call it for nothing. Change-Id: I72e14fac75640cb6b22dd1444b9a061e8432dd7e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fixed unfinished phrase in documentation of evaluateJavaScript.Konstantin Tokarev2016-02-041-4/+3
| | | | | | Change-Id: I5b5f43c68feedbace330494e7eb051cfe8a54128 Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Handle WebKitErrorDomain error like other errorsJoni Poikelin2016-01-291-1/+1
| | | | | | Change-Id: Ie4dd08b18706e44947a00b4d61a185b5fc43f478 Reviewed-by: Konstantin Tokarev <annulen@yandex.ru> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fixed another typo in QWebSecurityOrigin::addLocalScheme() documentation.Konstantin Tokarev2016-01-271-1/+1
| | | | | Change-Id: I7013829d4e30a85374a4f63ab6a45b97b44313d7 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* Fixed typo in QWebSecurityOrigin::addLocalScheme documentation.Konstantin Tokarev2016-01-271-1/+1
| | | | | Change-Id: Ife7db164671b84f28b03b6d86a038d1370486cae Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Improved documentation of evaluateJavaScript().Konstantin Tokarev2016-01-212-2/+24
| | | | | Change-Id: I47d8f4c0e392ffb70655db9725b035d22a7cad91 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Add missing docs for QWebSettings attributes.Florian Bruhin2015-08-101-0/+6
| | | | | | | | | WebAudioEnabled is left undocumented because it doesn't work, but WebGLEnabled/HyperlinkAuditingEnabled/CSSRegionsEnabled seem to work fine. Change-Id: I12c88424ae77cdb6f1e0279b39a538ee932b8b60 Reviewed-by: Julien Brianceau <jbriance@cisco.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Remove QTWEBKIT_VERSION left-oversAllan Sandfeld Jensen2015-07-292-46/+1
| | | | | | | | We removed QTWEBKIT_VERSION in Qt 5.0, but still document it and still define the QTWEBKIT_VERSION_CHECK helper. Change-Id: Iadbe0004224f3cef20a5d55a5ec8b46f04b387d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5Allan Sandfeld Jensen2015-05-181-2/+3
|\
| * Merge remote-tracking branch 'origin/5.4' into 5.5Allan Sandfeld Jensen2015-05-181-2/+3
| |\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ib823c8eeb271b380811827aae1ac0bd50ea5a59b
| | * Enforce no remote access from local URLs for XHRAllan Sandfeld Jensen2015-04-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a specific setting to disable remote access for local URLs and also enforce that on data-URLs loaded owned by local URLs. Change-Id: Ied8ec141eb1c28775644fce184a4759a79e1d177 Task-number: QTBUG-45556 Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | | Fix potential crash on exitAllan Sandfeld Jensen2015-05-181-1/+2
|/ / | | | | | | | | | | | | | | | | If we close a browser with a combobox open it may crash on exit due to double deferred deletion. This patch avoids that by using a smarter pointer. Change-Id: I3f1c561b0eb70cf1a51054de51b1027b52cd41b6 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into 5.5v5.5.0-beta1Liang Qi2015-04-151-0/+2
|\ \ | |/ | | | | Change-Id: I0d9dd63455dc12402afd56cc1bd97d0cc97c24e8
| * Set minimum DOMTimer interval to 4msAllan Sandfeld Jensen2015-03-181-0/+2
| | | | | | | | | | | | | | | | | | | | This changes the QtWebKitWidgets minimum DOMTimer precision to match that of QtWebKitQML (WebKit2) and other WebKit1 APIs. See also https://bugs.webkit.org/show_bug.cgi?id=61214 Change-Id: Id8ce7d217ed27396c8b14584f8c0c22a5df888cd Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into 5.5v5.5.0-alpha1Allan Sandfeld Jensen2015-03-108-3/+35
|\ \ | |/ | | | | Change-Id: I824a984e8552340c2f9f631ac951f2c9eaa90b74
| * Doc: Link issues Qt WebKitNico Vertriest2015-03-052-2/+2
| | | | | | | | | | | | | | | | Removed obsolete references QInputContext and QtDeclarative Task-number: QTBUG-43775 Change-Id: I308931beaec5ef2067350649135c26df1fe3817b Reviewed-by: Martin Smith <martin.smith@digia.com>
| * Forward show and hide events to PluginViewsMichael Bruning2015-02-267-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | This was causing issues with windows plugins on windows, which were always visible on top of all other widgets and not hidden correctly when the owning web view was hidden. Task-number: QTBUG-44401 Task-number: QTBUG-42588 Task-number: QTBUG-43024 Change-Id: Ie0307fa2f7b2bf59f51a76db5feef2e8446c359d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge dev into 5.5Oswald Buddenhagen2015-02-2326-26/+26
|\ \ | | | | | | | | | Change-Id: I1a4e088f1080851e768f41551b69e62267782fd9
| * | Update copyright headersJani Heikkinen2015-02-1626-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Icc6f774c9ca37ea88ac024163386b16fc50fb2a7 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * | Merge remote-tracking branch 'origin/5.4' into devFrederik Gladhorn2015-02-162-6/+56
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ib6552c4dd0fbfecfa1800689eb2ae75b9d54a22b
* | \ \ Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-02-203-6/+57
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | Conflicts: .qmake.conf Change-Id: Ic900e9207ae48520c99894345fe0b4d0ab58ec44
| * | Fix compile issue as it was missing the multimedia moduleAndy Shaw2015-02-191-0/+1
| |/ | | | | | | | | Change-Id: I24f89215897b366fc7f21bf4a43e61337a17b596 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Add documentation for feature permission related APIs.Florian Bruhin2015-01-221-0/+49
| | | | | | | | | | | | | | | | Those are mostly taken from QWebEnginePage's documentation with some slight adjustments. Change-Id: Ifbde5252cc46505c117a9d75ffa2af6e3b6eec11 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
| * Editor actions should only be checked when page is editableAllan Sandfeld Jensen2015-01-201-5/+6
| | | | | | | | | | | | | | | | | | | | In the split of qt4 QWebPage the check for GUI level editor actions was incorrectly moved to being checked when the page is not editable instead of when it is editable Task-number: QTBUG-44019 Change-Id: I3776cec6ee05f27e43139e40cc18480905300888 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
| * Avoid crash on root elements with display:noneAllan Sandfeld Jensen2015-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | We expect elements returned by hit-testing to have actual renderObjects, but that may not be the case if the root element is declared display:none, since the root element is always considered hit if nothing else is, and display: none elements have no renderObjects. Task-number: QTBUG-43882 Change-Id: I526615d401bf09b30e2b6994dcdad3b2373cef5a Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Add QWebHitTestResult::linkTitleString().Florian Bruhin2015-01-272-1/+20
|/ | | | | | | | | | | | QWebHitTestResult::linkTitle returned the link title as an (invalid) QUrl. Since the return type can not be changed before Qt 6, it is now obsolete and replaced by a linkTitleString method with a correct (QString) return type. Task-number: QTBUG-44052 Change-Id: I0636de3112eac19942db7c29c7cc5b8a0ac1e05a Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Disable the animation so the style renders buttons correctlyAndy Shaw2014-12-031-2/+2
| | | | | | | | | | | Previously just the style was checked to see if it was one that supported animations on buttons. However when a stylesheet is used then it would not correctly be picked up. Therefore the animations are disabled directly using the property available on the styleObject. Task-number: QTBUG-39400 Change-Id: I99c205bf61d98f9bfefc8c9c6f9806d3d068abc4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix documentation for QWebPage::scrollRequested signal.Florian Bruhin2014-12-021-3/+1
| | | | | | | | | | | The documentation says the scrollRequested signal will be emitted if no view was set, however the signal gets emitted unconditionally. This behavior was changed in https://bugs.webkit.org/show_bug.cgi?id=21790 Change-Id: I3d6df9935fc5d6efb14bc956c43c03b655f9a2ad Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix selections after leave eventAllan Sandfeld Jensen2014-11-063-1/+12
| | | | | | | | | | | | We were sending a bad fake mouse event on leave events that caused WebCore to stop tracking mousepresses correctly. Since we continue to receive mouse-events after leave if a mouse button is down, we don't need the fake mouse event to unset hover states and can skip, and can skip sending it. Task-number: QTBUG-41419 Change-Id: I8d50c440f7556f7e34bb0c05248577583c2550b4 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fixed crash in QGraphicsWebView when clicking on linksSamuel Rødal2014-11-031-3/+1
| | | | | | | | | | | The mouse event passed to this function is allocated on the stack, so we can't delete it. Also, it doesn't make sense to allocate a new one which immediately gets leaked. The intent must have been to use the ev parameter as a return parameter - that's what it looks like on the caller side. Change-Id: I023cd7895a278eada4ad4acd233741aff837fed6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* avoid creation of empty qmltypes for qtquick1Fawzi Mohamed2014-10-311-7/+8
| | | | | | Change-Id: Ic28043a94151d3878219e5808075ce6ae663c316 Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* [Windows] Also check for QApplication::style when animating buttons.Michael Brüning2014-10-211-1/+1
| | | | | | | | | | The fallback style for a custom style sheet is QApplication::style(), which defaults to QWindowsVistaStyle on most (if not all) windows systems. Task-number: QTBUG-39400 Change-Id: Ib05571033730ed26a39f89d8e9fe948c4b280e64 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-09-161-0/+2
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I08b9747648df91cda78b49c8b4fa2bce8539dd4f
| * QWidgetPluginImpl: fix build with QT_NO_STYLE_STYLESHEETOlivier Blin2014-09-091-0/+2
| | | | | | | | | | Change-Id: Ia96efd95ff5f92e5b6569b343764c337fb1a8d41 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-08-283-5/+7
|\ \ | |/ | | | | Change-Id: Ideed7a2c21b448633c32f690918eb1ae40355819
| * Fix crash in DeviceOrientationController when !HAVE(QTSENSORS)Julien Brianceau2014-08-131-2/+4
| | | | | | | | | | | | | | Regression introduced by QSensors leak fix (QTBUG-38857). Change-Id: I22dd4f774012ef9b8af9ba8b59e1e4603a3ebbf4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
| * Fix case in documentation of qobjectbridge bindingsAllan Sandfeld Jensen2014-08-122-3/+3
| | | | | | | | | | | | | | | | | | The method toDataURL does not work, but calling toDataUrl does. This patch updates the documentation to match the exported method name. Task-number: QTBUG-40268 Change-Id: Icf0ee233df141d43367da045834e6a42c9afb31a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Remove dead code for support Qt 5.0 and 5.1Allan Sandfeld Jensen2014-08-162-8/+0
| | | | | | | | | | | | | | | | QtWebKit can not build with Qt 5.0 or 5.1, so the code for those version is dead and should be removed. Change-Id: Ief9e08bed372ba9e9f2e0dd115763ad0b8812bfa Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Support QOpenGLWidget for accelerated compositingAllan Sandfeld Jensen2014-08-061-6/+30
| | | | | | | | | | | | | | | | This patch enables the use of QOpenGLWidget for the same role QGLWidget can be used to enable accelerated compositing in QtWebKit. Change-Id: I7ac5c00c3a4b411637544128fc5d805781b9da4d Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into devFrederik Gladhorn2014-07-293-4/+9
|\ \ | |/ | | | | Change-Id: I488a1ee13117760781019a2f4bc6f6dff64c6871
| * Do not use title as the primary text of dragged or copied linksAllan Sandfeld Jensen2014-07-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In trying to preserve the link title, we set the title in the text part of dragged or copied mimedata. This has caused a number of undesired changes in behavior. This patch reverts to placing the url in the text field, but instead stores the rich part of the link as HTML. This is consistent with GTK, and Chromium. Task-number: QTBUG-39995 Change-Id: Id5f2587a93fb9721c728299340f2e3562f3456ca Reviewed-by: Michael Bruning <michael.bruning@digia.com>
| * Avoid crash when hidePopup is called multiple timesAllan Sandfeld Jensen2014-07-221-1/+5
| | | | | | | | | | | | | | | | If hidePopup is called twice it may cause access to a deleted version of itself Task-number: QTBUG-38998 Change-Id: Iee967eb51c403420779ea502610b58383d07963f Reviewed-by: Michael Bruning <michael.bruning@digia.com>
| * QWebPage crashes on drag without QWidget viewDavid Fries2014-07-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QWebPage can be used without a widgets and has a documentation section on how to do so, but if QWegPage hasn't been given a QWidget in setView a drag operation will crash. To reproduce select a section of the web page click and drag from within the selection and it will crash. Add a check to avoid a NULL dereference, the existing code already has a check for not having a QWidget set as the view. DragClientQt::startDrag m_chromeClient->platformPageClient() is NULL Task-number: QTBUG-40204 Change-Id: I5739285696ab57c05ee59c10ae00a1cf652ff494 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* | Implement Accelerated 2D CanvasAllan Sandfeld Jensen2014-07-034-4/+27
| | | | | | | | | | | | | | | | | | Implements accelered 2d canvas and makes it an setting. Accelerated 2D canvas can especially speed up image blitting and complex transforms on embedded devices when using a QGLWidget viewport. Change-Id: I98a03f3c76d4e87799830171c6df101ed9908de3 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into devFrederik Gladhorn2014-06-265-4/+10
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I60f650c77f74c20c23c07644a2d3c3d55ff27607
| * QWebHitTestResult::element() should return the inner elementAllan Sandfeld Jensen2014-06-262-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | QWebHitTestResult::element() currently only returns a non-null result if the innernode happens to be an element. This means it will never contain anything when hittesting over text. This patch changes QWebHitTestResult::element() to instead return the inner element. Task-number: QTBUG-39591 Change-Id: Ic00f30d0b6429f2bcfb47f6e386be7d890d45bfb Reviewed-by: Michael Bruning <michael.bruning@digia.com>