summaryrefslogtreecommitdiff
path: root/Source/WebKit
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* 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>
* 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>
* 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>
| * Prevent crashes when the QWebView gets reparented.Michael Brüning2014-06-241-1/+1
| | | | | | | | | | | | | | | | | | Wrap the QWindow pointer in a QPointer so it gets set to NULL when the QWindow gets deleted without notification. Task-number: QTBUG-39524 Change-Id: I7c8fbe0f6f1921a7b48c58dc502d6a0a3409d084 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
| * Doc: Added detailed description for WebViewstableVenu2014-06-162-0/+1
| | | | | | | | | | | | | | | | | | | | | | Moved the description from the overview page to the WebView type documentation. Also added an image corresponding to the snippet used. Task-number: QTBUG-36179 Change-Id: Iaf4207a36f774d93af9a881eae2162d44837eeee Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Merge remote-tracking branch 'origin/5.3' into devSergio Ahumada2014-06-145-10/+24
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I8b5c89466108ab0302cd1841f0781471aefeb113
| * CopyLinkToClipboard should copy the URL onlyAllan Sandfeld Jensen2014-06-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The addition of title information to the dragged or copied links, has caused the clipboard after CopyLinkToClipboard to paste the link title instead of the link URL when doing a simple paste. This paste removes the title from the MimeData so that QMimeData must return the text version of the URL when pasting text. Task-number: QTBUG-39341 Change-Id: Ia28ea0f0eda07a4133c5628b60db624a16ed9931 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
| * Deploy QML plugin type information to correct directory.Michael Brüning2014-05-162-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds the plugins.qmltypes file to the list of files that are deployed to the qml/QtWebKit directory. This is needed e.g. for auto-completion in Creator. Patch co-authored with Fawzi Mohamed. Task-number: QTBUG-39013 Change-Id: Icce9a168a0558652b810ad16c89895e24a6fc6ef Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
| * Fix animation errors with radio buttons and checkboxes on Windows.Michael Brüning2014-05-141-0/+3
| | | | | | | | | | | | | | | | | | | | The QWindowsVistaStyle used the animation state of the control's style object. Since this is the QWebView for controls used in QtWebKit, this leads to unpredictable painting behavior. Task-number: QTBUG-30072 Change-Id: I1ba572bfbf56745b8e85fd631a596c43aa2ba25a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
| * Fix leak of QSensors on QWebPage creationAllan Sandfeld Jensen2014-05-092-7/+16
| | | | | | | | | | | | | | | | | | The WebCore page supplements are not deleted when the page is, so we need to track them in QWebPageAdapter and delete them there. Task-number: QTBUG-38857 Change-Id: Ib3e41074de3bebf00f017523d28efc1c923250f3 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-04-112-4/+4
|\ \ | |/ | | | | Change-Id: I42fb7e064fa7cfedf97d0436d406cb379c846ea5
| * Fix warnings found by the headerclean testThiago Macieira2014-04-022-4/+4
| | | | | | | | | | | | | | Extra semi-colons at the end of lines, arguments shadowing members, etc. Change-Id: I8163ed42da31b6a5bb37a56d8cf4c7b2e32139d3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devIikka Eklund2014-04-011-3/+4
|\ \ | |/ | | | | Change-Id: If269e1ff5b01c01e4168f5ef43e7346253cc837b
| * Set image drag hotspot from drag image origin.Allan Sandfeld Jensen2014-03-281-3/+4
| | | | | | | | | | | | | | | | | | | | | | QtWebKit does not currently set the drag image origin, this cause any dragged image to always visibly jump as soon as the drag start. By setting the hotspot any dragged image will start at its origin and only move when then the mouse moves. Change-Id: I6cdfa1bdbcf79a63f26fc62442978f65aabd493b Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-03-249-51/+23
|\ \ | |/ | | | | Change-Id: I633b40f8083ed0a056df5effaf19cf22e2f9a5d9
| * Doc: Put \qtvariable in module page backv5.3.0-beta1Sergio Ahumada2014-03-211-0/+1
| | | | | | | | | | | | | | | | | | It was removed by d441d6f39bb846989d95bcf5caf387b42414718d for some reason. Change-Id: I333cf71dc5bf69b3a1f5aa04f5089e9fbd617c6b Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
| * Fix static buildsAllan Sandfeld Jensen2014-03-191-0/+2
| | | | | | | | | | | | | | | | | | Disable WebKit2 since WTF from qtdeclarative conflicts with ours, and renable use of thin archives for static builds, except only use it for the intermediate staticlibs. Change-Id: Iee625c5d25f01d1700d4c89028578e4d1288e2ba Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
| * Fix a documentation oversightPierre Rossi2014-03-171-2/+2
| | | | | | | | | | | | | | | | | | We had forgotten a few substitutions in the process it would seem. Change-Id: I37297c39bea84b0d277784edb80e72eab8de7ca7 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
| * Fix doc warningsJocelyn Turcotte2014-03-177-49/+18
| | | | | | | | | | | | | | | | | | | | - Qt for Embedded Linux Requirements isn't available since Qt5 - NOTIFY signal documentations are now ignored and are part of their property - The QtQuick1 WebView code isn't available anymore - Adjust to other renamed and removed pages Change-Id: Ife04becb1a847fb0bfb11dfafa6db2caa36aa9f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devSergio Ahumada2014-03-118-8/+51
|\ \ | |/ | | | | Change-Id: Iaf17b7c575252c72104fc8aa234b3fde81853c80
| * Fix missing image in QWebView class documentation.Michael Brüning2014-03-102-1/+1
| | | | | | | | | | | | | | | | | | | | Add a current image of a QWebView showing the Qt Project Homepage previewed in Qt Creator. Task-number: QTBUG-37208 Change-Id: Iedfee6965aa0ef35ba2a532a937e8054c4a0a9d5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com> Reviewed-by: Michael Bruning <michael.bruning@digia.com>
| * Fix documentation of the selector APIAllan Sandfeld Jensen2014-03-103-5/+22
| | | | | | | | | | | | | | | | | | | | | | We support all CSS selectors WebKit supports since the methods map internally to the DOM Selectors API. We should therefore update the documentation to claim more than CSS2 selector support. Task-number: QTBUG-37208 Change-Id: I4eae7c897f13bbb17221995ef764020d9341d1f8 Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
| * Avoid deleting QtWebComboBox it's own nested QEventLoopAllan Sandfeld Jensen2014-03-043-2/+28
| | | | | | | | | | | | | | | | | | | | A race condition meant that sometimes a QtWebComboBox would be deleted in an eventloop run while hiding itself. This patch adds a flags and delays scheduling a deletion until after the nested eventloop. Task-number: QTBUG-29844 Change-Id: Ia5e03954756afa29c0be0a2d7f49ae8d1dbba250 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* | When checking if relative URL is local, take baseUrl into accountDmitry Shachnev2014-03-101-0/+3
|/ | | | | | | | | | | Links with empty schemes (href="file.html") or anchored links (href="#someid") should now be treated as local links if base url is local. See <https://bugs.webkit.org/show_bug.cgi?id=94360>. Change-Id: I31e254ad7341bd54965c91d2e9dd2fbff7a99776 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-02-127-3/+59
|\ | | | | | | Change-Id: Iea6cf3f34fb33f2d138b72243b0e688958d9424e