Test that StorageEvent's URL is empty from document.createEvent

This commit is contained in:
Anthony Ramine 2017-01-20 22:56:37 +01:00
parent 0e33756e8d
commit b2adcfb40b
3 changed files with 21 additions and 2 deletions

View file

@ -2710,8 +2710,7 @@ impl DocumentMethods for Document {
"progressevent" =>
Ok(Root::upcast(ProgressEvent::new_uninitialized(self.window.upcast()))),
"storageevent" => {
let USVString(url) = self.URL();
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, DOMString::from(url))))
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, "".into())))
},
"touchevent" =>
Ok(Root::upcast(