aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-08 17:33:34 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-09 10:13:25 +0100
commitedc1d892517e90d95b566c17acc7a3df63e24790 (patch)
treed1d302de8fc0bd28b7c6735a4ca20380da51c916 /components/script/dom/xmlhttprequest.rs
parentd9751c0fbb13d04b27c42a9ba5065b5af26f1286 (diff)
downloadservo-edc1d892517e90d95b566c17acc7a3df63e24790.tar.gz
servo-edc1d892517e90d95b566c17acc7a3df63e24790.zip
Deny unsafe blocks in script.
As a first start, this allows them indiscriminately where used.
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 79349cbf674..beee21798af 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -206,6 +206,7 @@ impl XMLHttpRequest {
xhr.r().process_partial_response(progress);
}
+ #[allow(unsafe_blocks)]
fn fetch(fetch_type: &SyncOrAsync, resource_task: ResourceTask,
mut load_data: LoadData, terminate_receiver: Receiver<TerminateReason>,
cors_request: Result<Option<CORSRequest>,()>, gen_id: GenerationId,
@@ -690,6 +691,7 @@ impl<'a> XMLHttpRequestMethods for JSRef<'a, XMLHttpRequest> {
}
}
}
+ #[allow(unsafe_blocks)]
fn Response(self, cx: *mut JSContext) -> JSVal {
match self.response_type.get() {
_empty | Text => {