Closed Bug 916101 Opened 11 years ago Closed 9 years ago

New preferences warning isn't useful - should contain name of pref

Categories

(Toolkit :: Preferences, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file)

There's a new preference warning that looks like this:

[08:24:54.501] Warning: attempting to write 9311 bytes to preference config. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file.

It's not very helpful because it doesn't contain the name of the preference.

The name of the preference should in the warning.
> [08:24:54.501] Warning: attempting to write 9311 bytes to preference config.

The name of the preference is CONFIG.
And yes, the full name would help more.
Attached patch Use getPrefNameSplinter Review
getPrefName converts the branch pref into the entire pref name.
Attachment #8590797 - Flags: review?(dougt)
Attachment #8590797 - Flags: review?(dougt) → review?(dtownsend)
Attachment #8590797 - Flags: review?(dtownsend) → review+
https://hg.mozilla.org/mozilla-central/rev/b49502604e7c
Assignee: nobody → mozilla
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: