Bug 1448077 - Move devtools-startup preferences file to dedicated /preferences folder;r=jryans

Changing the name for consistency purposes (see RFC
https://github.com/devtools-html/rfcs/issues/43)

MozReview-Commit-ID: EahEwoR9eBF

--HG--
rename : devtools/startup/devtools-startup-prefs.js => devtools/startup/preferences/devtools-startup.js
extra : rebase_source : eddc92413f69a80884d9dc26a6b603af2ce04b41
This commit is contained in:
Julian Descottes 2018-04-06 12:10:10 +02:00
parent e88b64543e
commit aa51f2b0c0
6 changed files with 15 additions and 6 deletions

View File

@ -153,7 +153,7 @@ devtools/client/debugger/new/**
# Ignore devtools preferences files
devtools/client/preferences/**
devtools/startup/devtools-startup-prefs.js
devtools/startup/preferences/devtools-startup.js
# Ignore devtools third-party libs
devtools/shared/jsbeautify/*

View File

@ -425,7 +425,7 @@
; [DevTools Startup Files]
@RESPATH@/browser/chrome/devtools-startup@JAREXT@
@RESPATH@/browser/chrome/devtools-startup.manifest
@RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js
@RESPATH@/browser/@PREF_DIR@/devtools-startup.js
; DevTools
@RESPATH@/browser/chrome/devtools@JAREXT@

View File

@ -72,12 +72,12 @@ To create a new preference, it should be assigned a default value. Default prefe
defined in preferences files such as:
- devtools/client/preferences/devtools.js
- devtools/client/preferences/debugger.js
- devtools/startup/devtools-startup-prefs.js
- devtools/startup/preferences/devtools-startup.js
Most new preferences should go in devtools/client/preferences/devtools.js. Debugger
specific preferences should go in devtools/client/preferences/debugger.js. Finally if a
preference needs to be available very early during the Firefox startup sequence, it should
go in devtools/startup/devtools-startup-prefs.js.
go in devtools/startup/preferences/devtools-startup.js.
### Projects using Launchpad

View File

@ -6,8 +6,8 @@
JAR_MANIFESTS += ['jar.mn']
JS_PREFERENCE_PP_FILES += [
'devtools-startup-prefs.js',
DIRS += [
'preferences',
]
# Register the startup components only for 'all' builds.

View File

@ -0,0 +1,9 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
JS_PREFERENCE_PP_FILES += [
'devtools-startup.js'
]