aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorShing Lyu <slyu@mozilla.com>2014-11-14 23:56:48 +0800
committerShing Lyu <shing.lyu@gmail.com>2014-12-09 22:52:19 +0800
commitf2885b8fc75d9c38ff4557d711e67d38bee20069 (patch)
treedb3fa793380e1966c1fe13ebb06d04b49d148ad5 /components/script/dom/formdata.rs
parentbdb3a2538b9f10aad4c911cc0118257d8311cd26 (diff)
downloadservo-f2885b8fc75d9c38ff4557d711e67d38bee20069.tar.gz
servo-f2885b8fc75d9c38ff4557d711e67d38bee20069.zip
Issue #1820 - Improve the Blob implementation
Diffstat (limited to 'components/script/dom/formdata.rs')
-rw-r--r--components/script/dom/formdata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs
index 4334ca379cc..0c9a5e81f8b 100644
--- a/components/script/dom/formdata.rs
+++ b/components/script/dom/formdata.rs
@@ -121,6 +121,6 @@ impl PrivateFormDataHelpers for FormData {
let global = self.global.root();
let f: Option<JSRef<File>> = FileCast::to_ref(value);
let name = filename.unwrap_or(f.map(|inner| inner.name().clone()).unwrap_or("blob".to_string()));
- File::new(global.root_ref(), value, name)
+ File::new(&global.root_ref(), value, name)
}
}