1. 14 Jun, 2017 - 1 commit
  2. 07 Jun, 2017 - 1 commit
    • Szabolcs David's avatar
      Fix copying JavaScript URLs · fa19227c
      Szabolcs David authored
      
      Wire unfiltered link URL to the API layer.
      
      [ChangeLog][QtWebEngine] linkUrl member of
      QWebEngineContextMenuData and ContextMenuRequest was previously
      returning with "about:blank" in case of non-standard URLs.
      Now it contains the unvalidated URL and CopyLinkToClipboard action
      has been fixed to handle such URLs (like javascript:) correctly.
      
      Task-number: QTBUG-59307
      Change-Id: I2e49767e1cc9ec8324d230c1bf346e21d7b8d9bb
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      fa19227c
  3. 24 May, 2017 - 1 commit
    • Viktor Engelmann's avatar
      Handle ViewHostMsg_Focus message from chromium · b0324c5e
      Viktor Engelmann authored
      
      Calling the method window.focus() in javascript causes chromium to send
      a ViewHostMsg_Focus message, which is received by RenderViewHost,
      which then calls RenderViewHost::OnFocus.
      This calls WebContentsDelegate::ActivateContents, which does
      nothing in the default implementation. We now override this method in
      WebContentsDelegateQt::ActivateContents and call Focus() on
      the WebContents object IF the new WebEngineSettings value
      AllowWindowActivationFromJavaScript is true (by default, it is false).
      This in turn calls QWebEnginePagePrivate::focusContainer.
      The WebEnginePage now calls QWidget::activateWindow() in addition
      to QWidget::setFocus, to make sure the window is also activated (which
      it might not be, if multiple windows are open).
      For the QML side, a new boolean Property
      allowWindowActivationFromJavaScript was added.
      
      Task-number: QTBUG-58800
      Change-Id: Iabf5d4d15236c77838a3886de81e9dafcaf49f5d
      Reviewed-by: default avatarJüri Valdmann <juri.valdmann@qt.io>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@qt.io>
      b0324c5e
  4. 17 May, 2017 - 1 commit
  5. 28 Apr, 2017 - 1 commit
  6. 04 Apr, 2017 - 1 commit
  7. 03 Apr, 2017 - 1 commit
  8. 28 Mar, 2017 - 1 commit
    • 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
  9. 22 Feb, 2017 - 2 commits
  10. 21 Feb, 2017 - 1 commit
  11. 09 Feb, 2017 - 1 commit
  12. 16 Jan, 2017 - 1 commit
  13. 11 Jan, 2017 - 1 commit
    • 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
  14. 10 Jan, 2017 - 1 commit
  15. 01 Dec, 2016 - 1 commit
  16. 25 Nov, 2016 - 2 commits
  17. 10 Nov, 2016 - 1 commit
    • Alexandru Croitor's avatar
      Fix select tag interaction when the web view is inside a modal dialog · 58467ed1
      Alexandru Croitor authored
      
      Previously when a QWebEngineView was inside a modal QDialog, trying to
      click on a select tag option did not properly select the option. It
      either focused the new option without closing the popup, or didn't
      focus it at all.
      
      Fix consists in making sure the newly created popup QWindow and
      RenderWidgetHostViewQtDelegateWidget are marked as children of the
      QWebEngineView, so that they are considered part of the current modal
      session by the OS, thus allowing user interaction with them.
      
      Because the ownership of the delegate widget should still be retained
      by its respective RenderWidgetHostViewQt instance, the QObject parent
      of the delegate is unset before the parent is destroyed.
      
      Also to make it work on macOS, the window attribute has to be set
      to Qt::Tool instead of Qt::ToolTip.
      
      Change-Id: I56d6f446254a624428a0c661ac3c49eb409c931e
      Task-number: QTBUG-54836
      Reviewed-by: default avatarQt CI Bot <qt_ci_bot@qt-project.org>
      Reviewed-by: default avatarMichael Brüning <michael.bruning@qt.io>
      58467ed1
  18. 08 Nov, 2016 - 1 commit
  19. 26 Oct, 2016 - 1 commit
  20. 01 Oct, 2016 - 1 commit
  21. 26 Sep, 2016 - 1 commit
  22. 31 Aug, 2016 - 2 commits
    • Michal Klocek's avatar
      Add context menu request to qml api · 3f73e471
      Michal Klocek authored
      
      Introduce qml APIs to support custom context menus.
      
      [ChangeLog][QtWebEngine][QML] Added ability to show custom
      context menu.
      
      Task-number: QTBUG-52554
      Change-Id: Ief0cbbbf221f4c6849e16bbba7417dccee59ad61
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      3f73e471
    • Michal Klocek's avatar
      Add dialog requests to qml api · 3cbe59e2
      Michal Klocek authored
      
      Introduce qml APIs to support custom dialogs:
       * http and proxy authentication
       * javascript dialogs
       * file pickers
       * color pickers
       * form validation messages
      
      [ChangeLog][QtWebEngine][QML] Added ability to provide custom dialogs
      for HTTP and proxy authentication, JavaScript alerts, file and color
      picking, and form validation messages.
      
      Task-number: QTBUG-51190
      Change-Id: I559ca59264750feb36ba7d3dba0bf0647509306d
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      3cbe59e2
  23. 24 Aug, 2016 - 1 commit
    • Michael Bruning's avatar
      Add widgets API for printing on a QPrinter · af253501
      Michael Bruning authored
      
      Renders the content to a PDF document and then renders this on a
      QPrinter-backed QPainter using the PDFium library.
      
      PDFium bitmap to QImage conversion based on work by Paulo Pinheiro
      <paulvap.os@gmail.com>.
      
      [ChangeLog][QtWebEngineWidgets][Printing] Enables printing QWebPage
      content on a QPrinter. Currently does not support previewing the
      document. Widgets only for the moment.
      
      Change-Id: I9a5264433093379aee90f5e4f69bf2aee8814f2b
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      af253501
  24. 23 Aug, 2016 - 1 commit
  25. 02 Aug, 2016 - 1 commit
  26. 14 Jul, 2016 - 1 commit
  27. 08 Jul, 2016 - 1 commit
    • Joerg Bornemann's avatar
      Allow QWebEnginePage::createWindow to return this · 38550156
      Joerg Bornemann authored
      Consider a QWebEnginePage subclass that does "return this;" in
      createWindow. Commit 1f07d292
      
       made this a no-op to prevent QtWebEngine
      from crashing. The reason for the crash was access to deleted memory
      after destroying the current adapter in adoptNewWindow.
        Defer the adoption in this case to whenever we hit the event loop
      again.
      
      Change-Id: I9674d80ef8b2f301c1446ff505b2486649451ba6
      Task-number: QTBUG-42216
      Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
      38550156
  28. 02 Jul, 2016 - 1 commit
  29. 01 Jul, 2016 - 2 commits
  30. 30 Jun, 2016 - 1 commit
  31. 22 Jun, 2016 - 1 commit
    • Allan Sandfeld Jensen's avatar
      Override short-cuts to common editor commands · e0bd650c
      Allan Sandfeld Jensen authored
      
      To ensure Chromium is given a chance to handle editor commands,
      we must override these short-cuts.
      
      On OS X we must also perform the action afterwards as these are not
      handled internally by the Blink Editor.
      
      The patch solves copy/paste in flash plugins and copy/paste on OS X
      when no application short-cuts have been defined. The handling of
      short-cut override events is based on how it was handled in Qt WebKit
      
      Task-number: QTBUG-54221
      Change-Id: I748671c7bfa5662aae16c6a4b9bbe5e2bce1b907
      Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@theqtcompany.com>
      e0bd650c
  32. 16 Jun, 2016 - 2 commits
    • Joerg Bornemann's avatar
      Introduce QWebEnginePage::save · 3398abfc
      Joerg Bornemann authored
      
      Add the convenience method QWebEnginePage::save for saving pages without
      the need to explicitly handle download requests.
      
      Task-number: QTBUG-51798
      Change-Id: I8910ce8cb7c9370d72f2b209c4d2de07c614f6d6
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      3398abfc
    • Joerg Bornemann's avatar
      Fix access to deleted memory on QWebEnginePage destruction · d5cde6f1
      Joerg Bornemann authored
      
      Suppose QWebEnginePage is destroyed while there's still a combobox popup
      open. We would crash with the following stack trace:
      
      1   QtWebEngineCore::RenderWidgetHostViewQt::dpiScale
      2   QtWebEngineCore::RenderWidgetHostViewQt::GetViewBounds
      3   content::RenderWidgetHostImpl::SendScreenRects
      4   content::RenderWidgetHostImpl::OnRenderViewReady
      ...
      16  base::MessageLoop::DoWork
      17  WebEngineContext::destroy
      18  `anonymous namespace'::destroyContext
      19  qt_call_post_routines
      20  QApplication::~QApplication
      
      RenderWidgetHostViewQt still holds a pointer to WebContentsAdapterClient.
      To fix this, expose the QObject owning the adapter client, and
      hide RenderWidgetHostViewQt when it is destroyed so it won't try to render.
      
      Change-Id: Ide5543197b35038a3e1c7491ceda3f5ad10f6f07
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      d5cde6f1
  33. 09 Jun, 2016 - 1 commit
  34. 26 May, 2016 - 1 commit
    • Alexandru Croitor's avatar
      Disabled WebEngine views should not receive focus. · 4c305cba
      Alexandru Croitor authored
      
      Currently if a QWebEngineView or a QQuickWebEngineView is disabled
      using setEnabled(false), after loading a web page, the views are
      automatically focused, and a user might see a blinking caret in an html
      input for example, even though the user can't interact with it.
      
      Fix consists in not calling the Focus() method whenever a view is
      disabled.
      
      Change-Id: I1014fb5898a5ddf01a4e9b14c3eaf5d4006e5131
      Task-number: QTBUG-53159
      Reviewed-by: default avatarMichal Klocek <michal.klocek@theqtcompany.com>
      4c305cba
  35. 06 May, 2016 - 1 commit