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

@@symbol hooks and cross domain frames

From: Erik Arvidsson <arv@google.com>
Date: Thu, 9 Jul 2015 09:47:34 -0400
Message-ID: <CAJ8+GojE-3KtQHV4signhGX=aMAh5rV22FpBFOZ7Dfdz4R9Law@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
Cc: Adam Klein <adamk@google.com>, Caitlin Potter <caitpotter88@gmail.com>, Allen Wirfs-Brock <allenwb@mozilla.com>, Brian Terlson <brian.terlson@microsoft.com>
In ES5 the following works:

  [].concat(windowFromOtherDomain)

But in ES6 it fails because reading @@isConcatSpreadable throws an
access denied error.

Similar issues arise with @@toStringTag and @@hasInstance

To stay web compatible we are thinking that if these [[Get]]s fail
their access check we treat the value as undefined.

There might also be similar issues with Get(x, "constructor") and
@@species but I believe all of them might be better of throwing.

-- 
erik
Received on Thursday, 9 July 2015 13:48:32 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 9 July 2015 13:48:33 UTC