1. Jul 19, 2017
    • Florian Bruhin's avatar
      Add method for triggering downloads · 0f20780d
      Florian Bruhin authored
      
      The method download(const QUrl &url, const QString &suggestedFileName)
      already exists in WebContentsAdapter. It is now accessible through a
      corresponding method in QWebEnginePage.
      
      [ChangeLog][QtWebEngineWidgets][QWebEnginePage] New QWebEnginePage::download()
      method to start custom downloads for a web page.
      
      Task-number: QTBUG-55944
      Change-Id: I185ec69c1668b377a129bc9fc09963278e52de1e
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      0f20780d
  2. Jul 17, 2017
  3. Jul 06, 2017
  4. Jun 26, 2017
    • Florian Bruhin's avatar
      Don't disable local storage for offTheRecord profiles · eaf6e205
      Florian Bruhin authored
      
      Chromium has local storage enabled in icognito windows, and simply doesn't
      persist it to disk. QtWebEngine seems to do the same when local storage is
      enabled in an off-the-record profile, so there's no reason to disable it by
      default.
      
      This also matches the behavior in Chromium (and Firefox, but not Safari).
      
      [ChangeLog] HTML 5 local storage is now enabled by default (but residing in
      memory) in off-the-record profiles.
      
      Change-Id: I0cb7e946575a53471ffed9d3324b3ae4c2e80eee
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      eaf6e205
    • Jüri Valdmann's avatar
      Always compile QWebEnginePage::print · 085c2c52
      Jüri Valdmann authored
      
      - Remove two out of five layers of ifdefs around and inside this method.
      - Now always compiled but will yield an error if printing is disabled.
      - Remove printing-related ifdefs from demobrowser.
      
      Task-number: QTBUG-61510
      Change-Id: I79781189d3d3fb62db0a2216b2b989e3fa1d1f86
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      Reviewed-by: default avatarRolf Eike Beer <eb@emlix.com>
      085c2c52
  5. Jun 23, 2017
  6. Jun 16, 2017
  7. Jun 14, 2017
  8. Jun 09, 2017
  9. Jun 07, 2017
    • 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
  10. 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
  11. May 24, 2017
    • 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
  12. May 17, 2017
  13. May 15, 2017
  14. May 08, 2017
  15. May 04, 2017
  16. Apr 28, 2017
  17. Apr 04, 2017
  18. Apr 03, 2017
  19. 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
  20. Mar 27, 2017
  21. Mar 26, 2017
  22. Mar 21, 2017
  23. Mar 08, 2017
  24. Mar 07, 2017
  25. Feb 22, 2017
  26. Feb 21, 2017
  27. Feb 09, 2017
  28. Jan 16, 2017
  29. Jan 12, 2017
  30. 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
  31. Jan 10, 2017
  32. Dec 19, 2016
  33. 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
  34. Dec 01, 2016
  35. Nov 25, 2016