diff options
Diffstat (limited to 'components/script/dom/storage.rs')
-rw-r--r-- | components/script/dom/storage.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs index 7c52934386a..74624ba45b4 100644 --- a/components/script/dom/storage.rs +++ b/components/script/dom/storage.rs @@ -213,21 +213,21 @@ impl Storage { .dom_manipulation_task_source() .queue( task!(send_storage_notification: move || { - let this = this.root(); - let global = this.global(); - let event = StorageEvent::new( - global.as_window(), - atom!("storage"), - EventBubbles::DoesNotBubble, - EventCancelable::NotCancelable, - key.map(DOMString::from), - old_value.map(DOMString::from), - new_value.map(DOMString::from), - DOMString::from(url.into_string()), - Some(&this), - ); - event.upcast::<Event>().fire(global.upcast()); - }), + let this = this.root(); + let global = this.global(); + let event = StorageEvent::new( + global.as_window(), + atom!("storage"), + EventBubbles::DoesNotBubble, + EventCancelable::NotCancelable, + key.map(DOMString::from), + old_value.map(DOMString::from), + new_value.map(DOMString::from), + DOMString::from(url.into_string()), + Some(&this), + ); + event.upcast::<Event>().fire(global.upcast()); + }), global.upcast(), ) .unwrap(); |