aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/request.rs
diff options
context:
space:
mode:
authorJan Zerebecki <jan.mozilla@zerebecki.de>2016-09-27 17:17:33 +0200
committerKeith Yeung <kungfukeith11@gmail.com>2016-10-01 00:27:03 -0700
commit95a7482d26d354e7e02a4309e72d9cd6722e490f (patch)
tree346c0307e99e08b66b1c93e0b18eed93157da3a1 /components/net_traits/request.rs
parent0e950c0ba5ba96ab629a21e8bdeba0795e320316 (diff)
downloadservo-95a7482d26d354e7e02a4309e72d9cd6722e490f.tar.gz
servo-95a7482d26d354e7e02a4309e72d9cd6722e490f.zip
Remove same-origin-data-url flag from fetch implementation
The spec removed it. Check the scheme instead, data is always same origin now, except for workers. This also updates the comments to make step numbers match the spec. Closes #13362
Diffstat (limited to 'components/net_traits/request.rs')
-rw-r--r--components/net_traits/request.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/components/net_traits/request.rs b/components/net_traits/request.rs
index c31f821680d..2a84c91c759 100644
--- a/components/net_traits/request.rs
+++ b/components/net_traits/request.rs
@@ -120,7 +120,6 @@ pub struct RequestInit {
serialize_with = "::hyper_serde::serialize")]
pub headers: Headers,
pub unsafe_request: bool,
- pub same_origin_data: bool,
pub body: Option<Vec<u8>>,
// TODO: client object
pub type_: Type,
@@ -146,7 +145,6 @@ impl Default for RequestInit {
url: Url::parse("about:blank").unwrap(),
headers: Headers::new(),
unsafe_request: false,
- same_origin_data: false,
body: None,
type_: Type::None,
destination: Destination::None,
@@ -188,7 +186,6 @@ pub struct Request {
// TODO: priority object
pub origin: RefCell<Origin>,
pub omit_origin_header: Cell<bool>,
- pub same_origin_data: Cell<bool>,
/// https://fetch.spec.whatwg.org/#concept-request-referrer
pub referrer: RefCell<Referrer>,
pub referrer_policy: Cell<Option<ReferrerPolicy>>,
@@ -230,7 +227,6 @@ impl Request {
destination: Destination::None,
origin: RefCell::new(origin.unwrap_or(Origin::Client)),
omit_origin_header: Cell::new(false),
- same_origin_data: Cell::new(false),
referrer: RefCell::new(Referrer::Client),
referrer_policy: Cell::new(None),
pipeline_id: Cell::new(pipeline_id),
@@ -256,7 +252,6 @@ impl Request {
*req.method.borrow_mut() = init.method;
*req.headers.borrow_mut() = init.headers;
req.unsafe_request = init.unsafe_request;
- req.same_origin_data.set(init.same_origin_data);
*req.body.borrow_mut() = init.body;
req.type_ = init.type_;
req.destination = init.destination;