|
|
Chromium Code Reviews|
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. |
DescriptionFix 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 #
Messages
Total messages: 31 (21 generated)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 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. BUG=673806 ========== to ========== 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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
jam@chromium.org changed reviewers: + avi@chromium.org
lgtm
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 1, "attempt_start_ts": 1490046352123370, "parent_rev":
"2f74b825a9c1e204af1693480a62c386ce33c4f4", "commit_rev":
"18bf53b4ccb6351759ca4a0bdc30a814aeb61137"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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-Commit-Position: refs/heads/master@{#458216} Committed: https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30...
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2761223002/ by horo@chromium.org. The reason for reverting is: Introduced ServiceWorkerNavigationPreloadTest.NetworkError crashes on Debug build. BUG=703439 .
Message was sent while issue was closed.
Description was changed from ========== 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-Commit-Position: refs/heads/master@{#458216} Committed: https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30... ========== to ========== 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-Commit-Position: refs/heads/master@{#458216} Committed: https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30... ==========
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Avi: ptal for the dcheck fix in patchset 3. This fired on win dbg bots and repros locally. The problem is that service worker requests won't have a frame id set, so ResourceDispatcherHostImpl::OnRenderFrameDeleted won't clear them. In debugging this I found that we don't always shut down the URLRequestContext in contetn correctly, I filed https://bugs.chromium.org/p/chromium/issues/detail?id=703718
jam@chromium.org changed reviewers: + nasko@chromium.org - avi@chromium.org
->Nasko since Avi is ooo
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
jam@chromium.org changed reviewers: + avi@chromium.org - nasko@chromium.org
lgtm
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1490125863468010,
"parent_rev": "d7323d358bb4c28778915daef88f72407e078bd0", "commit_rev":
"21e62ae7504024888b56ae4e42d810d94812e0ae"}
Message was sent while issue was closed.
Description was changed from ========== 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-Commit-Position: refs/heads/master@{#458216} Committed: https://chromium.googlesource.com/chromium/src/+/18bf53b4ccb6351759ca4a0bdc30... ========== to ========== 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/+/18bf53b4ccb6351759ca4a0bdc30... Review-Url: https://codereview.chromium.org/2764613002 Cr-Commit-Position: refs/heads/master@{#458523} Committed: https://chromium.googlesource.com/chromium/src/+/21e62ae7504024888b56ae4e42d8... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/21e62ae7504024888b56ae4e42d8... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
