Closed Bug 866702 Opened 11 years ago Closed 11 years ago

Decouple DEBUG=1 from Firefox desktop compatibility helpers

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(b2g18 fixed)

RESOLVED FIXED
Tracking Status
b2g18 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

We recently introduced a bunch of new behavior when settting DEBUG=1,
but it ends up being misleading as you don't necessarily want desktop support in debug mode, and you also may want desktop support without being in full debug mode. For example, you may want app:// protocol in the browser.

We should then introduce a new specific environment variable to only toggle browser support.
Assignee: nobody → poirot.alex
Attached file Pull request 9458
I also fixed the desktop helper to allow closing it.
And stopped forcing displaying Firefox OS panel,
so that if you restart firefox, it will display the last opened panel.
Attachment #743078 - Flags: review?(21)
Comment on attachment 743078 [details]
Pull request 9458

r+ with github/s comments fixed.
Attachment #743078 - Flags: review?(21) → review+
Alexandre - I think the use case for wanting a DEBUG profile without desktop support is extremely rare. This will also break lots of tutorials/documentation on the web (not too hard to update, but something we need to do).

I would like to request that we set the new DESKTOP variable to be true for DEBUG profiles if it's not specified. I strongly believe that most folks want full desktop support by default.
Flags: needinfo?(poirot.alex)
I'm not convinced that's the best future-wise option, but I'm not fondamentaly against it, so I pushed an amended commit with vivien comments being addressed,
and did that: BROWSER?=$(DEBUG)
to address your concern.

Are you also requesting to name this variable DESKTOP instead of BROWSER?

It would be super handy if you can give a try to this branch with various env variable combination.
Flags: needinfo?(poirot.alex)
Landed in:
master: https://github.com/mozilla-b2g/gaia/commit/0e20a5edd5a8a0ce504f7cdfc6a7b47bb218ac38
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 743078 [details]
Pull request 9458

Requesting uplift as we would like to have all of the developer tools/productivity related things uplifted. It also has zero impact to gaia builds as all changes are external to application code.
Attachment #743078 - Flags: approval-gaia-v1?
Attachment #743078 - Flags: approval-gaia-v1? → approval-gaia-v1+
Uplifted:
v1-train: 9377636cee5ac55b9f1d68f598afc7aadfbb2b00
(In reply to Alexandre Poirot (:ochameau) from comment #7)
> Uplifted:
> v1-train: 9377636cee5ac55b9f1d68f598afc7aadfbb2b00

Hey, thanks for uplifting.  Please mark the status-b2g18* flags when you resolve on branch.
Depends on: 869689
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: