W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2012

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

From: Adam Barth <w3c@adambarth.com>
Date: Tue, 25 Sep 2012 09:54:42 -0700
Message-ID: <CAJE5ia_Mazmyg=OAhstyumfgMBjj49yu4ixX9Z6wLKJ-xs5OFw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg <whatwg@lists.whatwg.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Mon, Sep 24, 2012 at 11:31 PM, Boris Zbarsky <bzbarsky@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:

http://trac.webkit.org/browser/trunk/LayoutTests/fast/dom/Window/Location

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).

Adam
Received on Tuesday, 25 September 2012 16:55:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:07 UTC