gecko-dev/dom/fetch
Eden Chuang 4ce2d06b79 Bug 1714299 - Correct the opaque response judgment for opaque response blocking. r=necko-reviewers,annevk,dragana
An opaque response should be not only cross-origin but also be request with no_cors request mode.

To filter out the request with mode Same_origin, navigate, and cors. This patch reuses the algorithm in InternalRequest/FetchDriver to decide whether a response is an opaque response.

https://searchfox.org/mozilla-central/rev/da5d08750e504f3710f7ea051327d9c311c39902/dom/fetch/InternalRequest.cpp#331
https://searchfox.org/mozilla-central/rev/da5d08750e504f3710f7ea051327d9c311c39902/dom/fetch/FetchDriver.cpp#1153,1157

Differential Revision: https://phabricator.services.mozilla.com/D117086
2021-07-02 23:11:55 +00:00
..
tests
BodyExtractor.cpp
BodyExtractor.h
ChannelInfo.cpp
ChannelInfo.h
ChannelInfo.ipdlh
EmptyBody.cpp
EmptyBody.h
Fetch.cpp
Fetch.h
FetchDriver.cpp Bug 1714299 - Correct the opaque response judgment for opaque response blocking. r=necko-reviewers,annevk,dragana 2021-07-02 23:11:55 +00:00
FetchDriver.h
FetchIPCTypes.h
FetchObserver.cpp
FetchObserver.h
FetchStreamReader.cpp
FetchStreamReader.h
FetchTypes.ipdlh
FetchUtil.cpp
FetchUtil.h
Headers.cpp
Headers.h
InternalHeaders.cpp
InternalHeaders.h
InternalRequest.cpp Bug 1542807 part 5 - Don't apply CSP rules for the document to fonts loaded from User and UserAgent origin sheets. r=ckerschb 2021-06-14 01:22:06 +00:00
InternalRequest.h
InternalResponse.cpp
InternalResponse.h
moz.build
Request.cpp
Request.h
Response.cpp
Response.h