Chromium Code Reviews
DescriptionWebUI: Fix lifecycle-bug when RenderFrameHost is swapped out
Currently, once the RenderFrameHost is swapped out, WebUI C++ -> JS
calls will trigger a crash.
These C++ -> JS calls are usually triggered by an observer action that
occurs on navigation. (For instance, updating the list of cookies in
the settings UI.)
This patch calls WebUIMessageHandler::DisallowJavascript once Swap Out
begins. This is a quick fix to the issue.
The ideal fix would be to make WebUI have a pointer to its owning
RenderFrameHost. However, that will have to wait until the UberUI is
removed.
BUG=615274
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/ff556e56a916f1b24d35573641b3a8f6c9d49884
Cr-Commit-Position: refs/heads/master@{#398898}
Patch Set 1 #
Total comments: 5
Patch Set 2 : #Patch Set 3 : #
Total comments: 6
Patch Set 4 : #
Messages
Total messages: 22 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||