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

Issue 2764613002: Fix race condition in content_shell which could lead to an assert on shutdown with PlzNavigate. (Closed)

Created:
3 years, 9 months ago by jam
Modified:
3 years, 9 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix race condition in content_shell which could lead to an assert on shutdown with PlzNavigate. The problem is that URLRequestContext's destructor checks that there are no more outstanding requests, while ResourceContext's destructor is what removes outstanding requests. In Chrome's profile implementation, the order is correct, but content_shell had a bug. This only mattered with PlzNavigate because renderer requests are deleted earlier through other codepaths. This should fix the flakiness seen on the Marshmallow 64 bit Tester with PlzNavigate. BUG=673806 Review-Url: https://codereview.chromium.org/2764613002 Cr-Original-Commit-Position: refs/heads/master@{#458216} Committed: https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30a814aeb61137 Review-Url: https://codereview.chromium.org/2764613002 Cr-Commit-Position: refs/heads/master@{#458523} Committed: https://chromium.googlesource.com/chromium/src/+/21e62ae7504024888b56ae4e42d810d94812e0ae

Patch Set 1 #

Patch Set 2 : reupload after revert #

Patch Set 3 : fix assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 31 (21 generated)
jam
3 years, 9 months ago (2017-03-20 21:24:48 UTC) #7
Avi (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-20 21:29:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2764613002/1
3 years, 9 months ago (2017-03-20 21:46:29 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30a814aeb61137
3 years, 9 months ago (2017-03-20 22:56:09 UTC) #13
horo
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2761223002/ by horo@chromium.org. ...
3 years, 9 months ago (2017-03-21 04:00:57 UTC) #14
jam
Avi: ptal for the dcheck fix in patchset 3. This fired on win dbg bots ...
3 years, 9 months ago (2017-03-21 17:43:59 UTC) #20
jam
->Nasko since Avi is ooo
3 years, 9 months ago (2017-03-21 18:18:41 UTC) #22
Avi (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-21 19:50:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2764613002/40001
3 years, 9 months ago (2017-03-21 19:51:30 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 19:59:06 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/21e62ae7504024888b56ae4e42d8...

Powered by Google App Engine
This is Rietveld 408576698