Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

window.addEventListener('storage' ...) not Firing When "Clear Data" Button Used from "Settings | Privacy and Security"

more options

In JavaScript I did addEventListener('storage', ...), and it's working fine as long as I use localStorage.setItem(), .removeItem(), or .clear(). However, when I use the "Clear Data..." button under "Settings | Privacy and Security" it seems the event does not fire. I noticed that in Chrome the corresponding settings option to clear all data does fire the storage listener, and this is the behavior I'm looking for.

Thanks.

In JavaScript I did addEventListener('storage', ...), and it's working fine as long as I use localStorage.setItem(), .removeItem(), or .clear(). However, when I use the "Clear Data..." button under "Settings | Privacy and Security" it seems the event does not fire. I noticed that in Chrome the corresponding settings option to clear all data does fire the storage listener, and this is the behavior I'm looking for. Thanks.

모든 댓글 (1)

more options

You want your web app to be able to detect that the user deleted data from Local Storage via browser features? I don't know whether the events are intended to fire in that case; maybe not. You could search Bugzilla or submit a new bug.

https://bugzilla.mozilla.org/