mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Issue #1820 - Improve the Blob implementation
This commit is contained in:
parent
bdb3a2538b
commit
f2885b8fc7
6 changed files with 125 additions and 22 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue