aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorZhen Zhang <izgzhen@gmail.com>2016-07-15 01:02:21 +0800
committerZhen Zhang <izgzhen@gmail.com>2016-07-15 20:33:51 +0800
commitfdc3a8e3ac7ea5512e6fa09be892cd67ff6e8657 (patch)
tree51410a9abbf6d58aee8df62bd84d9737952c75dd /components/script/dom/xmlhttprequest.rs
parent4b78b9adab916cc4fdde6248e785030b79f406da (diff)
downloadservo-fdc3a8e3ac7ea5512e6fa09be892cd67ff6e8657.tar.gz
servo-fdc3a8e3ac7ea5512e6fa09be892cd67ff6e8657.zip
Put Blob URL online
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 4a6dba72f6f..532c4d2ec1c 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -368,6 +368,12 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
// Step 11 - abort existing requests
self.terminate_ongoing_fetch();
+ // TODO(izgzhen): In the WPT test: FileAPI/blob/Blob-XHR-revoke.html,
+ // the xhr.open(url) is expected to hold a reference to the URL,
+ // thus renders following revocations invalid. Though we won't
+ // implement this for now, if ever needed, we should check blob
+ // scheme and trigger corresponding actions here.
+
// Step 12
*self.request_method.borrow_mut() = parsed_method;
*self.request_url.borrow_mut() = Some(parsed_url);