Was used when backend was QtWebEngine. No longer used. Will keep this method for now in case it may be needed in the future.
| 429 | // Was used when backend was QtWebEngine. No longer used. Will keep this method |
| 430 | // for now in case it may be needed in the future. |
| 431 | void WebPage::injectUserJavaScript(ScriptInjectionTime injectionTime) |
| 432 | { |
| 433 | // Attempt to get URL associated with frame |
| 434 | const QUrl pageUrl = url(); |
| 435 | if (pageUrl.isEmpty()) |
| 436 | return; |
| 437 | |
| 438 | const QString userJS = m_userScriptManager->getScriptsFor(pageUrl, injectionTime, true); |
| 439 | if (!userJS.isEmpty()) |
| 440 | runJavaScript(userJS); |
| 441 | } |
nothing calls this directly
no test coverage detected