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
For Gerrit Dashboard: QTBUG-76489 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
267697,4 | Doc: Edit docs on script injection | 5.12 | qt/qtwebengine | Status: MERGED | +2 | 0 |