Open Bug 1388471 Opened 7 years ago Updated 11 months ago

Add a configuration option for "this is a local development build"

Categories

(Firefox Build System :: General, enhancement)

enhancement

Tracking

(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix

People

(Reporter: bgrins, Unassigned)

References

(Blocks 1 open bug)

Details

Spinning this discussion out from https://bugzilla.mozilla.org/show_bug.cgi?id=1385452#c9. There's a few places where we want to run code or change a preference only in a local development build. Right now we use !MOZILLA_OFFICIAL for that, but it's not obvious what it means when reading the code, and it's potentially not reliable.
Copying over needinfo from the other bug: (In reply to Gregory Szorc [:gps] from comment #9) > glandium: Clearly identifying "is this a dev build" has come up a few times > recently. Could we expose something explicit so consumers don't key off > MOZILLA_RELEASE or things like whether omni.ja is flat (like what the OS X > sandbox is doing, ugh). I think I'd be ok with a variable that is implied > unless --enable-release or MOZ_AUTOMATION are in play.
Flags: needinfo?(mh+mozilla)
There are a couple of usages of Services.appinfo.isOfficial that could potentially be switched to a new option as well
Product: Core → Firefox Build System
Blocks: 1656787
Severity: normal → S3

Rereading this after all these years... isn't this covered by DEVELOPER_OPTIONS?

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.