1. Jun 16, 2017
  2. Jun 09, 2017
  3. Jun 08, 2017
  4. May 30, 2017
    • Viktor Engelmann's avatar
      Store Target URL in WebContentsDelegateQt::WebContentsCreated · 93f9eed6
      Viktor Engelmann authored
      
      When opening a new window, for example by using the JavaScript
      method window.open('...'), the requested url is not stored
      in the content::WebContents object we get in
      WebContentsDelegateQt::createWindow (at this point, it should
      at least be stored as pending request in the WebContents'
      NavigationController, but it is not).
      
      Because of this, the QQuickWebEngineNewViewRequest object
      in QQuickWebEngineViewPrivate::adoptNewWindow never contained
      the url. We have access to the target url in
      WebContentsDelegateQt::WebContentsCreated, so now we store
      it there in a new property m_initialTargetUrl, from where
      WebContentsDelegateQt::createWindow takes it and passes it
      to WebContentsAdapter::adoptNewWindow as a new parameter.
      
      [ChangeLog][WebEngine] Fix WebEngineNewViewRequest::requestedUrl being empty when opening window from JavaScript
      
      Task-number: QTBUG-57675
      Change-Id: I7e2c7866899baade17ce2517e6be8b2b2709699e
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      93f9eed6
  5. May 17, 2017
  6. May 15, 2017
  7. May 08, 2017
  8. May 04, 2017
  9. Apr 25, 2017
  10. Apr 04, 2017
  11. Mar 30, 2017
  12. Mar 28, 2017
    • Florian Bruhin's avatar
      Call javaScriptConfirm for unload dialogs · 57fee86e
      Florian Bruhin authored
      
      This unfortunately means we lose the ability to customize the title with the
      default implementation, but it's still better than having a QMessageBox
      hardcoded without being able to customize this behavior at all.
      
      [ChangeLog][Qt WebEngineWidgets][QWebEnginePage] The javaScriptConfirm method is
      now also called for unload dialogs (onbeforeunload handlers).
      
      Task-number: QTBUG-58673
      Change-Id: I82393da2593dc84e94d577ff28f5d6d8988df552
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@qt.io>
      57fee86e
  13. Mar 27, 2017
  14. Mar 26, 2017
  15. Mar 21, 2017
  16. Mar 15, 2017
    • Michael Brüning's avatar
      Remove stale parent connection when initializing delegate as a child · 8e147ed3
      Michael Brüning authored
      
      When clicking on a blank link target, the constructor of the
      RenderWidgetHostViewQtDelegateWidget instance for the newly created
      view is called with the originating QWebEngineView as its parent
      and will connect its removeParentBeforeParentDelete slot to the
      originating view's destroyed signal.
      
      This leads to the situation where the delegate's parent will be set to
      null when the originating view is closed, causing the view to display
      only an empty widget with the actual web contents remaining live in
      the background.
      
      This patch removes the connection to the old view when initializing
      the delegate as a child of the QWebEnginePagePrivate instance. The
      addition to the layout updates the parent and child relationship
      between the view and the delegate internally.
      
      Task-number: QTBUG-58381
      Change-Id: I448380478c2bcfcfbddaee8a35caf46010e57972
      Reviewed-by: default avatarFlorian Bruhin <qt-project.org@the-compiler.org>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@qt.io>
      8e147ed3
  17. Mar 08, 2017
  18. Mar 07, 2017
  19. Feb 22, 2017
  20. Feb 21, 2017
  21. Feb 20, 2017
    • Alexandru Croitor's avatar
      Fix QWebEngineView::setFocus to properly set internal QQuickItem focus · a6c6665d
      Alexandru Croitor authored
      
      The widgets object hierarchy related to focus goes like this:
      QWebEngineView's focus proxy is ->
      RenderWidgetHostViewQtDelegateWidget, which has an internal
      QQuickRootItem defined by QQuickWidget, and the child of the item is ->
      RenderWidgetHostViewQuickItem.
      
      Previously when QWebEngineView::setFocus was called, the focus was set
      on the RenderWidgetHostViewQtDelegateWidget and the QQuickRootItem,
      but not on the RenderWidgetHostViewQuickItem. This caused for e.g.
      an active HTML text input not receiving focus.
      
      Make sure the RenderWidgetHostViewQuickItem is marked to have focus
      within its root item, so that if the root item receives active focus,
      so will RenderWidgetHostViewQuickItem receive it.
      
      Task-number: QTBUG-58515
      Change-Id: I175610e3dfebc03733aefe26c16f47096df8ff5b
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      a6c6665d
  22. Feb 10, 2017
  23. Feb 09, 2017
  24. Jan 20, 2017
  25. Jan 16, 2017
  26. Jan 12, 2017
  27. Jan 11, 2017
    • Viktor Engelmann's avatar
      Add methods to issue various types of HTTP requests · c4e1aa2c
      Viktor Engelmann authored
      
      Added class QWebEngineHttpRequest, which describes a
      GET or POST HTTP Request. Also added overloads of method
      "load" to QWebEngineView, QWebEnginePage and WebContentsAdapter,
      which issue such a request.
      These can be used for example to simulate form-submissions.
      
      Task-number: QTBUG-53314
      Task-number: QTBUG-53372
      Change-Id: I85ac8cdd3d1557905b35e3172b922aba356d1c41
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      c4e1aa2c
  28. Jan 10, 2017
  29. Dec 19, 2016
  30. Dec 07, 2016
    • Viktor Engelmann's avatar
      Add DownloadInterruptReason to Q(Quick)WebEngineDownloadItem · 6644981d
      Viktor Engelmann authored
      
      Add enum DownloadInterruptReason to BrowserContextAdapterClient,
      QWebEngineDownloadItem and QQuickWebEngineDownloadItem. Also add
      corresponding attributes to
      BrowserContextAdapterClient::DownloadItemInfo,
      QWebEngineDownloadItemPrivate and QQuickWebEngineDownloadItemPrivate
      as well as getters in QWebEngineDownloadItem and
      QQuickWebEngineDownloadItem and interruptReasonChanged signals.
      
      Task-number: QTBUG-56839
      Change-Id: I937c14ba0b0884b14ae18ba297024b76dde62605
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      6644981d
  31. Dec 01, 2016
  32. Nov 29, 2016
  33. Nov 25, 2016