Closed
Bug 1395990
Opened 8 years ago
Closed 8 years ago
Pass "-purgecaches" arg when creating chrome debugging process for artifact builds
Categories
(DevTools :: General, enhancement, P3)
DevTools
General
Tracking
(firefox57 fixed)
RESOLVED
FIXED
Firefox 57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
Details
Attachments
(3 files)
We are currently relying on Services.appinfo.isOfficial in order to add -purgeCaches to the arguments passed to the chrome debugging process at:
http://searchfox.org/mozilla-central/rev/51b3d67a5ec1758bd2fe7d7b6e75ad6b6b5da223/devtools/client/framework/ToolboxProcess.jsm#261-270
However Services.appinfo.isOfficial is only false for non-artifact builds. Artifact builds actually have it set to true since they are based on a CI-built artifact.
We could rely on the following combination of constants to get a better approximation:
> let isOfficialBuild = AppConstants.NIGHTLY_BUILD ||
> AppConstants.RELEASE_OR_BETA ||
> AppConstants.MOZ_DEV_EDITION;
| Assignee | ||
Comment 1•8 years ago
|
||
Actually this other version fails in the same way. Looks like we have to use:
> const IS_UNOFFICIAL_BUILD = Services.prefs.getStringPref("app.update.channel") === "default";
to get something that can be used for both artifact and non artifact builds.
Comment 2•8 years ago
|
||
We use `#ifndef MOZILLA_OFFICIAL` for turning on the remote debugging prefs in local builds, which works in artifact builds: https://dxr.mozilla.org/mozilla-central/source/modules/libpref/init/all.js#1049
Comment 3•8 years ago
|
||
So should be AppConstants.MOZILLA_OFFICIAL
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8903660 [details]
Bug 1395990 - use constant MOZILLA_OFFICIAL to check for local build in ToolboxProcess.jsm;
https://reviewboard.mozilla.org/r/175430/#review180550
Attachment #8903660 -
Flags: review?(bgrinstead) → review+
Comment 6•8 years ago
|
||
With this change it looks like there is only one other usage of "Services.appinfo.isOfficial" (in a test): https://dxr.mozilla.org/mozilla-central/search?q=%22Services.appinfo.isOfficial%22&redirect=false. Mossop, can that property go away?
Flags: needinfo?(dtownsend)
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•8 years ago
|
||
(thanks for jumping on this and the review Brian!)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #6)
> With this change it looks like there is only one other usage of
> "Services.appinfo.isOfficial" (in a test):
> https://dxr.mozilla.org/mozilla-central/search?q=%22Services.appinfo.
> isOfficial%22&redirect=false. Mossop, can that property go away?
Yes, we should use AppConstants.MOZILLA_OFFICIAL instead.
Flags: needinfo?(dtownsend)
| Assignee | ||
Updated•8 years ago
|
Attachment #8903675 -
Flags: review?(dtownsend)
Attachment #8903676 -
Flags: review?(dtownsend)
Comment 11•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8903675 [details]
Bug 1395990 - stop using Services.appinfo.isOfficial in test_TelemetrySession.js;
https://reviewboard.mozilla.org/r/175452/#review180560
Attachment #8903675 -
Flags: review?(dtownsend) → review+
Comment 12•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8903676 [details]
Bug 1395990 - remove Services.appinfo.isOfficial;
https://reviewboard.mozilla.org/r/175454/#review180562
Attachment #8903676 -
Flags: review?(dtownsend) → review+
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 15•8 years ago
|
||
Thanks for the reviews! Try is green at https://treeherder.mozilla.org/#/jobs?repo=try&revision=37d8d621646b361d04ff6d68d9e09aa877e0b9b2
Comment 16•8 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7d8b0d8d0043
use constant MOZILLA_OFFICIAL to check for local build in ToolboxProcess.jsm;r=bgrins
https://hg.mozilla.org/integration/autoland/rev/fb06b4e04043
stop using Services.appinfo.isOfficial in test_TelemetrySession.js;r=mossop
https://hg.mozilla.org/integration/autoland/rev/de9a050e5ff0
remove Services.appinfo.isOfficial;r=mossop
Comment 17•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7d8b0d8d0043
https://hg.mozilla.org/mozilla-central/rev/fb06b4e04043
https://hg.mozilla.org/mozilla-central/rev/de9a050e5ff0
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•