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

runJavaScript and UserScripts API should be adapted to the new snapshot

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes