Closed sbnedkov closed 9 years ago
Hey! Thanks for the bug report.
I guess we'll need to safeguard event.key with a check for defined/null to be sure that this error does not happen.
I don't think it's a browser bug, I'm thinking it might be just a event without a key that is to tell the listeners about the clear
and not a change to any key.
Yes, this will fix it, I just tried. Tell me if I can help test a solution.
Hi,
I've been experiencing this strange error that seems related to some race condition on one side but I was able to reproduce it pretty frequently. The error manifests itself with a:
TypeError: event.key is null
at
https://github.com/gsklee/ngStorage/blob/master/ngStorage.js#L193
Here is the cleanest setup I was able to create for reproducing, happens in both Firefox and Chrome:
index.html:
iframe.html:
I'm curious to hear what might be the reason, is this a browser bug?
Cheers.