mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Deny unsafe blocks in script.
As a first start, this allows them indiscriminately where used.
This commit is contained in:
parent
d9751c0fbb
commit
edc1d89251
14 changed files with 27 additions and 0 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue