summaryrefslogtreecommitdiff
path: root/Source/WebKit
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Fix build with QT_NO_GRAPHICSVIEWSergio Martins2014-02-092-0/+6
| | | | | | | | | | Change-Id: Ia909a560db58d6cdc6ec4bbac879249eb5e286ef Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
| * Update device pixel ratio on screen changeAllan Sandfeld Jensen2014-02-075-6/+40
| | | | | | | | | | | | | | | | | | This patch makes QWebPage listen to QWindow::screenChangedEvent and update the device pixel ratio when it is received. Task-number: QTBUG-36190 Change-Id: Ia28571ef241a3a2f970876f6e474b01c1ac001e1 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
| * TextureMapperGL must take hiDPI transform into accountAllan Sandfeld Jensen2014-02-061-1/+10
| | | | | | | | | | | | | | | | | | | | Since TextureMapperGL does its own native rendering it must itself apply the all transforms QPainter would normally do behind the scenes. Task-number: QTBUG-36508 Change-Id: Id4a0ee64ff7ac5c5cb51e45ffd2e4e25ed7fce74 Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
| * Forward devicePixelRatio to WebCore PageAllan Sandfeld Jensen2014-01-313-0/+7
| | | | | | | | | | | | | | | | | | The device pixel ratio must be set on Page for CSS image set and CSS media queries to work correctly. Task-number: QTBUG-36190 Change-Id: I76694c1375194f35df7f62e942bc8565f065a3bc Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* | Make indexed database follow Qt web settings if enabledAllan Sandfeld Jensen2014-01-163-14/+27
|/ | | | | | | | | | | | | Forwards the websettings for offline database storage which so far has been used for web SQL database to indexed database. Note that this does not add new API and does not make it possible to control web sql database and indexed database separately. The patch also adds a config test for leveldb which indexed db requires. Change-Id: I8808356c9910848c43c5f47e6279a1c632f17ad1 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* [Qt] Re-enable plugins on Mac.Jocelyn Turcotte2014-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=116622 Reviewed by Tor Arne Vestbø. Source/WebCore: * platform/FileSystem.h: * platform/qt/FileSystemQt.cpp: (WebCore::unloadModule): - Q_WS_* aren't defined since Qt5, use Q_OS_MACX instead. * plugins/mac/PluginPackageMac.cpp: (WebCore::PluginPackage::fetchInfo): (WebCore::PluginPackage::load): - createCFString now does the adoption itself. * plugins/mac/PluginViewMac.mm: - Add missing include. Source/WebKit/qt: * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::windowResizerRect): - Add missing parenthese. Tools: Plugins on Mac were only enabled if !embedded but the later was set if QPA is enabled, which is the default since Qt 5.0. Remove references to 'embedded' and fix various build issues, PluginViewMac.mm and PluginPackageMac.cpp haven't been compiled since a few months. * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * qmake/mkspecs/features/features.prf: * qmake/mkspecs/features/unix/default_pre.prf: Task-number: QTBUG-35899 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151109 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I49692a234a66c205099c5dde8eb24ffb6eadba0f Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Do not accept all touch eventsAllan Sandfeld Jensen2013-12-203-9/+15
| | | | | | | | | | | | | | | | QtWebKit currently accepts all touch events to prevent the lack of accept on a TouchBegin from preventing receiving TouchUpdate and TouchEnd. This behavior prevents QGuiApplication from converting touch events to mouse events, and makes the WebView widget impossible to interact with by touch. This patch modifies the behavior slighly so that QtWebKit only accepts touch events if they are needed for the active document. Task-number: QTBUG-31938 Change-Id: Iba80ebfaf31c93f82356e3f0622039120921172a Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Remove superfluous assert from WebKitQmlPlugin::initializeEngineMichael Brüning2013-12-021-1/+1
| | | | | | | | | The uri parameter is unused in this method and the ones called by it, so it should not be asserted on. Task-number: QTBUG-34066 Change-Id: I184fbad3e6e3d4786b4cc4e9f768f1c006309295 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Account for when the QGraphicsView is a top level widgetv5.2.0-rc1Andy Shaw2013-11-251-1/+4
| | | | | | | | | | | | | | When the QGraphicsView was a top level widget then it would not account for the transformations as it did not translate the point from the scene to the view. [ChangeLog][QtWebKitWidgets][QGraphicsWebView] Make sure that mouse events for QGraphicsWebView items in a top level QGraphicsView. Task-number: QTBUG-32179 Change-Id: I2c26580a7e7e5eaec08d71768298e961d3e9d13b Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Trigger layout after resizing the FrameView.Michael Brüning2013-11-161-0/+3
| | | | | | | | | | | | | | There are problems with QGLWidget based web plugins due to the fact that WebKit forces us to relayout during paint events, which in turn might resize widgets, causing the shared backing store's QImages to be corrupted and hence causing crashed. This patch triggers a layout upon resizing the FrameView, which reduces the likely hood of resizing plugins during a subsequent paintEvent. Task-number: QTBUG-34277 Change-Id: Id35c72a3cc68ac6633a74fba0669c2d8fbfabc88 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>