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

Issue 23582002: CORS: Update the redirection status in Inspector Network tab for CORS requests. (Closed)

Created:
7 years, 3 months ago by ancilgeorge
Modified:
7 years, 3 months ago
CC:
blink-reviews, caseq+blink_chromium.org, Nate Chapin, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

CORS: Update the redirection status in Inspector Network tab for CORS requests. In the Inspector Network tab, 'Status' column shows '(cancelled)' and 'Type' shows 'pending' when CORS request is redirected. The status is not updated when redirection is successful or fails due to access control checks. Added changes to update the response in Inspector when the CORS request is redirected for both success and failure cases. Made changes to log appropriate message to console when redirection fails due to access control checks. BUG=279203 R=abarth@chromium.org, pfeldman@chromium.org, bbudge@google.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156915

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -17 lines) Patch
M LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorResourceAgent.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.h View 1 2 3 4 chunks +13 lines, -11 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 3 chunks +28 lines, -6 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
ancilgeorge
Requesting review.
7 years, 3 months ago (2013-08-27 11:59:00 UTC) #1
pfeldman
https://codereview.chromium.org/23582002/diff/1/Source/core/inspector/InspectorResourceAgent.cpp File Source/core/inspector/InspectorResourceAgent.cpp (right): https://codereview.chromium.org/23582002/diff/1/Source/core/inspector/InspectorResourceAgent.cpp#newcode403 Source/core/inspector/InspectorResourceAgent.cpp:403: double finishTime = 0.0; Is this copy-paste from above? ...
7 years, 3 months ago (2013-08-27 14:21:32 UTC) #2
ancilgeorge
Did the changes as per the inputs. Please let me if any further changes are ...
7 years, 3 months ago (2013-08-28 08:14:35 UTC) #3
eustas
https://codereview.chromium.org/23582002/diff/6001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/23582002/diff/6001/Source/core/loader/DocumentThreadableLoader.cpp#newcode210 Source/core/loader/DocumentThreadableLoader.cpp:210: InspectorInstrumentation::didReceiveCORSRedirectResponse(m_document->frame(), resource->identifier(), m_document->frame()->loader()->documentLoader(), redirectResponse, 0, resource->loadFinishTime()); I'm not sure ...
7 years, 3 months ago (2013-08-28 09:43:24 UTC) #4
ancilgeorge
https://codereview.chromium.org/23582002/diff/6001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/23582002/diff/6001/Source/core/loader/DocumentThreadableLoader.cpp#newcode210 Source/core/loader/DocumentThreadableLoader.cpp:210: InspectorInstrumentation::didReceiveCORSRedirectResponse(m_document->frame(), resource->identifier(), m_document->frame()->loader()->documentLoader(), redirectResponse, 0, resource->loadFinishTime()); On 2013/08/28 09:43:25, ...
7 years, 3 months ago (2013-08-28 14:05:10 UTC) #5
ancilgeorge
Removed the monotonicFinishTime parameter. Please let me know if any further changes are required. Thanks.
7 years, 3 months ago (2013-08-28 14:45:23 UTC) #6
pfeldman
inspector lgtm. +mkwst for CORS error messages.
7 years, 3 months ago (2013-08-28 15:22:47 UTC) #7
Mike West
https://codereview.chromium.org/23582002/diff/8001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/23582002/diff/8001/Source/core/loader/DocumentThreadableLoader.cpp#newcode220 Source/core/loader/DocumentThreadableLoader.cpp:220: accessControlErrorDescription = "Cross Origin Requests with preflight cannot be ...
7 years, 3 months ago (2013-08-28 15:33:56 UTC) #8
ancilgeorge
Made changes as per the comments. Also updated the error description for scheme and userinfo ...
7 years, 3 months ago (2013-08-29 07:09:37 UTC) #9
Mike West
On 2013/08/29 07:09:37, ancilgeorge wrote: > Made changes as per the comments. Also updated the ...
7 years, 3 months ago (2013-08-29 07:29:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ancilgeorge@samsung.com/23582002/13001
7 years, 3 months ago (2013-08-29 08:00:02 UTC) #11
ancilgeorge
Can I go ahead and do a commit? https://codereview.chromium.org/23582002/diff/34001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/23582002/diff/34001/Source/core/loader/DocumentThreadableLoader.cpp#newcode517 Source/core/loader/DocumentThreadableLoader.cpp:517: } ...
7 years, 3 months ago (2013-08-29 08:09:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ancilgeorge@samsung.com/23582002/34001
7 years, 3 months ago (2013-08-29 09:20:26 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-08-29 10:38:48 UTC) #14
Message was sent while issue was closed.
Change committed as 156915

Powered by Google App Engine
This is Rietveld 408576698