biancadanforth / tracking-protection-shield-study

A Shield study to determine the optimal messaging, if any, for Tracking Protection in Firefox.
0 stars 3 forks source link

Prevent new-tab-closed event from firing twice in a row. Fixes #159. #168

Closed biancadanforth closed 6 years ago

biancadanforth commented 6 years ago

I'm still not sure why it's firing twice every time...

I can only see the about:newtab page load event firing once, as expected, but for some reason the "beforeunload" event fires twice every time.

For now, I can pass an options argument to the listener to only fire once.