Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49235

runJavaScript and UserScripts API should be adapted to the new snapshot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.7.0 Alpha
    • 5.7
    • WebEngine
    • None
    • febb6cf2d85c680271f5b0cebf8c7e54c805370f

      RenderFrameHost::ExecuteJavaScript(...) can only be called on chrome:// or chrome-devtools:// URLs, therefore our runJavaScript and UserScripts API are not working.

      How to reproduce the bug: try to run tst_qwebenginepage API test.

      [1104/083910:FATAL:render_frame_host_impl.cc(314)] Check failed: CanExecuteJavaScript().

      https://codereview.chromium.org/1123783002
      https://codereview.chromium.org/1258593002

      We should use RenderFrameHost::ExecuteJavaScriptInIsolatedWorld(...) or RenderFrameHost::ExecuteJavaScriptForTests(...) instead of the deprecated one.

        For Gerrit Dashboard: QTBUG-49235
        # Subject Branch Project Status CR V

            allan.jensen Allan Sandfeld Jensen
            davidsz Szabolcs David
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes