[whatwg] Spec for location object needs to make some properties unforgeable; need supporting WebIDL changes

Adam Barth w3c at adambarth.com
Tue Sep 25 09:54:42 PDT 2012

On Mon, Sep 24, 2012 at 11:31 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 9/25/12 2:24 AM, Adam Barth wrote:
>> Also valueOf.
> We'd just need to add that on the interface to make it work, right?

I'm not sure what needs to be done in spec-land to make valueOf work
correctly, but in implementation-land it needs the same unforgability
mitigations as toString.

Here are a couple test suites that might be helpful:


In particular the location-override-* and location-shadow-* tests.
Also http://webblaze.cs.berkeley.edu/tests/window-location/ has a test
suite (which might overlap substantially with the former).


More information about the whatwg mailing list