Closed Bug 1037474 Opened 11 years ago Closed 11 years ago

2.x simulators don't work with Firefox 31 or earlier

Categories

(Firefox OS Graveyard :: Simulator, defect)

defect
Not set
normal

Tracking

(firefox31 wontfix, firefox32 wontfix, firefox33 fixed, b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED FIXED
2.0 S6 (18july)
Tracking Status
firefox31 --- wontfix
firefox32 --- wontfix
firefox33 --- fixed
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: past, Assigned: jryans)

References

Details

Attachments

(1 file)

Even though I have every simulator installed, Firefox 30 only shows the 1.x ones. This is what I see in the log: console.log: adbhelper@mozilla.orgadb: init console.debug: adbhelper@mozilla.org ADB: Asking for host:version console.debug: adbhelper@mozilla.org ADB: running checker onerror console.log: adbhelper@mozilla.orgadb: Didn't find ADB process running, restarting console.debug: adbhelper@mozilla.org ADB: running checker onclose * daemon not running. starting it now on port 5037 * * daemon started successfully * console.error: fxos_2_1_simulator: Error opening input stream (invalid filename?) console.error: fxos_2_1_simulator: Error opening input stream (invalid filename?) console.error: fxos_2_0_simulator: Error opening input stream (invalid filename?) console.error: fxos_2_0_simulator: Error opening input stream (invalid filename?)
Assignee: nobody → jryans
Status: NEW → ASSIGNED
The issue is that the 2.x simulators have been built with m-c's XPI generator, which no longer adds the file "defaults/preferences/prefs.js" to the addons it makes. I guess this is generally not how you're "supposed" to use the SDK, since we should be using the tools for release channel I guess, but that's a bit trickier than just calling the ones in-tree (maybe :ochameau was too optimistic here...). The addon runner (sdk/addon/runner.js) in Firefox 31 and earlier expects all addons to contain this file, so it becomes upset that it is missing and addon loading dies. :zombie, I noticed it was your commit to addon-sdk[1] that removed the creation of the "prefs.js" file. Do you have any suggestions on the best fix here? As I see it, possible fixes are: 1. Add-on SDK could keep making this file until Firefox 32 is in release channel 2. Firefox 30 and 31 could be updated to not explode when the file is missing 3. For our simulator build process, we could add an empty "prefs.js" file 4. We could figure out how to build with release channel's cfx from m-c (sounds hard!) [1]: https://github.com/mozilla/addon-sdk/commit/c4639882463ec5181229d2c157a65c5cd22796f3#diff-14
Flags: needinfo?(tomica+amo)
Summary: 2.x simulators don't work with Firefox 30 → 2.x simulators don't work with Firefox 31 or earlier
afaik, the general policy for jetpack is to make sure addons packed with latest released SDK version run in the release version of firefox, and our master branch from github (or m-c modulo a week) is only tested with nightly. i worked pretty hard on that bug to make sure all the supported scenarios work (which also includes running addons packed with non-latest SDK versions in release and future firefox), so going back and supporting your scenario (using master SDK to pack addons for release fx) would probably resolved as WONTFIX by the triage team.. (not me! ;) i suggest you use a workaround to fix this, but also be warned that other things might break with your setup in the future.. :\
Flags: needinfo?(tomica+amo)
Adds the default prefs file required for Firefox 31 and earlier. Try: https://tbpl.mozilla.org/?tree=Try&rev=37447c415f1d
Attachment #8455801 - Flags: review?(janx)
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Review of attachment 8455801 [details] [diff] [review]: ----------------------------------------------------------------- The fix worked for me on Linux (after I noticed that "Review" doesn't show new empty files), doesn't look dangerous and the try builds are green. Go for launch.
Attachment #8455801 - Flags: review?(janx) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Approval Request Comment [Feature/regressing bug #]: Broken by add-on SDK changes we are working around here [User impact if declined]: FxOS 2.0 simulator add-on (which is built from the Aurora tree) won't work in Firefox Release and Beta [Describe test coverage new/current, TBPL]: on m-c [Risks and why]: Very low, worse case the Simulator add-on still does not work for some reason [String/UUID change made/needed]: None I almost landed this a=npotb, but we do indeed *build* the Simulator on TBPL, so I thought I should ask.
Attachment #8455801 - Flags: approval-mozilla-aurora?
OS: Mac OS X → All
Hardware: x86 → All
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Thanks for asking. As stated, this is simulator specific. Aurora+
Attachment #8455801 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Approval Request Comment [Feature/regressing bug #]: Broken by add-on SDK changes we are working around here [User impact if declined]: FxOS 2.0 simulator add-on (which is built from the Aurora tree) won't work in Firefox Release and Beta [Describe test coverage new/current, TBPL]: on m-c [Risks and why]: Very low, worse case the Simulator add-on still does not work for some reason [String/UUID change made/needed]: None I was hopeful that this would be landed in Aurora before the merge, but that didn't happen...
Attachment #8455801 - Flags: approval-mozilla-beta?
(In reply to J. Ryan Stinnett [:jryans] from comment #9) > [User impact if declined]: FxOS 2.0 simulator add-on (which is built from > the Aurora tree) won't work in Firefox Release and Beta I meant "which is built from the Beta tree" here. The simulator is built from the same Gecko as FxOS 2.0, so that's Gecko 32 (currently beta).
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Similar to bug 1038254, I meant to request approval for b2g 2.0 tree, so updating that here.
Attachment #8455801 - Flags: approval-mozilla-beta?
Attachment #8455801 - Flags: approval-mozilla-b2g32?
Attachment #8455801 - Flags: approval-mozilla-aurora+
lmandel, can you take a look at this approval request? I'd like to distribute new 2.0 simulators with this fix and the other you already approved (bug 1038254), so I'm awaiting the approval decision here.
Flags: needinfo?(lmandel)
Comment on attachment 8455801 [details] [diff] [review] Add default prefs file to Simulator Simulator specific fix. b2g32+
Attachment #8455801 - Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32+
Flags: needinfo?(lmandel)
I've now released Simulator builds 2.0.20140724 and 2.1.20140724 to resolve this issue.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: