Closed Bug 1081684 Opened 11 years ago Closed 11 years ago

[Build] Themes don't load when running in Firefox

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g-v2.1 fixed, b2g-v2.2 fixed)

RESOLVED FIXED
Tracking Status
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(3 files)

Since we use app://theme to load the theme CSS file (bug 1069840), we don't have it in Firefox.
Attached file github PR
Hey Ricky, We rely on launching the SMS app in Firefox and without this the header is black on white. I don't know if this is the best way to solve the issue but this is reasonnably simple. Maybe in httpd.js I could use a mapping array instead of a if.
Assignee: nobody → felash
Attachment #8503767 - Flags: review?(ricky060709)
To launch the SMS app in Firefox: PROFILE_FOLDER=profile-sms DEBUG=1 DESKTOP=0 make <path to firefox>/firefox --no-remote -profile profile-sms app://sms.gaiamobile.org/
Patch seems to be no problem but I wonder what is the difference after applying it. Could you upload a before/after screenshot? Thanks!
Comment on attachment 8503767 [details] [review] github PR Though I cannot see effect in new theme, I ensure that http://theme.gaiamobile.org:8080/shared/elements/gaia-theme/gaia-theme.css has been loaded properly. Let's land it!
Attachment #8503767 - Flags: review?(ricky060709) → review+
Attached image before patch
Attached image after patch
master: 2543927ea3bfa7ec23d4e9241f62c157e6b128d1
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Cool! I saw these changes in b2g but the result on firefox/nightly was broken. I guess it's a firefox/nightly issue.
Yep, it's an issue only when using httpd.js (because we use our own handler for app://). Maybe a cleaner solution could be to be able to reuse the app:// handler we use in B2G.
bug 1069840 landed in v2.1 so we need this in v2.1 as well. a=npotb v2.1: daef1ae65560cd38d652f3665568086a1c9f1b9e
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: