W3C home > Mailing lists > Public > public-webcrypto@w3.org > May 2014

[Bug 25710] No Key Deletion

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 May 2014 16:10:08 +0000
To: public-webcrypto@w3.org
Message-ID: <bug-25710-7213-RYWnyUJ42O@http.www.w3.org/Bugs/Public/>

--- 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:22 UTC