[Bug 26322] Definitions "algorithm" and "usages" properties of CryptoKey make no sense

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

--- Comment #8 from Boris Zbarsky <bzbarsky@mit.edu> ---
> Is there any reason we cannot convert from IDL dictionary to frozen JS object
> at CryptoKey creation time and store the result in the [[algorithm]] internal
> slot.
>
> The algorithm attribute would then simply return the contents of the
> [[algorithm]] internal slot.

That seems fine.  Again, this is not black-box distinguishable from doing it on
first get, so browsers could still do it lazily.

> This doesn't work for usages, as the frozen Array object can still be modified
> by the script.

You can't modify a frozen array object.  That's the point of freezing.

What you can do is throw it out and create a new array object.

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

Received on Wednesday, 8 October 2014 03:39:28 UTC