[Bug 26178] ECMAScript standard library

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26178

--- Comment #4 from Ryan Sleevi <sleevi@google.com> ---
The logic behind the decision that got us here:

1) Earlier drafts introduced specific notions of key storage (eg: yet another
web storage mechanism), and thus hanging off window (indicating there is
logical storage attached to the current document) was seen as appropriate

2) As a consequence of that storage choice, there was a distinction between
what was available to window and what was available to workers (how to handle
locking of the storage database and signals of storage database changes)

3) The window.crypto.subtle is a reflection of the WG's decision to pursue a
low-level API at present, but still leave flexibility for a 'high-level' API -
one which might include device-level interactions (such as being discussed
during the upcoming September workshop)

(In reply to Anne from comment #2)
> It is already a global

Unintentional, but I suspect a consequence of omitting NoInterfaceObject,
because callers were going to be allowed to override the .prototype to extend
the algorithms (however, in practice, this doesn't work; one cannot define a
new hash/digest algorithm and then have it work with RSA, for example).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 24 June 2014 16:48:07 UTC