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 : 5aeb6fa4d1264de91097bf29f9aace844e84ee04
This commit is contained in:
Julian Descottes 2018-04-06 12:10:10 +02:00
parent 067132558d
commit 1563ca8769
6 changed files with 15 additions and 6 deletions

View file

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

View file

@ -425,7 +425,7 @@
; [DevTools Startup Files] ; [DevTools Startup Files]
@RESPATH@/browser/chrome/devtools-startup@JAREXT@ @RESPATH@/browser/chrome/devtools-startup@JAREXT@
@RESPATH@/browser/chrome/devtools-startup.manifest @RESPATH@/browser/chrome/devtools-startup.manifest
@RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js @RESPATH@/browser/@PREF_DIR@/devtools-startup.js
; DevTools ; DevTools
@RESPATH@/browser/chrome/devtools@JAREXT@ @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: defined in preferences files such as:
- devtools/client/preferences/devtools.js - devtools/client/preferences/devtools.js
- devtools/client/preferences/debugger.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 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 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 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 ### Projects using Launchpad

View file

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