Closed Bug 357014 Opened 18 years ago Closed 18 years ago

browser.warnOnAboutConfig isn't always remembered.

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: neil)

References

Details

(Keywords: fixed-seamonkey1.1b)

Attachments

(1 file, 1 obsolete file)

I'm filing this here as that's where the original bug that implemented browser.warnOnAboutConfig was (bug 339720).

Using the following method causes the state of browser.warnOnAboutConfig to be forgotten:

1) Bring up about:config
2) uncheck "Show this warning next time"
3) submit -> config screen displayed.
4) New tab or window
5) bring up about:config again, config screen is displayed straight away.
6) New tab or window
7) bring up about:config again, the warning screen is displayed instead of the config screen.

At step 5) browser.warnOnAboutConfig is reset to true, I think this will also happen with restarting the app.

I think this section is the problem:

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpfe/global/resources/content/config.js&rev=1.27&mark=368-372#335

as its assuming that showWarningNextTime has been set to the preference value but the xul always initialises it to true:

http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/config.xul#86
dumping in SeaMonkey since FF doesn't have this bug (yet :)) and so we get SeaMonkey flags.
Assignee: nobody → cst
Component: XP Miscellany → XP Apps: GUI Features
Product: Core → Mozilla Application Suite
QA Contact: brendan → guifeatures
This should block beta (it'd be nice to get the fixed solution tested) if not final.
Flags: blocking-seamonkey1.1b?
Yeah, the code might as well unconditionally set the pref at that point.
I understand now.  It's not at all related to having about:config open at the same time in multiple places.  Patch in a few minutes.
Blocks: 339720
No longer depends on: 339720
Attached patch patch (obsolete) (deleted) — Splinter Review
I could have done this another way, but this keeps all callees as just one simple line and doesn't add any new one-line functions.  Not setting "sr?" because I don't think this patch requires it.
Attachment #242583 - Flags: review?(neil)
Attached patch What I said, but fixed ;-) (deleted) — Splinter Review
Attachment #242619 - Flags: review?(cst)
Comment on attachment 242619 [details] [diff] [review]
What I said, but fixed ;-)

Oh.  Because you can't actually check the box once it's been unchecked.  Ok :)
Attachment #242619 - Flags: review?(cst) → review+
Attachment #242583 - Attachment is obsolete: true
Attachment #242583 - Flags: review?(neil)
Fix checked in to trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 242619 [details] [diff] [review]
What I said, but fixed ;-)

Neil landed with a=me.
Attachment #242619 - Flags: approval-seamonkey1.1b+
Flags: blocking-seamonkey1.1b?
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: