Closed Bug 178440 Opened 22 years ago Closed 22 years ago

[mach] Mach-0 mozilla ignores startup prefs

Categories

(Core :: Preferences: Backend, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.2final

People

(Reporter: ccarlen, Assigned: ccarlen)

Details

Attachments

(1 file)

Mozilla only enumerates the general.startup.* prefs (those set in the prefs UI)
if the program receives the default number of args. "Default" is considered to be 1.
http://lxr.mozilla.org/seamonkey/source/xpfe/bootstrap/nsAppRunner.cpp#1470
But the Mach-0 build, if double-clicked from the Finder, is passed 2 args so we
don't read these prefs.
Taking.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2final
Attached patch patchSplinter Review
This fixes it on 10.2. Can anybody with a 10.1 system test whether we get
passed the psn arg on 10.1 as well?
Comment on attachment 105192 [details] [diff] [review]
patch

r=sdagley (ccarlen and I discussed the PSN compare and he's convinced me the
sprintf is less overhead than a scanf)

And verified this will work on 10.1 as we get 2 args there with the 2nd being
the PSN
Attachment #105192 - Flags: review+
Comment on attachment 105192 [details] [diff] [review]
patch

sr=sfraser
Attachment #105192 - Flags: superreview+
Component: Browser-General → Preferences: Backend
QA Contact: asa → sairuh
Comment on attachment 105192 [details] [diff] [review]
patch

a=asa for checkin to the 1.2 branch (on behalf of drivers).
Attachment #105192 - Flags: approval+
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Checked into 1.2 branch.
out of curiosity, should this be checked into the trunk as well? (unless you
already did so earlier. :)
It went into the trunk already.
okay, good.

rs vrfy (checked lxr) with 2002.11.18.14 (trunk, mach-o).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: