stoically / temporary-containers

Firefox Add-on that lets you open automatically managed disposable containers
https://addons.mozilla.org/firefox/addon/temporary-containers/
MIT License
852 stars 60 forks source link

Addon break close button behavior on wikipedia.org #446

Closed krystian3w closed 2 years ago

krystian3w commented 4 years ago

Steps to reproduce

--- The site suddenly returns to the beginning. Turning off the add-on helps instantly and there is no scrolling to the beginning of the page. Also html anchors don't help, something overwrites the positions in this case.

Environment

Actual behavior

When you click on the closing button with the mouse **the page suddenly "scroll" to the top**. A workaround can be the use of the physical ESC key or the combination TAB + Space bar.

Expected behavior

An add-on should not interfere with the gallery code when you click on the gallery close "✖️" button. There shouldn't be any jumping of the website to the top.

Notes

The problem appeared somewhere with Firefox 70+ (in 68/69 it still worked OK). It's possible that it's a bug in Firefox code requiring additional notification on the `bugzilla` or finding it in the exist thicket of tickets. In addition, even using the oldest version of Addon `v0.91` seems to confirm this.
stoically commented 4 years ago

Huh, now that's a really interesting bug. And it seems to actually be triggered by TC. I wonder how this is even possible. I guess it must have something to do with the content script, though, I don't see how that could trigger such behavior, since it doesn't call preventDefault() or similar.

krystian3w commented 2 years ago

Maybe no longer glitched in Firefox 94.0.1 or Fixed inside addon 1.9.0 stable and newer.