[whatwg] "first script" and impersonating other pages - pushState(url)

Ian Hickson ian at hixie.ch
Thu Sep 3 15:19:30 PDT 2009


On Thu, 3 Sep 2009, Mike Wilson wrote:
>
> - calling pushState(..., "/pages/section1/thing2") when
>   first script's basedir=/pages/section1 will be ok
>
> - calling pushState(..., "/pages/section2/thing2") when
>   first script's basedir=/pages/section1 will not be 
>   allowed (and throw).
> 
> Is any of these wrong?

The path part of the URL is ignored when deciding whether or not to allow 
the call.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list