Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 215073002: WebContents could be blocked after pending cross-site navigation is canceled. (Closed)

Created:
6 years, 9 months ago by mmal
Modified:
6 years, 8 months ago
Reviewers:
Charlie Reis, clamy, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

WebContents could be blocked after pending cross-site navigation is canceled. It happens when navigation is canceled just before RenderFrameHost::OnNavigate by second one. Current renderer is swapped-out but not entirely (after ViewHostMsg_SwapOut_ACK but before ViewMsg_WasSwappedOut). This causes that second navigation and all following are blocked, current renderer process is not closed but can't respond to input events because it is swapped-out. BUG=104600 TEST=RenderFrameHostManagerTest.NewCrossNavigationBetweenSwapOutAndCommit Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262501

Patch Set 1 #

Total comments: 1

Patch Set 2 : Unittest #

Total comments: 1

Patch Set 3 : Review follow-up #

Patch Set 4 : Rebase #

Patch Set 5 : Review follow-up and fix related to recent RFH changes #

Total comments: 4

Patch Set 6 : Comment corrections #

Patch Set 7 : Revert RFH::SwapOut() change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mmal
6 years, 9 months ago (2014-03-27 17:33:22 UTC) #1
Charlie Reis
Thanks for catching this. This needs a bug on file (with the repro steps you ...
6 years, 9 months ago (2014-03-27 17:59:09 UTC) #2
nasko
The fix looks reasonable, but I'd like to see a test case added. It will ...
6 years, 9 months ago (2014-03-28 16:15:55 UTC) #3
Charlie Reis
https://codereview.chromium.org/215073002/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/215073002/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode539 content/browser/frame_host/render_frame_host_impl.cc:539: RenderViewHostImpl::STATE_WAITING_FOR_COMMIT)) { This doesn't seem right to me, since ...
6 years, 9 months ago (2014-03-28 16:43:20 UTC) #4
mmal
I am not familiar with chromium unit tests but I tried to write one. I ...
6 years, 8 months ago (2014-03-31 19:08:55 UTC) #5
Charlie Reis
Thanks. A few comments below. On 2014/03/31 19:08:55, mmaliszkiewicz wrote: > I am not familiar ...
6 years, 8 months ago (2014-03-31 21:17:51 UTC) #6
mmal
Firstly, I think that the condition was broken at the commit you pointed because is_swapped_out_ ...
6 years, 8 months ago (2014-04-02 16:41:09 UTC) #7
Charlie Reis
On 2014/04/02 16:41:09, mmaliszkiewicz wrote: > Firstly, I think that the condition was broken at ...
6 years, 8 months ago (2014-04-03 00:09:50 UTC) #8
mmal
It's OK for me to keep is_waiting_for_beforeunload_ack_ check, there is hang monitor so even if ...
6 years, 8 months ago (2014-04-04 20:07:03 UTC) #9
Charlie Reis
Please don't tack on an extra change to SwappedOut in this CL unless it's actually ...
6 years, 8 months ago (2014-04-04 22:23:01 UTC) #10
mmal
This change is necessary after recent Nasko's a2c0301ed8a8c8dcfb258834b726ff8aa73ecca0 (where this condition is added). RenderFrameHostManager::SwappedOut causes ...
6 years, 8 months ago (2014-04-07 11:17:02 UTC) #11
Charlie Reis
On 2014/04/07 11:17:02, mmaliszkiewicz wrote: > This change is necessary after recent Nasko's > a2c0301ed8a8c8dcfb258834b726ff8aa73ecca0 ...
6 years, 8 months ago (2014-04-07 21:08:24 UTC) #12
mmal
Of course I can make second CL but are you aware that this CL might ...
6 years, 8 months ago (2014-04-07 21:47:09 UTC) #13
Charlie Reis
On 2014/04/07 21:47:09, mmaliszkiewicz wrote: > Of course I can make second CL but are ...
6 years, 8 months ago (2014-04-07 21:57:16 UTC) #14
mmal
Second change reverted. Thanks for your time!
6 years, 8 months ago (2014-04-08 12:29:03 UTC) #15
Charlie Reis
Thanks, much appreciated! LGTM. Let me know what the bug number is for the other ...
6 years, 8 months ago (2014-04-08 16:58:11 UTC) #16
mmal
The CQ bit was checked by mmaliszkiewicz@opera.com
6 years, 8 months ago (2014-04-08 16:59:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmaliszkiewicz@opera.com/215073002/140001
6 years, 8 months ago (2014-04-08 16:59:41 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 20:57:22 UTC) #19
Message was sent while issue was closed.
Change committed as 262501

Powered by Google App Engine
This is Rietveld 408576698