Chromium Code Reviews
DescriptionevaluateScriptInMainWorld() should check if the target context exists before evaluating a script
This is a speculative fix of bug 393137 (I cannot reproduce it).
It's possible that evaluateScriptInMainWorld() is called in a state where toV8Context(m_frame, mainWorld()) returns NULL. For example, this can happen when the m_frame is already detached from the window object (but I don't figure out the exact call path that causes the issue).
Either way, evaluateScriptInMainWorld() should check if the target context exists or not before starting evaluating a script. This CL makes the change.
BUG=393137
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178047
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||