[Bug 25710] No Key Deletion

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

--- Comment #1 from Ryan Sleevi <sleevi@google.com> ---
(In reply to Kelsey Cairns from comment #0)
> There seems to be no way to delete a key object. An application might
> create many keys during a session (e.g. symmetric keys for encrypted
> chat or encrypted email) that it no longer needs. One should be able
> to delete them.
> 
> Perhaps the intention was to allow the user to delete keys, like
> cookies? If so, this should be clarified.

I'm fairly certain this bug is invalid, but I would like to see if there isn't
any changes needed.

Javascript does not have deletion semantics. Instead, it has scopes - and when
a Key goes out of active scopes, it's no longer valid/accessible. While it's
still bound to a scope - including the global scope - it is.

If the scopes change - eg: by navigating to a different page - than all objects
are invalidated.

This is a standard part of the language, which is why the spec does not say
anything. It would be akin to filing a bug against a C++ spec saying "Spec does
not say when destructor is run" - even though the language itself is quite
clear when destructors are run.

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

Received on Wednesday, 14 May 2014 16:10:09 UTC