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

Adam Barth w3c at adambarth.com
Tue Sep 25 10:16:57 PDT 2012


On Tue, Sep 25, 2012 at 10:15 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 9/25/12 12:54 PM, Adam Barth wrote:
>> 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.
>
> Well, one thing that needs to happen is that its behavior needs to be
> specced.  Should it do the same thing as the canonical
> Object.prototype.valueOf does?

Yeah, it doesn't need to do anything special.  It just need to not be
changeable by the page.

Adam



More information about the whatwg mailing list