W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 11838] In Gecko, Opera, and IE, the "name" property on Window is replaceable

From: <bugzilla@jessica.w3.org>
Date: Sat, 19 Feb 2011 01:44:05 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pqbrh-0000cS-UQ@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11838

--- Comment #10 from Kyle Simpson <w3c@getify.myspamkiller.com> 2011-02-19 01:44:05 UTC ---
At least in IE, I believe this will also overwrite/replace window.name with a
var called `name`:

    try {
       nonexistent();
    }
    catch (name) { }

As in IE, the variable in the catch-clause gets created as a variable in the
containing scope.

Also, what about:

    function name() {}

And (again, in IE, bug with NFE's):

    var a = function name(){};

And: 

    eval("var name = 12;");

And:

    var a = name = 12;

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 19 February 2011 01:44:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 19 February 2011 01:44:10 GMT