ScriptController::clearWindowShell should also clear the m_qtScriptEngine: #if PLATFORM(QT) m_qtScriptEngine.clear(); #endif Else, consecutive calls to QWebFrame::evaluateJavaScript fails, due to the fact, that after calling QWebFrame::load the m_qtScriptEngine is not cleared.
Created attachment 126271 [details] Proposed patch to fix the bug