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

Add injection point to QWebEnginePage::runJavaScript method

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes