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

Issue 15303010: Call dispatchDidReceiveServerRedirectForProvisionalLoad before checking navigation policy for a red… (Closed)

Created:
7 years, 7 months ago by Nate Chapin
Modified:
7 years, 7 months ago
CC:
blink-reviews, eae+blinkwatch, gavinp+loader_chromium.org
Visibility:
Public.

Description

Call dispatchDidReceiveServerRedirectForProvisionalLoad before checking navigation policy for a redirect. Repro steps: 1. Load an application that uses the Chromium WebKit API. 2. Redirect a request via net::URLRequestJob::IsRedirectResponse by populating |location| and returning true. The |isRedirect| value passed to WebFrameClient::decidePolicyForNavigation in FrameLoaderClientImpl::dispatchDecidePolicyForNavigationAction should be true. However, WebKit revision 137607 (http://trac.webkit.org/changeset/137607) changed the implementation of MainResourceLoader::load() such that WebDataSourceImpl::appendRedirect() is no longer called for the redirected URL following this code path. As a result the |isRedirect| value is now false. BUG=229154 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150690

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M LayoutTests/http/tests/loading/307-after-303-after-post-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/loading/redirect-methods-expected.txt View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/ResourceLoader.cpp View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nate Chapin
I'm not sure how to properly test this, besides seeing the callbacks in the desired ...
7 years, 7 months ago (2013-05-17 17:41:53 UTC) #1
abarth-chromium
What's the reason for making this change? Does it fix a bug in CEF? (I'm ...
7 years, 7 months ago (2013-05-17 18:58:43 UTC) #2
Nate Chapin
On 2013/05/17 18:58:43, abarth wrote: > What's the reason for making this change? Does it ...
7 years, 7 months ago (2013-05-17 19:02:58 UTC) #3
abarth-chromium
Would you be willing to copy/paste that information into the description? It's too much work ...
7 years, 7 months ago (2013-05-17 19:07:52 UTC) #4
Nate Chapin
On 2013/05/17 19:07:52, abarth wrote: > Would you be willing to copy/paste that information into ...
7 years, 7 months ago (2013-05-17 19:15:56 UTC) #5
Marshall
LGTM. I've confirmed that it fixes the CEF problem reported in the bug.
7 years, 7 months ago (2013-05-20 19:49:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/japhet@chromium.org/15303010/1
7 years, 7 months ago (2013-05-20 19:51:47 UTC) #7
commit-bot: I haz the power
7 years, 7 months ago (2013-05-20 20:59:04 UTC) #8
Message was sent while issue was closed.
Change committed as 150690

Powered by Google App Engine
This is Rietveld 408576698