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

Issue 2951293002: NetworkService: Destroy URLLoaders when a NetworkContext is destroyed. (Closed)

Created:
3 years, 6 months ago by mmenke
Modified:
3 years, 6 months ago
Reviewers:
jam
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, net-reviews_chromium.org, kinuko, darin-cc_chromium.org, rdsmith+watch_chromium.org, loading-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

NetworkService: Destroy URLLoaders when a NetworkContext is destroyed. URLRequests can't outlast the URLRequestContext that spawned them, so the current code can cause crashes on NetworkContext destruction. BUG=735995 Review-Url: https://codereview.chromium.org/2951293002 Cr-Commit-Position: refs/heads/master@{#481760} Committed: https://chromium.googlesource.com/chromium/src/+/28bcb85f5c7f1e56f57a0b26f9a878196adedb3f

Patch Set 1 #

Patch Set 2 : Rename variable #

Total comments: 1

Patch Set 3 : Response to comment, change why destruction is safe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -18 lines) Patch
M content/browser/loader/test_url_loader_client.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M content/network/network_context.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M content/network/network_context.cc View 1 2 3 chunks +5 lines, -10 lines 0 comments Download
M content/network/url_loader_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/network/url_loader_impl.cc View 3 chunks +9 lines, -2 lines 0 comments Download
M content/network/url_loader_unittest.cc View 3 chunks +34 lines, -1 line 0 comments Download
M net/test/embedded_test_server/default_handlers.cc View 4 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 23 (12 generated)
mmenke
https://codereview.chromium.org/2951293002/diff/20001/content/network/url_loader_unittest.cc File content/network/url_loader_unittest.cc (right): https://codereview.chromium.org/2951293002/diff/20001/content/network/url_loader_unittest.cc#newcode88 content/network/url_loader_unittest.cc:88: TRAFFIC_ANNOTATION_FOR_TESTS); The fact that we create these on the ...
3 years, 6 months ago (2017-06-22 17:58:50 UTC) #6
jam
what if NetworkContext's destructor is calling Cleanup, which is modifying the url_loaders_ that's being iterated. ...
3 years, 6 months ago (2017-06-22 20:53:10 UTC) #8
mmenke
On 2017/06/22 20:53:10, jam wrote: > what if NetworkContext's destructor is calling Cleanup, which is ...
3 years, 6 months ago (2017-06-22 20:58:10 UTC) #9
mmenke
On 2017/06/22 20:58:10, mmenke wrote: > On 2017/06/22 20:53:10, jam wrote: > > what if ...
3 years, 6 months ago (2017-06-22 20:59:53 UTC) #10
mmenke
On 2017/06/22 20:59:53, mmenke wrote: > On 2017/06/22 20:58:10, mmenke wrote: > > On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 21:02:57 UTC) #11
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/2951293002/40001
3 years, 6 months ago (2017-06-22 21:08:28 UTC) #14
jam
On 2017/06/22 20:58:10, mmenke wrote: > On 2017/06/22 20:53:10, jam wrote: > > what if ...
3 years, 6 months ago (2017-06-22 21:31:25 UTC) #15
mmenke
On 2017/06/22 21:31:25, jam wrote: > On 2017/06/22 20:58:10, mmenke wrote: > > On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 21:34:51 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/323597)
3 years, 6 months ago (2017-06-23 00:00:53 UTC) #18
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/2951293002/40001
3 years, 6 months ago (2017-06-23 00:02:13 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 01:14:58 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/28bcb85f5c7f1e56f57a0b26f9a8...

Powered by Google App Engine
This is Rietveld 408576698