diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-01-20 22:56:37 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-02-24 12:22:10 +0100 |
commit | b2adcfb40b7e2e49c8649c0a757ec4572b5df182 (patch) | |
tree | da6733ea1e720f08b85dc5f17fe3f6504bd7a2dc /components/script/dom/document.rs | |
parent | 0e33756e8dff3215960b590cb577152cf0eeea96 (diff) | |
download | servo-b2adcfb40b7e2e49c8649c0a757ec4572b5df182.tar.gz servo-b2adcfb40b7e2e49c8649c0a757ec4572b5df182.zip |
Test that StorageEvent's URL is empty from document.createEvent
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 4b693f0448d..d37eb26c2bc 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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( |