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

Add injection point to QWebEnginePage::runJavaScript method

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.12.4
    • WebEngine

    Description

      QWebEnginePage::runJavaScript works immediately without caring the existence of the DOM, which is useless in most senarios, so I think we should adjust QWebEnginePage::runJavaScript to work at least until QWebEngineScript::DocumentCreation, or else people may run into my problem https://stackoverflow.com/questions/56643674/cannot-change-backgroundimage-using-qwebenginepagerunjavascript

      If don't intend to adjust the behavior , at least should specify it in the doc of QWebEnginePage::runJavaScript , it would be better to tip users to use QWebEngineScript for a more flexible control of running JavaScript in the doc.

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            philip Philip Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes