Closed
Bug 191557
Opened 23 years ago
Closed 22 years ago
Header of user prefs file is malformed
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 193638
People
(Reporter: BenB, Assigned: bnesse)
References
Details
Attachments
(1 obsolete file)
prefs.js containes the following generated header:
# Mozilla User Preferences
// This is a generated file!
Appearently, this has pretty much always been this way. However,
* This is malformed. According to the JS reference
<http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/comment.html#1066617>,
JS comments are like C++ comments: // or /* */. Not "#", which is Unix
Perl/configfile-style.
* Zach Lipton reports that this causes an error in a 1.0.2 Mac OS X build he
created. He wrote:
"I get the following error on launch:
Configuration Warning
An error occurred reading the startup configuration file. Please contact
your administrator. line 335: SyntaxError: illegal character. # Mozilla
User Preferences"
| Reporter | ||
Comment 1•23 years ago
|
||
Prevents creating new buggy prefs.js files. Note sure, if it is also used to
regenerate prefs.js, so taht existing profiles are fixed automatically.
Updated•22 years ago
|
Attachment #113301 -
Flags: review?(ccarlen)
Comment 2•22 years ago
|
||
Believe it or not, that's on purpose:
http://lxr.mozilla.org/seamonkey/source/modules/libpref/src/prefapi.cpp#398
Notice the reporter said
line 335: SyntaxError: illegal character. # Mozilla
User Preferences"
If that occured on line 335, the file was corrupted.
I think this is invalid.
| Reporter | ||
Comment 3•22 years ago
|
||
Funny. This bug as reported is then probably invalid, yes.
Strange error still, because the reportedly bad line seems to be correct, then.
Maybe there was some malformed whitespace char in the file? *shrug*
| Reporter | ||
Updated•22 years ago
|
Attachment #113301 -
Attachment is obsolete: true
Comment 4•22 years ago
|
||
*** Bug 205597 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Attachment #113301 -
Flags: review?(ccarlen)
This is clear a dupe of Bug 193638, isn't it?
>Configuration Warning
>An error occurred reading the startup configuration file. Please contact
>your administrator. line 335: SyntaxError: illegal character. # Mozilla
>User Preferences"
| Reporter | ||
Comment 6•22 years ago
|
||
*** This bug has been marked as a duplicate of 193638 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•