Closed Bug 24833 Opened 25 years ago Closed 25 years ago

Font prefs not saved, not read from prefs.js

Categories

(SeaMonkey :: Preferences, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 24830

People

(Reporter: rzach, Assigned: matt)

Details

Changing the font preferences does not result in new font prefs to be written to
prefs.js, nor are the settings persistent across calls to the pref panel.

To reproduce:
1. Edit | Preferences | Fonts

Actual result: default fonts, default size of 8pts; screen resolution of 96.
Expected result: these values should be taken from prefs.js, which contains the
following lines: 

user_pref("browser.screen_resolution", 120);
user_pref("font.size.fixed.x-western", 15);
user_pref("font.size.variable.x-western", 18);

2. Change font sizes, screen resolution
3. Click OK

Actual result:  The prefs window is not dismissed, but the font size change
takes effect in the browser window.  (The text is redisplayed, but the page is
not reformatted, so the output is garbled.  That's bug 24343).  The font values
and screen resolution is not saved to prefs.js.  If the prefs dialog is
dismissed with cancel or close window, and then opened again, the old font sizes
are still there.

Console output:
*** VALUE=x-western
*** VALUE=8
*** VALUE=48
JavaScript Error: uncaught exception: [Exception... "Component returned failure
code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPref.SetCharPref]"  nsresult:
"0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
chrome://pref/content/pref.js :: PREF_ParsePref :: line 151"  data: no]

Expected result: prefs dialog dismissed, font changes take effect, saved to
prefs.js and remembered next time font prefs dialog is opened.

Linux build 2000.01.23.09
Weird. Got submitted twice.  

*** This bug has been marked as a duplicate of 24830 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified dup.
Status: RESOLVED → VERIFIED
Bulk move of all Pref UI component bugs to new Preferences component.  Pref UI 
component will be deleted.
Component: Pref UI → Preferences
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.