Bug 77871 - Using V8 ScriptControllerQt does not refresh the qtScriptEngine after new context creation
Summary: Using V8 ScriptControllerQt does not refresh the qtScriptEngine after new con...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-06 07:14 PST by Benjamin Owe
Modified: 2014-12-16 00:55 PST (History)
4 users (show)

See Also:


Attachments
Proposed patch to fix the bug (605 bytes, patch)
2012-02-09 03:28 PST, Benjamin Owe
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Owe 2012-02-06 07:14:00 PST
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.
Comment 1 Benjamin Owe 2012-02-09 03:28:39 PST
Created attachment 126271 [details]
Proposed patch to fix the bug