aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/popstateevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/popstateevent.rs')
-rw-r--r--components/script/dom/popstateevent.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/popstateevent.rs b/components/script/dom/popstateevent.rs
index fde05e30394..7db2eea8fe6 100644
--- a/components/script/dom/popstateevent.rs
+++ b/components/script/dom/popstateevent.rs
@@ -53,7 +53,6 @@ impl PopStateEvent {
ev
}
- #[allow(unsafe_code)]
pub fn Constructor(window: &Window,
type_: DOMString,
init: &PopStateEventBinding::PopStateEventInit)
@@ -62,7 +61,7 @@ impl PopStateEvent {
Atom::from(type_),
init.parent.bubbles,
init.parent.cancelable,
- unsafe { HandleValue::from_marked_location(&init.state) }))
+ init.state.handle()))
}
}