Fix FileManager thread panic and other misc improvements

- Add shut down logic for FileManager thread
- Add an unit test for filemanager_thread
This commit is contained in:
Zhen Zhang 2016-05-24 21:53:48 +08:00
parent caada0fb33
commit 96b2093121
6 changed files with 46 additions and 3 deletions

View file

@ -51,8 +51,6 @@ impl File {
pub fn new_from_selected(window: &Window, selected: SelectedFile) -> Root<File> {
let name = DOMString::from(selected.filename.to_str().expect("File name encoding error"));
// FIXME: fix this after PR #11221 is landed
let id = selected.id;
let slice = DataSlice::empty();
let global = GlobalRef::Window(window);