pub trait WorkerLocationMethods<D>where
    D: DomTypes,{
    // Required methods
    fn Href(&self) -> USVString;
    fn Origin(&self) -> USVString;
    fn Protocol(&self) -> USVString;
    fn Host(&self) -> USVString;
    fn Hostname(&self) -> USVString;
    fn Port(&self) -> USVString;
    fn Pathname(&self) -> USVString;
    fn Search(&self) -> USVString;
    fn Hash(&self) -> USVString;
}