Closed
Bug 1053185
Opened 11 years ago
Closed 10 years ago
Missing preferences for Mulet (dist, package)
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
(Keywords: regression, Whiteboard: [systemsfe])
Attachments
(5 files, 4 obsolete files)
This was working, but now it's not working anymore. When starting Mulet, we get the default Firefox starting page.
Assignee | ||
Comment 2•11 years ago
|
||
Even the firstrun pref is properly defined but it's like it has no effect.
Comment 3•11 years ago
|
||
It might be interesting to trace:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#4953
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #3)
> It might be interesting to trace:
> http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.
> js#4953
Well all I find for now shows that SOME prefs are pulled from b2g.js and some are from firefox.js ; namely, |browser.startup.homepage| is "about:home" (Firefox) while |browser.viewport.scaleRatio| is properly defined from B2G.
Assignee | ||
Comment 5•11 years ago
|
||
And hacking:
> mv obj-mulet/dist/bin/defaults/pref/b2g.js obj-mulet/dist/bin/browser/defaults/preferences/
Seems to do the job.
Updated•11 years ago
|
Whiteboard: [systemsfe]
Assignee | ||
Comment 6•11 years ago
|
||
This is the order in which pref files are read.
Assignee | ||
Comment 7•11 years ago
|
||
And we can see what happens after moving the b2g.js file as documented earlier.
Assignee | ||
Comment 8•11 years ago
|
||
Due to the way preferences are read, we need to have firefox.js and
b2g.js to be living together in the same directory, as exposed in bug
1053185 comment 7. Doing so will ensure that the proper precedence is
given to the pref and in the end we ensure that the preferences we
redefine in b2g.js indeed overwrite those defined by firefox.js. To do
so, we need to define DIST_SUBDIR to browser for Mulet so that rules.mk
will pick up the proper preferences directory.
Assignee | ||
Comment 9•11 years ago
|
||
With the patch proposed in attachment 8475183 [details] [diff] [review], I don't have any issue now :)
Flags: needinfo?(poirot.alex)
Comment 10•11 years ago
|
||
As soon as a build peer is fine with such hack...
but there might be better ways to ensure that b2g/app/b2g.js is processed after browser/app/profile/firefox.js.
For example I don't know if the order between b2g/ and browser/ is important over here:
http://mxr.mozilla.org/mozilla-central/source/b2g/dev/app.mozbuild#20
Or if there is some more magic to do in this Makefile:
http://mxr.mozilla.org/mozilla-central/source/b2g/dev/app/Makefile.in
Flags: needinfo?(poirot.alex)
Updated•11 years ago
|
Flags: needinfo?(mshal)
Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #10)
> As soon as a build peer is fine with such hack...
> but there might be better ways to ensure that b2g/app/b2g.js is processed
> after browser/app/profile/firefox.js.
>
> For example I don't know if the order between b2g/ and browser/ is important
> over here:
> http://mxr.mozilla.org/mozilla-central/source/b2g/dev/app.mozbuild#20
>
> Or if there is some more magic to do in this Makefile:
> http://mxr.mozilla.org/mozilla-central/source/b2g/dev/app/Makefile.in
I played already with the add_tier() ordering and it had no impact.
Assignee | ||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #10)
> As soon as a build peer is fine with such hack...
The hack you're referring to is setting DIST_SUBDIR to browser, correct? I think it's fine - it fits in with how we use DIST_SUBDIR elsewhere in moz.build files, and given how mulet operates we have to expect this sort of overlap between browser/b2g.
> but there might be better ways to ensure that b2g/app/b2g.js is processed
> after browser/app/profile/firefox.js.
I don't have another solution to suggest off-hand, but if you want me to dig into it further let me know.
Flags: needinfo?(mshal)
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8475183 [details] [diff] [review]
Define DIST_SUBDIR for Mulet
Michael, since you are fine with this way of doing, I'm asking review.
Pending try is at https://tbpl.mozilla.org/?tree=Try&rev=671ee5ec408b
Attachment #8475183 -
Flags: review?(mshal)
Updated•11 years ago
|
Attachment #8475183 -
Flags: review?(mshal) → review+
Assignee | ||
Comment 15•11 years ago
|
||
Looks like the try is green: https://tbpl.mozilla.org/?tree=Try&rev=671ee5ec408b :)
Keywords: checkin-needed
Comment 16•11 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S3 (29aug)
Comment 18•10 years ago
|
||
This patch broke mulet's package so that gaia doesn't work anymore when running mulet out of the tar.bz2 package...
I don't really know why... I see various exception about xpcom being registered twice, and also some exception about mozSettings not being available.
We should back this out as having working packages is more important than having gaia being automagically opened.
Comment 19•10 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #18)
> This patch broke mulet's package so that gaia doesn't work anymore when
> running mulet out of the tar.bz2 package...
> I don't really know why... I see various exception about xpcom being
> registered twice, and also some exception about mozSettings not being
> available.
>
> We should back this out as having working packages is more important than
> having gaia being automagically opened.
backedout in https://tbpl.mozilla.org/?rev=06e1ca1fbf24
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 20•10 years ago
|
||
In dist/firefox/omni.ja, I see a lot of stuff. Specifically, I see the duplicated components you mentionned.
Assignee | ||
Comment 21•10 years ago
|
||
Assignee | ||
Comment 22•10 years ago
|
||
So Michael, we need your help:
- without this patch, we end up with b2g at a wrong place and it does not do its job
- with the patch, the dist/firefox is just broken and cannot run Gaia
So I hope you can help us find a way to get the b2g.js file properly placed without having to device DIST_SUBDIR.
Flags: needinfo?(mshal)
Comment 23•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #22)
> So Michael, we need your help:
> - without this patch, we end up with b2g at a wrong place and it does not
> do its job
> - with the patch, the dist/firefox is just broken and cannot run Gaia
>
> So I hope you can help us find a way to get the b2g.js file properly placed
> without having to device DIST_SUBDIR.
I see the duplicate components in omni.ja both with and without the patch - are you sure that's related to the problem?
With the patch, can you walk me through how to reproduce the problem you're seeing?
Flags: needinfo?(mshal) → needinfo?(lissyx+mozillians)
Assignee | ||
Comment 24•10 years ago
|
||
So first, generate a Gaia profile:
> make MOZILLA_OFFICIAL=1 PRODUCTION=1 PROFILE_FOLDER=profile-mulet profile-mulet
Then, after mach build package:
> ./obj-mulet/dist/firefox/firefox -no-remote -profile ../gaia/profile-mulet -jsconsole -chrome 'chrome://b2g/content/shell.html'
Then you should reproduce the issue.
Flags: needinfo?(lissyx+mozillians) → needinfo?(mshal)
Comment 25•10 years ago
|
||
I think it would be way more helpful for Michael if you could say what is actually wrong.
Do we miss some prefs? Is there some broken js xpcom? Is there something wrong with permissions?
Saying "gaia doesn't work" isn't that helpful :/
Assignee | ||
Comment 26•10 years ago
|
||
Well the only reliable symptom we see are those you documented: not booting, mozSettings not present. Apart from this, I could not get any more clue :(
Comment 27•10 years ago
|
||
We should figure out why mozSettings isn't working/available.
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(mshal)
Assignee | ||
Comment 28•10 years ago
|
||
Due to the way preferences are read, we need to have firefox.js and
b2g.js to be living together in the same directory, as exposed in bug
1053185 comment 7. Doing so will ensure that the proper precedence is
given to the pref and in the end we ensure that the preferences we
redefine in b2g.js indeed overwrite those defined by firefox.js. To do
so, we need to define DIST_SUBDIR to browser for Mulet so that rules.mk
will pick up the proper preferences directory. We also have to make sure
that the B2G-specifics preferences are properly packaged otherwise the
redistribuable tarball will not boot Gaia at all.
Assignee | ||
Comment 29•10 years ago
|
||
Assignee | ||
Comment 30•10 years ago
|
||
Comment on attachment 8475183 [details] [diff] [review]
Define DIST_SUBDIR for Mulet
Obsoleted by backout.
Attachment #8475183 -
Attachment is obsolete: true
Assignee | ||
Comment 31•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #29)
> https://tbpl.mozilla.org/?tree=Try&rev=56fb3e22b8fb
> https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=56fb3e22b8fb
The try request was wrong. Here is a new one:
https://tbpl.mozilla.org/?tree=Try&rev=262365e5fd0b
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=262365e5fd0b
Assignee | ||
Comment 32•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8486361 -
Flags: review?(mshal)
Comment 33•10 years ago
|
||
Comment on attachment 8486361 [details] [diff] [review]
Fix preferences installation and packaging for Mulet r=mshal
r+ assuming try is green.
Attachment #8486361 -
Flags: review?(mshal) → review+
Assignee | ||
Comment 34•10 years ago
|
||
And we have a green try: https://tbpl.mozilla.org/?tree=Try&rev=57a9da471059
Keywords: checkin-needed
Comment 35•10 years ago
|
||
Keywords: checkin-needed
Updated•10 years ago
|
Target Milestone: 2.1 S3 (29aug) → 2.1 S4 (12sep)
Comment 36•10 years ago
|
||
Backed out for Mulet mochitest perma-fail.
https://hg.mozilla.org/integration/b2g-inbound/rev/6b3948d3413a
https://tbpl.mozilla.org/php/getParsedLog.php?id=47704030&tree=B2g-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=47704129&tree=B2g-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=47704108&tree=B2g-Inbound
Assignee | ||
Comment 37•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #36)
> Backed out for Mulet mochitest perma-fail.
> https://hg.mozilla.org/integration/b2g-inbound/rev/6b3948d3413a
>
> https://tbpl.mozilla.org/php/getParsedLog.php?id=47704030&tree=B2g-Inbound
> https://tbpl.mozilla.org/php/getParsedLog.php?id=47704129&tree=B2g-Inbound
> https://tbpl.mozilla.org/php/getParsedLog.php?id=47704108&tree=B2g-Inbound
Looking at the other tests making use of PopupNotifications.panel, I see those are disabled on Mulet.
Flags: needinfo?(poirot.alex)
Assignee | ||
Comment 38•10 years ago
|
||
Due to the way preferences are read, we need to have firefox.js and
b2g.js to be living together in the same directory, as exposed in bug
1053185 comment 7. Doing so will ensure that the proper precedence is
given to the pref and in the end we ensure that the preferences we
redefine in b2g.js indeed overwrite those defined by firefox.js. To do
so, we need to define DIST_SUBDIR to browser for Mulet so that rules.mk
will pick up the proper preferences directory. We also have to make sure
that the B2G-specifics preferences are properly packaged otherwise the
redistribuable tarball will not boot Gaia at all.
Assignee | ||
Comment 39•10 years ago
|
||
New version of the patch with some test disabled, while I'm not a big fan of this.
https://tbpl.mozilla.org/?tree=Try&rev=4dd7d73409e7
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=4dd7d73409e7
I could not reproduce the other errors locally (both the crash and the error referring to acertified.com)
Assignee | ||
Comment 40•10 years ago
|
||
Due to the way preferences are read, we need to have firefox.js and
b2g.js to be living together in the same directory, as exposed in bug
1053185 comment 7. Doing so will ensure that the proper precedence is
given to the pref and in the end we ensure that the preferences we
redefine in b2g.js indeed overwrite those defined by firefox.js. To do
so, we need to define DIST_SUBDIR to browser for Mulet so that rules.mk
will pick up the proper preferences directory. We also have to make sure
that the B2G-specifics preferences are properly packaged otherwise the
redistribuable tarball will not boot Gaia at all.
Assignee | ||
Comment 41•10 years ago
|
||
Disabling a couple more of tests that were already disabled for B2G Desktop.
https://tbpl.mozilla.org/?tree=Try&rev=079b765f9ed5
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=079b765f9ed5
Comment 42•10 years ago
|
||
We were most likely missing many b2g specific when running tests against broken package,
I imagine you fixed many things and may have to disable many tests.
Flags: needinfo?(poirot.alex)
Comment 43•10 years ago
|
||
We might want to switch to the b2gdesktop set of mochitests, rather than the desktop set that Mulet is currently running.
Assignee | ||
Comment 44•10 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #43)
> We might want to switch to the b2gdesktop set of mochitests, rather than the
> desktop set that Mulet is currently running.
How can we do this ?
BTW I sent a new Try https://tbpl.mozilla.org/?tree=Try&rev=346ec51965f8 where I hacked removing the MOZ_DISABLE_NONLOCAL_CONNECTIONS env var.
Assignee | ||
Comment 45•10 years ago
|
||
Small shell script to help identifying quickly the failures and the matching mochitest:
> $ sh ../find-try-errors.sh 346ec51965f8
> Failure ID 47795289:
> content/html/document/test/test_bug741266.html:
> content/html/document/test/mochitest.ini
> docshell/test/navigation/test_bug344861.html:
> docshell/test/navigation/mochitest.ini
>
> Failure ID 47795215:
> layout/forms/test/test_bug478219.xhtml:
> layout/forms/test/mochitest.ini
> layout/forms/test/test_bug564115.html:
> layout/forms/test/mochitest.ini
> layout/forms/test/test_bug572649.html:
> layout/forms/test/mochitest.ini
> layout/forms/test/test_bug644542.html:
> layout/forms/test/mochitest.ini
> layout/forms/test/test_bug672810.html:
> layout/forms/test/mochitest.ini
>
> Failure ID 47795021:
> dom/tests/mochitest/bugs/test_bug369306.html:
> dom/tests/mochitest/bugs/mochitest.ini
> dom/tests/mochitest/bugs/test_window_bar.html:
> dom/tests/mochitest/bugs/mochitest.ini
>
Assignee | ||
Comment 46•10 years ago
|
||
Due to the way preferences are read, we need to have firefox.js and
b2g.js to be living together in the same directory, as exposed in bug
1053185 comment 7. Doing so will ensure that the proper precedence is
given to the pref and in the end we ensure that the preferences we
redefine in b2g.js indeed overwrite those defined by firefox.js. To do
so, we need to define DIST_SUBDIR to browser for Mulet so that rules.mk
will pick up the proper preferences directory. We also have to make sure
that the B2G-specifics preferences are properly packaged otherwise the
redistribuable tarball will not boot Gaia at all.
Assignee | ||
Updated•10 years ago
|
Summary: Mulet does not open shell.html by default → Missing preferences for Mulet (dist, package)
Assignee | ||
Comment 47•10 years ago
|
||
Comment on attachment 8487001 [details] [diff] [review]
Fix preferences installation and packaging for Mulet r=mshal
Let's focus only on prefernces for this bug.
Attachment #8487001 -
Attachment is obsolete: true
Assignee | ||
Comment 48•10 years ago
|
||
Comment on attachment 8487037 [details] [diff] [review]
Fix preferences installation and packaging for Mulet r=mshal
Let's focus only on prefernces for this bug.
Attachment #8487037 -
Attachment is obsolete: true
Assignee | ||
Comment 49•10 years ago
|
||
Comment on attachment 8487891 [details] [diff] [review]
Fix preferences installation and packaging for Mulet r=mshal
Back to the original r+ patch
Attachment #8487891 -
Attachment is obsolete: true
Assignee | ||
Comment 50•10 years ago
|
||
So in fact we don't have to change anything to this patch, but it will need to wait for bug 1066044 to be able to land: we're taking care of disabling the remaining mochitests in this bug.
Assignee | ||
Comment 51•10 years ago
|
||
So now that bug 1066044 made it, this one can.
This try was with both bugs landed, and was green: https://tbpl.mozilla.org/?tree=Try&rev=b1950fdbd196
Keywords: checkin-needed
Comment 52•10 years ago
|
||
Keywords: checkin-needed
Comment 53•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•