Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Open

v151.0.4 session-memory change relating to radio button state?

jbr replied
E.C. Marm

My Home page is a local HTML file featuring a CSS-based tabbed notebook holding links organized into various categories. When exiting FF, I always have this page as the active browser tab, so that on start-up it's still the active one in the event of multiple open browser tabs.

Until v151.0.4 (and still now with v152.0), if I exited FF with the active notebook tab (actually a styled radio button under the hood) in my CSS tabbed notebook something other than the first/leftmost tab, FF would restart with that being the active tab, but after a few seconds of CPU activity as the browser initialized the active notebook tab would switch to the first/leftmost one. (In my HTML I also have <input type="radio" name="tabs" checked> specified for this first/leftmost instance.)

Since the update, however, it remains stuck on the one from the last browser session as first displayed. I suppose I can live with this, but I do wonder what accounts for the change in behavior. If it's by design, where is it documented? If not ... maybe it calls for a bug report.

My Home page is a local HTML file featuring a CSS-based tabbed notebook holding links organized into various categories. When exiting FF, I always have this page as the active browser tab, so that on start-up it's still the active one in the event of multiple open browser tabs. Until v151.0.4 (and still now with v152.0), if I exited FF with the active ''notebook'' tab (actually a styled radio button under the hood) in my CSS tabbed notebook something other than the first/leftmost tab, FF would restart with that being the active tab, but after a few seconds of CPU activity as the browser initialized the active notebook tab would switch to the first/leftmost one. (In my HTML I also have '''<input type="radio" name="tabs" checked>''' specified for this first/leftmost instance.) Since the update, however, it remains stuck on the one from the last browser session as first displayed. I suppose I can live with this, but I do wonder what accounts for the change in behavior. If it's by design, where is it documented? If not ... maybe it calls for a bug report.

All Replies (5)

I quickly checked using https://www.w3.org/WAI/ARIA/apg/patterns/radio/examples/radio/ and can't get to store any selected value between restarts. Might be local file://–specific, or something related to the actual JS of your page?

Could you reproduce the same with any form/UI hosted online?

jbr: One can rule out JS as the page doesn't use any. As for the theory that being locally hosted might be a factor, I just copied the page in question to my online storage, opened it, changed the active notebook tab, and closed FF. On restarting, it still clung to the same notebook tab, the same behavior as with the local copy.

My best theory is that it somehow relates to a change in the handling of the checked attribute: whereas before 151.0.4 it was honored after the browser had initially rendered the page using some other item, now it sticks with the one preserved from the prior session. If that's it, the question is whether this is by design or accidental.

You can try to run mozregression to pinpoint the exact change that would visibly change this behavior.

jbr: Alas, my environment here doesn't readily lend itself to using mozregression. I could, however, contribute a simplified test file that demonstrates the problem if it's of any value.

Maybe I should just enter this as a bug; that way I can learn whether it's intentional or inadvertent and, if the latter, maybe even get a fix for it -- though, as mentioned, I could simply live with it this way without much grief.

The fun thing about mozregression is that every single version it pulls is run from a temp dir pointed at a temp location for its profile folder for you that's cleaned up between each bisection run, so whenever you need to run it, your normal browser and profile are safe from those runs — you can just alternatively pick your profile folder for it to clone, to e.g. use your current sessionrestore data for the experiments, or it can also run completely isolated in a blank slate.

But thinking of it now, its ephemeral nature doesn't work out ideally for this use case where you want to see things between restarts (the log output tells which tmp folder .exe it ran so you'd be able to launch the version again manually by re–running the same command, but that might be a little overwhelming for a first time.)

Given the minimal reproducible example wasn't included, I was not able to look whether it's some CSS activation/focusing state that might get cached etc. so I had too little to look for in bugzilla — to first check if that's a feature shipped, or a deliberate choice with prior timeline of decisions. (The pushlog from mozregression would point to the exact patch, and its bugzilla history, to see if the result indeed might be intentional.)

If you're able to provide a reproducible example and willing to file a bug, that's definitely a way to learn if the current behavior is expected or not. Thanks!

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.