gecko-dev/netwerk/protocol/data
Yoshi Huang 94d1d69dc1 Bug 1373513 - Part 1: data:image, data:css, and data:fonts should be same origin. r=smaug
For font-face
https://drafts.csswg.org/css-fonts-3/#font-fetching-requirements

/* data url's with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");

For image
https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data
Step 12
 Fetch request. Let this instance of the fetching algorithm be
associated with image request.

This will go to Fetch spec then.

For <link rel="stylesheet" href="data:text/css" ...>
https://html.spec.whatwg.org/multipage/semantics.html#obtaining-a-resource-from-a-link-element
Step 10
Fetch request.

This will also go to Fetch spec then.

[Fetch] specification,
https://fetch.spec.whatwg.org/#main-fetch, step 12,
request’s current url’s scheme is "data"
1. Set request’s response tainting to "basic".

And from
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#terminology-3
A response whose type is "basic", "cors", or "default" is
CORS-same-origin.

For subresource loading using data: URI, it should be treated as same
origin.
2017-07-12 11:00:13 +08:00
..
DataChannelChild.cpp Bug 1363659 - Ensure not sending data channel constructor when shutting down, r=valentin 2017-05-26 03:09:00 +02:00
DataChannelChild.h
DataChannelParent.cpp Bug 1288633 - Add more information when an URL matches Safe Browsing list. r=dragana,francois 2017-02-21 09:46:36 +08:00
DataChannelParent.h Bug 1307331 - Use MOZ_MUST_USE in netwerk/protocol/data r=valentin 2016-10-03 14:54:01 +08:00
moz.build
nsDataChannel.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsDataChannel.h Bug 1307331 - Use MOZ_MUST_USE in netwerk/protocol/data r=valentin 2016-10-03 14:54:01 +08:00
nsDataHandler.cpp Bug 1373513 - Part 1: data:image, data:css, and data:fonts should be same origin. r=smaug 2017-07-12 11:00:13 +08:00
nsDataHandler.h Bug 1307331 - Use MOZ_MUST_USE in netwerk/protocol/data r=valentin 2016-10-03 14:54:01 +08:00
nsDataModule.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00