MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / injectUserJavaScript

Method injectUserJavaScript

src/core/web/WebPage.cpp:431–441  ·  view source on GitHub ↗

Was used when backend was QtWebEngine. No longer used. Will keep this method for now in case it may be needed in the future.

Source from the content-addressed store, hash-verified

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.
431void 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}

Callers

nothing calls this directly

Calls 1

getScriptsForMethod · 0.80

Tested by

no test coverage detected