1. 28 Oct, 2014 - 1 commit
  2. 07 Oct, 2014 - 1 commit
  3. 12 Sep, 2014 - 1 commit
  4. 05 Sep, 2014 - 1 commit
    • Peter Varga's avatar
      Fix url stored in LoadRequest · daf3a688
      Peter Varga authored
      
      The test_urlProperty() qml test has failed because the active url was
      stored in LoadRequest in case of LoadFailedStatus.
      With this fix the loadRequest stores the url of that page which implies
      the request.
      
      Change-Id: I6aab814a4a7d3b47043b03fccde3d9995b40d8fa
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      daf3a688
  5. 02 Sep, 2014 - 2 commits
    • Pierre Rossi's avatar
      Don't forward loading of error pages to the API layer · ede95c2a
      Pierre Rossi authored
      
      The fact that the error pages are HTML and get loaded through the
      same mechanism should be kept an implementation detail and not be
      considered as a new load in the API sense.
      Also implement HasErrorPage for good measure and remove an anoying
      warning from the demo browser.
      
      The issue of the url not being changed remains in the QML test (but
      it doesn't affect a typical browser-like UI since the user input is
      still there untouched in the address bar), just make sure that failure
      does not affect the later checks. It also seems like we have a focus
      problem somehow, but the test should probably use a click for that
      matter.
      
      Change-Id: Ib5e363981a11287fdf4bfe84b93c999d96ed8087
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      ede95c2a
    • Pierre Rossi's avatar
      Settings for Qt quick · 33a0ed37
      Pierre Rossi authored
      
      Expose settings in experimental for now.
      Simply use the global/per-view mechanism as a group level
      in between seems like overkill.
      
      Change-Id: I7610e9c7765ccb41674702acdd24a52b87716da8
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      33a0ed37
  6. 29 Aug, 2014 - 1 commit
  7. 28 Aug, 2014 - 1 commit
  8. 21 Aug, 2014 - 1 commit
  9. 20 Aug, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Propagate the page's screen coordinates when the top-level window moved · 7717f941
      Jocelyn Turcotte authored
      
      This fixes a regression after the 37 upgrade where the select popups
      would have the wrong position. Adjust to the new behavior and also
      avoid doing a mapToGlobal of the position received in InitAsPopup.
      
      RWHV::SetBounds has been giving us screen coordinates since the
      Chromium 33 update, but popup locations somehow managed to work
      properly through some side-effect sorcery.
      
      This also fixes the value of window.screen[XY] in JavaScript which
      wasn't updated when the window was moved.
      
      Change-Id: I544499bafedccfb7d389b4abc48f1386c398473f
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      7717f941
  10. 09 Aug, 2014 - 1 commit
    • Pierre Rossi's avatar
      Ground work for Settings/Preferences · 37fcb151
      Pierre Rossi authored
      
      Core interface to expose toggling some of the WebPreferences
      for now and most probably some of the WebRuntimeFeatures soon.
      
      The whole dummy settings business is meant to keep things
      from breaking too much when bisecting, because it is assumed
      that there are always valid settings for a given adapterClient.
      
      Change-Id: Ic0a62bcb5af8c0254436dc770b43cde5016c3bbd
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@digia.com>
      37fcb151
  11. 07 Aug, 2014 - 1 commit
  12. 06 Aug, 2014 - 2 commits
  13. 04 Aug, 2014 - 2 commits
    • Pierre Rossi's avatar
      Expose better error information in loadRequest. · 7d90b441
      Pierre Rossi authored
      
      Use the chromium localized error strings for that purpose, otherwise the
      error description is always empty.
      
      While we're at it, let's tap into the chromium error pages, which should
      hopefully make sense for most errors, and add some static asserts to
      check that the qt quick enum and the core one are in sync.
      
      Change-Id: Icf8fa7c3bf4a674c60a10950422135fb6930447a
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      7d90b441
    • Jocelyn Turcotte's avatar
      Don't inherit from Qt private types · 1c2a4da1
      Jocelyn Turcotte authored
      
      Do the d_ptr magic ourselves to avoid having to include private
      headers from qtcore, qtgui and qtdeclarative.
      
      It is hackish to hide QObject's d_ptr member to have the macros
      working in a public class, but if anything goes wrong we just
      need to replace the private macro convenience while maintaining
      the binary compatibility of the stored extra opaque pointer.
      
      Change-Id: Idb92f4f902826bef9068a5c2ef6ea31fc3fa15b2
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      1c2a4da1
  14. 01 Aug, 2014 - 5 commits
  15. 26 Jul, 2014 - 1 commit
  16. 09 Jul, 2014 - 1 commit
    • Frederik Gladhorn's avatar
      Add core accessibility · a9853701
      Frederik Gladhorn authored
      
      This commit adds the basics to bridge the blink
      accessibility classes to QAccessibleInterfaces.
      
      Note that it needs two follow up commits to implement the bridging from
      the QWidget/Qt Quick worlds.
      
      [ChangeLog][Accessibility] QtWebEngine now has accessibility
      support, enabling assistive technology such as screen readers to work
      with it.
      
      Change-Id: Ied1d97e61a024115ac7a9245331211f6d9fac1b4
      Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      a9853701
  17. 07 Jul, 2014 - 1 commit
    • Frederik Gladhorn's avatar
      Fix requests for audio and video permissions · 02cbb1d1
      Frederik Gladhorn authored
      
      Requesting MediaAudioCapture would unconditionally ask for
      QQuickWebEngineViewExperimental::MediaAudioVideoDevices instead of
      MediaAudioDevices since the if wrongly tested for the same condition
      twice.
      
      In addition fix a warning: variable 'feature' is used uninitialized whenever 'if' condition is false
      
      api/qquickwebengineview.cpp:369:13: warning: variable 'feature' is used uninitialized whenever 'if' condition is false
            [-Wsometimes-uninitialized]
         else if (requestFlags.testFlag(WebContentsAdapterClient::MediaVideoCapture))
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      api/qquickwebengineview.cpp:371:57: note: uninitialized use occurs here
         Q_EMIT e->featurePermissionRequested(securityOrigin, feature);
                                                              ^~~~~~~
      api/qquickwebengineview.cpp:369:9: note: remove the 'if' if its condition is always true
         else if (requestFlags.testFlag(WebContentsAdapterClient::MediaVideoCapture))
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      api/qquickwebengineview.cpp:364:4: note: variable 'feature' is declared here
         QQuickWebEngineViewExperimental::Feature feature;
         ^
      
      Change-Id: If63fbb5a59a71dede1d1829695f66c22849a4dcd
      Reviewed-by: default avatarMichael Bruning <michael.bruning@digia.com>
      02cbb1d1
  18. 12 May, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Remove the xPath argument from runJavaScript · 55f1130b
      Jocelyn Turcotte authored
      
      This value is only used internally by Chromium and risks being removed
      at anytime, for which we would then have to maintain a downstream
      implementation.
      
      Chromium also only supports frame values, while a complete support of
      the interface would require also supporting this xPath to point to
      individual document element by affecting the value of "this", the same
      way that QWebElement::evaluateJavaScript allowed in QtWebKit.
      
      Change-Id: Id0cb1b8e3bdf9a6db0ca786fb5eb46ffd726d165
      Reviewed-by: default avatarMichael Bruning <michael.bruning@digia.com>
      55f1130b
  19. 09 May, 2014 - 1 commit
  20. 08 May, 2014 - 1 commit
  21. 05 May, 2014 - 1 commit
  22. 29 Apr, 2014 - 1 commit
  23. 25 Apr, 2014 - 1 commit
  24. 15 Apr, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Fix how NewPopupDisposition is exposed in QQuickWebEngineView · 4d1d3302
      Jocelyn Turcotte authored
      
      I initially misintepreted the meaning of the enum, assuming that it
      meant that the window should possibly be blocked. The user_gesture
      parameter in WebContentsDelegate::AddNewContents is actually doing
      this, while the popup disposition means that JavaScript requested
      the window to be opened without one of the standard decoration (i.e.
      status bar, menu bar, tool bar, etc.).
      
      Update the QtQuick API to reflect this, renaming the "isPopup"
      parameter to a more familiar "isUserInitiated".
      
      The popup disposition is named "dialog" to match the previous
      QWebPage::WebModalDialog enum.
      
      Change-Id: Ib0c4bc53671fcf0dd9499aa1be2bbc8c494ba49e
      Reviewed-by: default avatarMichael Bruning <michael.bruning@digia.com>
      4d1d3302
  25. 14 Apr, 2014 - 1 commit
  26. 08 Apr, 2014 - 3 commits
  27. 03 Apr, 2014 - 1 commit
  28. 01 Apr, 2014 - 1 commit
    • Pierre Rossi's avatar
      Make WebUI popups work with QtQuick · c5431da0
      Pierre Rossi authored
      
      This is used by popups for select elements and date pickers among
      other things. We can keep using the same RenderWidgetHostViewQtDelegate
      implementations for that purpose, and query QPA to decide if they
      should be wrapped into their own QQuickWindow.
      
      Longer term, we might want to optionally delegate that functionality
      to QML.
      
      Change-Id: I88540ca32a9a707d380dfbf486b7f7806b5b65ff
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      c5431da0
  29. 21 Mar, 2014 - 1 commit
    • Jocelyn Turcotte's avatar
      Base load signals on Blink loader events · f06cb10c
      Jocelyn Turcotte authored
      
      This mainly remove the use of the LoadingStateChanged callback, which
      is tied to DidStartLoading and DidStopLoading.
      Those signals are handled from the browser process side, also wrapping
      the time where the render process is initialized. We can't rely on
      those signals for loadStarted, but afterward rely on the Blink loader
      for loadFinished. We must use the same source for both.
      
      Instead only rely on Blink callbacks ultimately related to network
      events. This gives us a behavior closer to QtWebKit.
      
      The major compromise that this forces us to to accept is that
      loadStarted is now triggered asynchronously. This will basically break
      anything expecting loadStarted to be emitted synchronously from the
      load method.
      
      This also adjust autotests to get a few more passing.
      
      Initial-patch-by: default avatarPierre Rossi <pierre.rossi@digia.com>
      Change-Id: Ib6c0170df891d1b7f8ed4dc1d483985523e267dc
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      f06cb10c
  30. 20 Mar, 2014 - 1 commit
  31. 13 Mar, 2014 - 1 commit
    • Szabolcs David's avatar
      Fix focus in Quick API · c47bc798
      Szabolcs David authored
      
      The forceActiveFocus() doesn't work in the QML tests.
      
      We need to call forceActiveFocus() in RenderWidgetHostViewQtDelegateQuick
      instead of the one in WebEngineView. To make this work, I replaced RWHV
      with QQuickWebEngineView in the focus chain.
      
      This is necessary in order to extend tst_loadUrl QML test with
      urlProperty test case.
      
      Change-Id: Ifba0c824a7ce9f00d328110233402d3563f967aa
      Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      c47bc798