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

Issue 2574063003: Move ResourceHandler deferred actions ahead of external protocol handling. (Closed)

Created:
4 years ago by carlosk
Modified:
4 years ago
Reviewers:
jam, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ResourceHandler deferred actions ahead of external protocol handling. While working on moving mixed-content checks to the browser (https://codereview.chromium.org/1905033002) I found out that external protocol handling happened too early in the processing of request start and redirects done by ResourceLoader; namely before ResourceHandler implementations are notified and able to do their work in deferred tasks. This CL changes that order to allow the upcoming mixed-content NavigationThrottle implementation to properly check the navigation start or redirect ahead of external protocol dispatching. For the record, the failing layout test that brought this change to light was: http/tests/security/mixedContent/nonwebby-scheme-in-iframe-allowed.https.html BUG=576270 Committed: https://crrev.com/94bd59f28dcf81289f09c39d189128254631b275 Cr-Commit-Position: refs/heads/master@{#439923}

Patch Set 1 #

Patch Set 2 : Reverts URLRequest changes; redirect bugfix; improved unit tests. #

Total comments: 10

Patch Set 3 : Adds external protocol handling tests for sync and async cases. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -14 lines) Patch
M content/browser/loader/resource_loader.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 6 chunks +25 lines, -12 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 20 chunks +141 lines, -2 lines 3 comments Download

Messages

Total messages: 40 (21 generated)
carlosk
jam@: PTAL.
4 years ago (2016-12-14 03:28:42 UTC) #4
mmenke
On 2016/12/14 03:28:42, carlosk wrote: > jam@: PTAL. I don't want to add more monitoring-intermediary-state ...
4 years ago (2016-12-14 03:52:24 UTC) #5
mmenke
On 2016/12/14 03:52:24, mmenke wrote: > On 2016/12/14 03:28:42, carlosk wrote: > > jam@: PTAL. ...
4 years ago (2016-12-14 03:53:20 UTC) #6
carlosk
On 2016/12/14 03:53:20, mmenke wrote: > On 2016/12/14 03:52:24, mmenke wrote: > > On 2016/12/14 ...
4 years ago (2016-12-14 04:04:43 UTC) #7
mmenke
Sorry for the delay. Didn't get an email about your comment. Do feel free to ...
4 years ago (2016-12-15 16:20:04 UTC) #10
mmenke
On 2016/12/15 16:20:04, mmenke (Out Dec 17 to Jan 2) wrote: > Sorry for the ...
4 years ago (2016-12-15 16:25:57 UTC) #11
mmenke
And on a side note, figured out why I didn't see your response - commenting ...
4 years ago (2016-12-15 23:08:02 UTC) #14
carlosk
Thanks! Have you filed a crbug for that crrev bug? ;) My initial CL description ...
4 years ago (2016-12-16 02:23:04 UTC) #19
mmenke
On 2016/12/16 02:23:04, carlosk wrote: > Thanks! Have you filed a crbug for that crrev ...
4 years ago (2016-12-16 03:45:38 UTC) #20
carlosk
On 2016/12/16 03:45:38, mmenke (Out Dec 17 to Jan 2) wrote: > On 2016/12/16 02:23:04, ...
4 years ago (2016-12-16 05:45:34 UTC) #23
mmenke
https://codereview.chromium.org/2574063003/diff/20001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/2574063003/diff/20001/content/browser/loader/resource_loader.cc#newcode474 content/browser/loader/resource_loader.cc:474: // At this point any possible deferred start is ...
4 years ago (2016-12-16 16:19:36 UTC) #24
carlosk
Thanks. Please note my comment in the unit test file. https://codereview.chromium.org/2574063003/diff/20001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/2574063003/diff/20001/content/browser/loader/resource_loader.cc#newcode474 ...
4 years ago (2016-12-20 19:23:31 UTC) #27
jam
lgtm
4 years ago (2016-12-20 20:49:34 UTC) #28
jam
https://codereview.chromium.org/2574063003/diff/40001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/2574063003/diff/40001/content/browser/loader/resource_loader_unittest.cc#newcode1317 content/browser/loader/resource_loader_unittest.cc:1317: EXPECT_EQ(1, did_received_redirect_); On 2016/12/20 19:23:31, carlosk wrote: > In ...
4 years ago (2016-12-20 20:55:56 UTC) #29
carlosk
https://codereview.chromium.org/2574063003/diff/40001/content/browser/loader/resource_loader_unittest.cc File content/browser/loader/resource_loader_unittest.cc (right): https://codereview.chromium.org/2574063003/diff/40001/content/browser/loader/resource_loader_unittest.cc#newcode1317 content/browser/loader/resource_loader_unittest.cc:1317: EXPECT_EQ(1, did_received_redirect_); On 2016/12/20 20:55:56, jam wrote: > On ...
4 years ago (2016-12-20 22:21:56 UTC) #32
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/2574063003/40001
4 years ago (2016-12-20 22:22:54 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-20 23:30:28 UTC) #37
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/94bd59f28dcf81289f09c39d189128254631b275 Cr-Commit-Position: refs/heads/master@{#439923}
4 years ago (2016-12-20 23:34:26 UTC) #39
shimazu
4 years ago (2016-12-21 00:47:28 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2597563002/ by shimazu@chromium.org.

The reason for reverting is: This patch made two layout tests TIMEOUT:

virtual/mojo-loading/http/tests/misc/redirect-to-about-blank.html
http/tests/misc/redirect-to-about-blank.html.

Powered by Google App Engine
This is Rietveld 408576698