channel-prefs.js is at the wrong location in FF-on-XR setups

RESOLVED FIXED in Firefox 14

Status

()

Firefox
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: glandium, Assigned: glandium)

Tracking

({regression})

13 Branch
Firefox 16
regression
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(firefox14 fixed, firefox15 fixed)

Details

Attachments

(1 attachment)

In Xulrunner applications, the defaults/pref/ directory under the application directory is not used for preferences, which means channel-prefs.js, being installed there unconditionally, is never going to be read.
Created attachment 631062 [details] [diff] [review]
Install channel-prefs.js in PREF_DIR when building Firefox as a XULRunner app
Attachment #631062 - Flags: review?(robert.bugzilla)
status-firefox14: --- → affected
status-firefox15: --- → affected
Attachment #631062 - Flags: review?(robert.bugzilla) → review+
FYI: The changes that caused this bug also landed on Aurora and are on beta as well now.
(In reply to Robert Strong [:rstrong] (do not email) from comment #2)
> FYI: The changes that caused this bug also landed on Aurora and are on beta
> as well now.

Which is why I had set status-firefox14: affected :)
https://hg.mozilla.org/integration/mozilla-inbound/rev/22a835a8a15f
Target Milestone: --- → Firefox 16

Comment 5

5 years ago
https://hg.mozilla.org/mozilla-central/rev/22a835a8a15f
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Comment on attachment 631062 [details] [diff] [review]
Install channel-prefs.js in PREF_DIR when building Firefox as a XULRunner app

[Approval Request Comment]
Bug caused by bug 756325, which was a late landing on aurora (a few days before beta merge).
User impact if declined: Only a problem for people building firefox as a xulrunner application.
Risk to taking this patch (and alternatives if risky): The patch doesn't change anything for mozilla builds.
Attachment #631062 - Flags: approval-mozilla-beta?
Attachment #631062 - Flags: approval-mozilla-aurora?

Updated

5 years ago
Attachment #631062 - Flags: approval-mozilla-beta?
Attachment #631062 - Flags: approval-mozilla-beta+
Attachment #631062 - Flags: approval-mozilla-aurora?
Attachment #631062 - Flags: approval-mozilla-aurora+
http://hg.mozilla.org/releases/mozilla-aurora/rev/b41fcee639da
http://hg.mozilla.org/releases/mozilla-beta/rev/90a5cad9b438
status-firefox14: affected → fixed
status-firefox15: affected → fixed
Blocks: 760792
Flags: in-testsuite-
Keywords: regression
Comment on attachment 631062 [details] [diff] [review]
Install channel-prefs.js in PREF_DIR when building Firefox as a XULRunner app

Review of attachment 631062 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/app/Makefile.in
@@ +142,5 @@
>  libs:: $(srcdir)/profile/channel-prefs.js
>  	$(NSINSTALL) -D $(DIST)/bin/defaults/pref
>  	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(ACDEFINES) $^ > $(DIST)/bin/defaults/pref/channel-prefs.js
> +else
> +PREF_JS_EXPORTS += $(srcdir)/profile/channel-prefs.js

I'm a little confused.
Isn't it useless to set PREF_JS_EXPORTS _after_ including rules.mk?
http://mxr.mozilla.org/comm-central/search?string=PREF_JS_EXPORTS&case=on
(In reply to Serge Gautherie (:sgautherie) from comment #8)
> Comment on attachment 631062 [details] [diff] [review]
> Install channel-prefs.js in PREF_DIR when building Firefox as a XULRunner app
> 
> Review of attachment 631062 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: browser/app/Makefile.in
> @@ +142,5 @@
> >  libs:: $(srcdir)/profile/channel-prefs.js
> >  	$(NSINSTALL) -D $(DIST)/bin/defaults/pref
> >  	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(ACDEFINES) $^ > $(DIST)/bin/defaults/pref/channel-prefs.js
> > +else
> > +PREF_JS_EXPORTS += $(srcdir)/profile/channel-prefs.js
> 
> I'm a little confused.
> Isn't it useless to set PREF_JS_EXPORTS _after_ including rules.mk?
> http://mxr.mozilla.org/comm-central/search?string=PREF_JS_EXPORTS&case=on

Mmmm you're right. Can you file a followup bug?
Depends on: 769130
(In reply to Mike Hommey [:glandium] from comment #9)
> Can you file a followup bug?

Bug 769130 Submitted
You need to log in before you can comment on or make changes to this bug.