Allow me to find out if MOZILLA_OFFICIAL is set from an xpcshell-test

RESOLVED FIXED in mozilla35

Status

Testing
XPCShell Harness
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: gfritzsche, Assigned: gfritzsche)

Tracking

unspecified
mozilla35
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
xpcshell.ini can tell this via |official|, but inside xpcshell-test we apparently have no way to check this.
(Assignee)

Updated

3 years ago
Blocks: 1073537
While fixing a bunch of tests to not use the preprocessor I wound up just adding a bunch of things like that to nsIXULRuntime:
http://hg.mozilla.org/mozilla-central/annotate/5e704397529b/xpcom/system/nsIXULRuntime.idl#l143

They're pretty trivial to implement if you want to go that route:
http://hg.mozilla.org/mozilla-central/annotate/5e704397529b/toolkit/xre/nsAppRunner.cpp#l946
(Assignee)

Comment 2

3 years ago
Created attachment 8501033 [details] [diff] [review]
Expose isOfficial on nsIXULRuntime

Ted, can you review this?
Assignee: nobody → georg.fritzsche
Status: NEW → ASSIGNED
Attachment #8501033 - Flags: review?(ted)
Attachment #8501033 - Flags: review?(ted) → review+
(Assignee)

Comment 3

3 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/89260f635781
https://hg.mozilla.org/mozilla-central/rev/89260f635781
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
(Assignee)

Updated

3 years ago
Blocks: 1085146
(Assignee)

Updated

3 years ago
Blocks: 1085162
You need to log in before you can comment on or make changes to this bug.