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 Bug 1678374 - Avoid including jsapi.h from header files. r=jandem 2020-11-23 16:12:34 +00:00
ChannelInfo.cpp
ChannelInfo.h
ChannelInfo.ipdlh
EmptyBody.cpp Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku 2021-01-12 10:38:25 +00:00
EmptyBody.h Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku 2021-01-12 10:38:25 +00:00
Fetch.cpp Backed out 3 changesets (bug 1660555) on request from evilpie 2021-04-29 16:55:15 +02:00
Fetch.h Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku 2021-01-12 10:38:25 +00:00
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 Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
FetchObserver.cpp
FetchObserver.h
FetchStreamReader.cpp Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
FetchStreamReader.h Bug 1678374 - Avoid including jsapi.h from header files. r=jandem 2020-11-23 16:12:34 +00:00
FetchTypes.ipdlh Bug 1660470 - Avoid including FetchIPCUtils.h from header files. r=nika 2020-11-23 16:04:50 +00:00
FetchUtil.cpp Bug 1687063 - Improve error messages when trying to consume a Reponse for WebAssembly. r=lth 2021-01-18 12:16:33 +00:00
FetchUtil.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
Headers.cpp
Headers.h
InternalHeaders.cpp Bug 1460299 - Add content-length as a CORS-safelisted response header. r=valentin,baku 2021-02-15 12:51:33 +00:00
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 Bug 1687587 - Cleanup a bit Link.h. r=smaug 2021-01-20 09:24:10 +00:00
InternalResponse.cpp
InternalResponse.h
moz.build
Request.cpp Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku 2021-01-12 10:38:25 +00:00
Request.h Bug 1682103 - Make nsContentPolicyType a CEnum type. r=ckerschb 2020-12-16 11:36:47 +00:00
Response.cpp Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku 2021-01-12 10:38:25 +00:00
Response.h