1. Feb 13, 2018
  2. Feb 02, 2018
    • Kai Koehne's avatar
      Expose JavascriptCanPaste attribute · 0cc07329
      Kai Koehne authored
      
      Expose an attribute to enable the execCommand("paste") functionality,
      which is by default disabled due to security concerns.
      
      [ChangeLog][General] Added JavaScriptCanPaste attribute that
      enables JavaScript 'execCommand("paste")'.
      
      Task-number: QTBUG-64056
      Change-Id: I1a414021e020473dd15946fff91fb103d871e961
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      0cc07329
  3. Nov 29, 2017
  4. Nov 02, 2017
  5. Sep 26, 2017
  6. Sep 20, 2017
  7. 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
  8. Aug 02, 2017
  9. 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
  10. Dec 19, 2016
  11. Dec 01, 2016
  12. Sep 22, 2016
  13. Aug 28, 2016
  14. Aug 09, 2016
    • Alexandru Croitor's avatar
      Add focusOnNavigationEnabled setting · 6534b090
      Alexandru Croitor authored
      
      The focusOnNavigationEnabled setting allows changing the behavior of
      whether a WebEngine view (widget or quick) will automatically get
      focus, whenever a navigation action happens (load, reload, previous
      history entry, etc).
      The default behavior before this patch was to always grab the focus.
      
      [ChangeLog][QtWebEngine][General] Add focusOnNavigationEnabled setting
      which allows controlling whether a web view will receive focus on a
      navigation request. Previously the view always received the focus.
      
      Task-number: QTBUG-52999
      Change-Id: I6d30d973a41b53011131f21dcecbf6ec4d652759
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      6534b090
  15. May 13, 2016
  16. May 02, 2016
  17. Mar 25, 2016
  18. Mar 03, 2016
  19. Feb 05, 2016
  20. Feb 01, 2016
  21. Dec 02, 2015
  22. Nov 16, 2015
  23. Oct 23, 2015
  24. Aug 26, 2015
  25. Jul 24, 2015
  26. Jul 17, 2015
  27. Mar 30, 2015
  28. Mar 02, 2015
  29. Feb 16, 2015
  30. Feb 05, 2015
  31. Nov 20, 2014
  32. Nov 18, 2014
  33. Oct 14, 2014
  34. Sep 02, 2014