Closed Bug 229083 Opened 21 years ago Closed 21 years ago

keyword.enabled preference is required.

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dougt, Assigned: patrick)

References

()

Details

Attachments

(1 file, 1 obsolete file)

There is no clear reason why this pref shouldn't be optional defaulting to some value (probably false)
I agree, that's kind of harsh. Attached is a patch that makes the presence of the pref optional. If it is not there, we assume false.
Attachment #139817 - Flags: superreview?(bz-vacation)
Attachment #139817 - Flags: review?(bz-vacation)
I don't believe the prefs api guarantees not touching the out param on failure (XPCOM apis generally do not). So you need to set the our param to your default value if the call fails. Other than that, looks reasonable.
revision as per bz's comment. note that nsDocShell::Create calls mPrefs multiple times without checking the retval, so we might want to clean that up in the future.
Attachment #139817 - Attachment is obsolete: true
Attachment #139965 - Flags: superreview?(bsmedberg)
Attachment #139965 - Flags: review?(bsmedberg)
Comment on attachment 139965 [details] [diff] [review] revised to handle failure case oops, I got that all backwards.
Attachment #139965 - Flags: superreview?(bsmedberg)
Attachment #139965 - Flags: review?(bsmedberg)
Attachment #139965 - Flags: superreview?(bz-vacation)
Attachment #139965 - Flags: review?(bz-vacation)
Comment on attachment 139817 [details] [diff] [review] patch that makes the presence of "keyword.enabled" optional, defaults to false Please remove obsolete review requests...
Attachment #139817 - Flags: superreview?(bz-vacation)
Attachment #139817 - Flags: review?(bz-vacation)
Comment on attachment 139965 [details] [diff] [review] revised to handle failure case r+sr=bzbarsky.
Attachment #139965 - Flags: superreview?(bz-vacation)
Attachment #139965 - Flags: superreview+
Attachment #139965 - Flags: review?(bz-vacation)
Attachment #139965 - Flags: review+
Assignee: dougt → patrick
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: