pub trait HistoryMethods<D: DomTypes> {
// Required methods
fn GetLength(&self) -> Result<u32, Error>;
fn GetState(
&self,
cx: SafeJSContext,
retval: MutableHandleValue<'_>,
) -> Result<(), Error>;
fn Go(&self, delta: i32, _can_gc: CanGc) -> Result<(), Error>;
fn Back(&self) -> Result<(), Error>;
fn Forward(&self) -> Result<(), Error>;
fn PushState(
&self,
cx: SafeJSContext,
data: HandleValue<'_>,
title: DOMString,
url: Option<USVString>,
) -> Result<(), Error>;
fn ReplaceState(
&self,
cx: SafeJSContext,
data: HandleValue<'_>,
title: DOMString,
url: Option<USVString>,
) -> Result<(), Error>;
}