1. Feb 13, 2018
    • Jüri Valdmann's avatar
      Fix javascriptCanPaste NOTIFY signal · 16832db4
      Jüri Valdmann authored
      
      Change-Id: Ic3f1e11f42f26e7800524dd88f707200ef3b7705
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      16832db4
    • Jüri Valdmann's avatar
      Add support for registerProtocolHandler · 2a4a5b2e
      Jüri Valdmann authored
      
      Extend initialization of URLRequestContextGetterQt to create a
      content::ProtocolHandlerRegistry for each content::BrowserContext and add the
      registry's URL request interceptor to the front of the interceptor chain.
      
      Implement methods in WebContentsDelegateQt to add/remove protocol handlers
      to/from the ProtocolHandlerRegistry.
      
      Add permission request signal and classes for core, quick and widgets.
      
      Add widgets autotest.
      
      Add signal handlers to quicknanobrowser and simplebrowser.
      
      Task-number: QTBUG-62783
      Change-Id: I808e7eb9a1cb4d7216686deed4895de14fe46310
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      2a4a5b2e
  2. Feb 03, 2018
  3. Feb 02, 2018
  4. Jan 31, 2018
    • Michal Klocek's avatar
      Fix crashes of url load qml tests · 7644564d
      Michal Klocek authored
      
      Currently we can get QuickWebEngineViewPrivate::loadFinished
      while still being in RenderFrameHostImpl::OnDidStopLoading,
      unfortunately if user connects onLoadingChanged signal
      with new url load request this will end up in DiscardUnusedFrame
      and delete on RenderFrameHostImpl which is still on the bottom of
      the stack. Use QTimer::singleShot to return to the event loop
      before emitting load handling signals.
      
      Post all load handling calls with singleShot to avoid out of order
      load "signals" delivery in some cases.
      
      Emitting signals should be done from WebContentsAdapterClient to
      make sure the destruction of WebConentAdapterClient prevents
      emitting signals on already deleted adapter.
      
      Task-numbmer: QTBUG-65813
      Change-Id: I93263876fb14bd959ba951463c8aeb5155f04a4f
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      7644564d
  5. Jan 25, 2018
  6. Jan 15, 2018
  7. Jan 02, 2018
    • Jüri Valdmann's avatar
      Deprecate download type · 7219986a
      Jüri Valdmann authored
      
      This patch removes the download type property from QtWebEngineCore and replaces
      it with a simple boolean 'isSavePageDownload'. On the public API boundary the
      type property is reimplemented via this boolean and documented as obsolete.
      
      Rationale being that
      
        1. This feature seems to lack practical use cases, other than perhaps
           distinguishing save-page downloads from normal file downloads, which can be
           done in a much simpler way.
      
        2. This feature does not work as documented and never has. So far nobody has
           complained, hinting again at a lack of practical use cases.
      
        3. In order to fix it we would need to maintain patches on top of Chromium and
           Blink (we would, for example, need to propagate the DownloadAttribute type
           from Blink to Chromium to WebEngine).
      
      [ChangeLog][Deprecation Notice] (QWebEngine)DownloadItem::type() is deprecated
      and replaced with the newly introduced isSavePageDownload() property.
      
      Task-number: QTBUG-62640
      Change-Id: Icf4e1e5a635028986df7eab979f4c0527902ff0c
      Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
      7219986a
  8. Dec 21, 2017
  9. Dec 06, 2017
  10. Nov 29, 2017
  11. Nov 07, 2017
  12. Nov 03, 2017
  13. Nov 02, 2017
  14. Oct 25, 2017
  15. Oct 20, 2017
  16. Oct 05, 2017
    • Szabolcs David's avatar
      Implement geometryChangeRequested signal in the Quick API · 4c1cde9a
      Szabolcs David authored
      
      Chromium includes the size of the frame in the requested geometry,
      but QWindow::setGeometry() and the related properties of QML Window
      expect a size without frame. This patch
       - fixes the geometry handling in Demobrowser example.
       - implements a new signal in the QML API which sends both frameless
      and extended geometries to the application, because QML doesn't have
      capability to determine the size of the frame and handle extended
      geometry correctly.
      
      Task-number: QTBUG-51181
      Change-Id: I8595593aecca33d7cd46986c7abbad0cc7c18ec2
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      4c1cde9a
  17. Sep 26, 2017
  18. Sep 21, 2017
  19. Sep 20, 2017
  20. Sep 18, 2017
    • Viktor Engelmann's avatar
      Add Setting to allow passing unknown URL schemes to QDesktopServices · 49c0ce84
      Viktor Engelmann authored
      
      A new enum UnknownUrlSchemePolicy was added to WebEngineSettings,
      QWebEngineSettings and QQuickWebEngineSettings.
      WebContentsDelegate now has a new attribute of that type, which can
      be read and written through the public APIs
      Q(Quick)WebEngineSettings::unknownUrlSchemeNavigationPolicy and
      Q(Quick)WebEngineSettings::setUnknownUrlSchemeNavigationPolicy.
      
      This way, one can control, whether URLs with unknown schemes are passed
      to QDesktopServices. WebContentsAdapterClient::navigationRequested is
      called on these requests, so this allows more fine-grained control
      over the schemes and origins, that are allowed.
      
      Task-number: QTBUG-58627
      Change-Id: Ie81d9503456d63ea1ed5606483254acf437cd8f7
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      49c0ce84
  21. Sep 14, 2017
  22. Sep 13, 2017
  23. Sep 12, 2017
  24. Sep 08, 2017
    • Oleg Yadrov's avatar
      Make FocusOnNavigationEnabled setting disabled by default · f32b3514
      Oleg Yadrov authored
      
      Before this setting was added in Qt 5.8, the behavior was that
      QWebEngineView/WebEngineView got the focus automatically. With the new
      setting added it is configurable, but it was left enabled for
      compatibility reasons. It would had to be changed at some point anyway:
      none of other QML items or widgets grab the focus after creation, so why
      would QWebEngineView/WebEngineView do?
      This patch also fixes a bug with the text cursor in WebView (the cursor
      was blinking as if WebView had the focus when it did not).
      
      [ChangeLog][Important Changes][QtWebEngine][General]
      focusOnNavigationEnabled setting which allows controlling whether
      a web view will receive focus on a navigation request is now disabled
      by default.
      
      Task-number: QTBUG-60152
      Task-number: QTBUG-60149
      Change-Id: I78dc9bb9ffc70bf06217952acd456b97651c5185
      Reviewed-by: default avatarQt CI Bot <qt_ci_bot@qt-project.org>
      Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
      v5.10.0-alpha1
      f32b3514
  25. Aug 31, 2017
    • Peter Varga's avatar
      Add auto tests for MultipleMouseClickHelper · 656b7fdd
      Peter Varga authored
      
      Qt WebEngine implements a custom handler for multiple mouse clicks.
      These tests are intended to test whether the mouse click events are
      properly forwarded to the Chromium's RenderWidgetHost.
      Custom mouse click test functions have been also added for the custom
      mouse click handler.
      
      Change-Id: Ifdc7d09f5e0f0f76c37e137e5743482bf3fb8abb
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      656b7fdd
  26. Aug 30, 2017
    • Viktor Engelmann's avatar
      Add https to list of internal schemes · 2710c66f
      Viktor Engelmann authored
      
      Since https is an internal scheme, it should be in this list of
      internal schems.
      This also prevents custom custom QWebEngineUrlSchemeHandlers to
      register "https". Although it is debatable whether this is necessary,
      https should be held to at least the same security standards as http,
      which is also in that list.
      
      Task-number: QTBUG-56894
      Change-Id: I83d0130541fe3b5831bf29d429bad89a8fc5408c
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      2710c66f
  27. Aug 04, 2017
  28. Aug 02, 2017
  29. Jul 19, 2017
  30. Jul 17, 2017
  31. Jul 06, 2017
  32. 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
  33. Jun 23, 2017
  34. Jun 22, 2017
  35. Jun 19, 2017
    • Allan Sandfeld Jensen's avatar
      Avoid using string constructor of QJSValue for byte-array · 0c3542eb
      Allan Sandfeld Jensen authored
      
      We were returning the PDF byte-data as a javascript unicode string using
      the deprecated ascii cast constructor.
      
      This patch changes the behavior to match that of runJavaScript callbacks
      and uses a script value over QVariant.
      
      [ChangeLog][QtWebEngine] The callback version of WebEngineView::printToPdf
      is now called with a proper bytearray result instead of PDF byte data
      in a javascript string.
      
      Change-Id: I71565623465c54052568bb5ff34665baaa93e187
      Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
      0c3542eb
  36. Jun 14, 2017