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

Issue 356723003: Add 'XHR' to the Resource::Type enum, and use it for XHR requests. (Closed)

Created:
6 years, 6 months ago by Mike West
Modified:
6 years, 3 months ago
CC:
blink-reviews, gavinp+loader_chromium.org, Nate Chapin, jochen (gone - plz use gerrit)
Project:
blink
Visibility:
Public.

Description

Add 'XHR' to the Resource::Type enum, and use it for XHR requests. We're currently hacking Mixed Content support for XHR in by adding an enum to the request options, which is only set for XHR. We do this only because we can't otherwise distinguish between XHR and Pepper requests. Adding a resource type makes this a much clearer distinction, and allows us to simplify the 'checkInsecureContent' implementation. Eventually, we can move all that logic into MixedContentChecker. This change should have no web-visible effect; existing tests should continue to pass or fail, accordingly.

Patch Set 1 #

Patch Set 2 : isRawResource #

Patch Set 3 : Ugh. #

Patch Set 4 : Rebase. #

Patch Set 5 : Preflight. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -94 lines) Patch
M LayoutTests/http/tests/security/mixedContent/insecure-image-in-iframe-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fetch/RawResource.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/Resource.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/fetch/Resource.cpp View 1 3 chunks +5 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 11 chunks +80 lines, -78 lines 0 comments Download
M Source/core/fetch/ResourceLoaderOptions.h View 5 chunks +0 lines, -11 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Mike West
Hey Tom, how do you feel about this change? It splits XHR out from the ...
6 years, 6 months ago (2014-06-25 14:48:35 UTC) #1
Tom Sepez
I like it, but I don't know enough to determine all the implications of the ...
6 years, 6 months ago (2014-06-25 16:45:40 UTC) #2
Mike West
Adding Adam and Jochen for context.
6 years, 6 months ago (2014-06-26 11:50:58 UTC) #3
abarth-chromium
What about EventSource?
6 years, 6 months ago (2014-06-26 16:55:37 UTC) #4
Mike West
We should block it in a mixed context along with WebSockets and XHR. We don't ...
6 years, 6 months ago (2014-06-26 18:00:23 UTC) #5
abarth-chromium
On 2014/06/26 at 18:00:23, mkwst wrote: > We should block it in a mixed context ...
6 years, 6 months ago (2014-06-26 18:07:47 UTC) #6
Mike West
On 2014/06/26 at 18:07:47, abarth wrote: > Sorry for being terse. The point I was ...
6 years, 6 months ago (2014-06-26 18:27:18 UTC) #7
abarth-chromium
On 2014/06/26 at 18:27:18, mkwst wrote: > On 2014/06/26 at 18:07:47, abarth wrote: > > ...
6 years, 6 months ago (2014-06-26 19:48:33 UTC) #8
Mike West
On 2014/06/26 19:48:33, abarth wrote: > Maybe the mixed content policy should be part of ...
6 years, 5 months ago (2014-06-27 13:34:57 UTC) #9
abarth-chromium
On 2014/06/27 at 13:34:57, mkwst wrote: > On 2014/06/26 19:48:33, abarth wrote: > > Maybe ...
6 years, 5 months ago (2014-06-27 15:45:13 UTC) #10
Mike West
6 years, 5 months ago (2014-07-01 09:00:14 UTC) #11
Opened https://www.w3.org/Bugs/Public/show_bug.cgi?id=26247 to figure out what
contexts make sense for the resource types that Blink knows about but Fetch
currently doesn't.

Powered by Google App Engine
This is Rietveld 408576698