Chromium Code Reviews
DescriptionAdd two tests to ensure WebContents does not leak on prerender swap in
The test with beforeunload handler is as planned: the event should be dispatched
and the webcontents should be deleted. The test relies on the possibility to
send out an async XHR, even though the results of it are never seen in the
renderer.
I noticed that in PrerenderManager::SwapInternal() with any of
{unload,beforeunload} handler is set, the
old_web_contents->NeedToFireBeforeUnload() returns true. The second test is to
check the path when false is returned.
BUG=600693
Committed: https://crrev.com/f4f74cd515b1f1fd16e9604d9a5cc9c4af1cf28d
Cr-Commit-Position: refs/heads/master@{#392313}
Patch Set 1 #
Total comments: 4
Patch Set 2 : rebase #Patch Set 3 : nits in comments addressed #
Messages
Total messages: 12 (6 generated)
|
||||||||||||||||||||||||||||