Backed out 4 changesets (bug 1448077) for xpcshell failures at toolkit/components/osfile/tests/xpcshell/test_creationDate.js on a CLOSED TREE

Backed out changeset 456166433c71 (bug 1448077)
Backed out changeset a826e8871e9f (bug 1448077)
Backed out changeset 42b4ccfcb9c4 (bug 1448077)
Backed out changeset c61caf7df6c7 (bug 1448077)

--HG--
rename : devtools/client/preferences/devtools-client.js => devtools/client/preferences/devtools.js
rename : devtools/client/webide/preferences/webide.js => devtools/client/webide/webide-prefs.js
rename : devtools/startup/preferences/devtools-startup.js => devtools/startup/devtools-startup-prefs.js
This commit is contained in:
Coroiu Cristina 2018-04-09 18:58:40 +03:00
parent 5b12e05dd8
commit 586aed9d72
17 changed files with 95 additions and 131 deletions

View file

@ -153,8 +153,7 @@ devtools/client/debugger/new/**
# Ignore devtools preferences files # Ignore devtools preferences files
devtools/client/preferences/** devtools/client/preferences/**
devtools/shared/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

@ -420,18 +420,17 @@
; [Webide Files] ; [Webide Files]
@RESPATH@/browser/chrome/webide@JAREXT@ @RESPATH@/browser/chrome/webide@JAREXT@
@RESPATH@/browser/chrome/webide.manifest @RESPATH@/browser/chrome/webide.manifest
@RESPATH@/browser/@PREF_DIR@/webide.js @RESPATH@/browser/@PREF_DIR@/webide-prefs.js
; [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.js @RESPATH@/browser/@PREF_DIR@/devtools-startup-prefs.js
; DevTools ; DevTools
@RESPATH@/browser/chrome/devtools@JAREXT@ @RESPATH@/browser/chrome/devtools@JAREXT@
@RESPATH@/browser/chrome/devtools.manifest @RESPATH@/browser/chrome/devtools.manifest
@RESPATH@/browser/@PREF_DIR@/devtools-shared.js @RESPATH@/browser/@PREF_DIR@/devtools.js
@RESPATH@/browser/@PREF_DIR@/devtools-client.js
@RESPATH@/browser/@PREF_DIR@/debugger.js @RESPATH@/browser/@PREF_DIR@/debugger.js
; shell icons ; shell icons

View file

@ -6,7 +6,7 @@ const Services = require("Services");
const { Preferences } = require("resource://gre/modules/Preferences.jsm"); const { Preferences } = require("resource://gre/modules/Preferences.jsm");
// Prefs to revert to default once tests finish. Keep these in sync with // Prefs to revert to default once tests finish. Keep these in sync with
// all the preferences defined in devtools/client/preferences/devtools-client.js. // all the preferences defined in devtools/client/preferences/devtools.js.
exports.MEMORY_SAMPLE_PROB_PREF = "devtools.performance.memory.sample-probability"; exports.MEMORY_SAMPLE_PROB_PREF = "devtools.performance.memory.sample-probability";
exports.MEMORY_MAX_LOG_LEN_PREF = "devtools.performance.memory.max-log-length"; exports.MEMORY_MAX_LOG_LEN_PREF = "devtools.performance.memory.max-log-length";
exports.PROFILER_BUFFER_SIZE_PREF = "devtools.performance.profiler.buffer-size"; exports.PROFILER_BUFFER_SIZE_PREF = "devtools.performance.profiler.buffer-size";

View file

@ -5,7 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
JS_PREFERENCE_PP_FILES += [ JS_PREFERENCE_PP_FILES += [
'devtools-client.js' 'devtools.js'
] ]
JS_PREFERENCE_FILES += [ JS_PREFERENCE_FILES += [

View file

@ -7,7 +7,6 @@
DIRS += [ DIRS += [
'content', 'content',
'modules', 'modules',
'preferences',
'themes', 'themes',
] ]
@ -18,5 +17,9 @@ MOCHITEST_CHROME_MANIFESTS += [
'test/chrome.ini' 'test/chrome.ini'
] ]
JS_PREFERENCE_FILES += [
'webide-prefs.js',
]
with Files('**'): with Files('**'):
BUG_COMPONENT = ('Firefox', 'Developer Tools: WebIDE') BUG_COMPONENT = ('Firefox', 'Developer Tools: WebIDE')

View file

@ -1,9 +0,0 @@
# -*- 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_FILES += [
'webide.js',
]

View file

@ -70,17 +70,14 @@ These APIs are very similar for each preference type.
To create a new preference, it should be assigned a default value. Default preferences are To create a new preference, it should be assigned a default value. Default preferences are
defined in preferences files such as: defined in preferences files such as:
- devtools/client/preferences/devtools-client.js - devtools/client/preferences/devtools.js
- devtools/client/preferences/debugger.js - devtools/client/preferences/debugger.js
- devtools/shared/preferences/devtools-shared.js - devtools/startup/devtools-startup-prefs.js
- devtools/startup/preferences/devtools-startup.js
Most new preferences should go in devtools/client/preferences/devtools-client.js. Debugger Most new preferences should go in devtools/client/preferences/devtools.js. Debugger
specific preferences should go in devtools/client/preferences/debugger.js. If a preference specific preferences should go in devtools/client/preferences/debugger.js. Finally if a
should be available even when the client for DevTools is not shipped (for instance on preference needs to be available very early during the Firefox startup sequence, it should
Fennec) the preference should go to devtools/shared/preferences/devtools-shared.js. go in devtools/startup/devtools-startup-prefs.js.
Finally if a preference needs to be available very early during the Firefox startup
sequence, it should go in devtools/startup/preferences/devtools-startup.js.
### Projects using Launchpad ### Projects using Launchpad

View file

@ -14,10 +14,10 @@ if CONFIG['MOZ_DEVTOOLS'] == 'all':
# `platform` contains all native components # `platform` contains all native components
DIRS += [ DIRS += [
'platform',
'server', 'server',
'shared', 'shared',
'startup', 'startup',
'platform',
] ]
# /browser uses DIST_SUBDIR. We opt-in to this treatment when building # /browser uses DIST_SUBDIR. We opt-in to this treatment when building

View file

@ -22,7 +22,6 @@ DIRS += [
'node-properties', 'node-properties',
'performance', 'performance',
'platform', 'platform',
'preferences',
'pretty-fast', 'pretty-fast',
'qrcode', 'qrcode',
'security', 'security',

View file

@ -1,82 +0,0 @@
/* 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/. */
// Tells if DevTools have been explicitely enabled by the user.
// This pref allows to disable all features related to DevTools
// for users that never use them.
// Until bug 1361080 lands, we always consider them enabled.
pref("devtools.enabled", true);
// Enable deprecation warnings.
pref("devtools.errorconsole.deprecation_warnings", true);
#ifdef NIGHTLY_BUILD
// Don't show the Browser Toolbox prompt on local builds / nightly
pref("devtools.debugger.prompt-connection", false, sticky);
#else
pref("devtools.debugger.prompt-connection", true, sticky);
#endif
#ifdef MOZILLA_OFFICIAL
// Disable debugging chrome
pref("devtools.chrome.enabled", false, sticky);
// Disable remote debugging connections
pref("devtools.debugger.remote-enabled", false, sticky);
#else
// In local builds, enable the browser toolbox by default
pref("devtools.chrome.enabled", true, sticky);
pref("devtools.debugger.remote-enabled", true, sticky);
#endif
// Disable remote debugging protocol logging
pref("devtools.debugger.log", false);
pref("devtools.debugger.log.verbose", false);
pref("devtools.debugger.remote-port", 6000);
pref("devtools.debugger.remote-websocket", false);
// Force debugger server binding on the loopback interface
pref("devtools.debugger.force-local", true);
// Block tools from seeing / interacting with certified apps
pref("devtools.debugger.forbid-certified-apps", true);
// Limit for intercepted response bodies (1 MB)
// Possible values:
// 0 => the response body has no limit
// n => represents max number of bytes stored
pref("devtools.netmonitor.responseBodyLimit", 1048576);
// DevTools default color unit
pref("devtools.defaultColorUnit", "authored");
// Used for devtools debugging
pref("devtools.dump.emit", false);
// Disable device discovery logging
pref("devtools.discovery.log", false);
// Whether to scan for DevTools devices via WiFi
pref("devtools.remote.wifi.scan", true);
// Client must complete TLS handshake within this window (ms)
pref("devtools.remote.tls-handshake-timeout", 10000);
// URL of the remote JSON catalog used for device simulation
pref("devtools.devices.url", "https://code.cdn.mozilla.net/devices/devices.json");
// Display the introductory text
pref("devtools.gcli.hideIntro", false);
// How eager are we to show help: never=1, sometimes=2, always=3
pref("devtools.gcli.eagerHelper", 2);
// Alias to the script URLs for inject command.
pref("devtools.gcli.jquerySrc", "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js");
pref("devtools.gcli.lodashSrc", "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.6.1/lodash.min.js");
pref("devtools.gcli.underscoreSrc", "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js");
// Set imgur upload client ID
pref("devtools.gcli.imgurClientID", '0df414e888d7240');
// Imgur's upload URL
pref("devtools.gcli.imgurUploadURL", "https://api.imgur.com/3/image");
// GCLI commands directory
pref("devtools.commands.dir", "");

View file

@ -1,9 +0,0 @@
# -*- 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-shared.js'
]

View file

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

View file

@ -1,9 +0,0 @@
# -*- 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'
]

View file

@ -1077,16 +1077,92 @@ pref("toolkit.asyncshutdown.crash_timeout", 180000); // 3 minutes
// Extra logging for AsyncShutdown barriers and phases // Extra logging for AsyncShutdown barriers and phases
pref("toolkit.asyncshutdown.log", false); pref("toolkit.asyncshutdown.log", false);
// Tells if DevTools have been explicitely enabled by the user.
// This pref allows to disable all features related to DevTools
// for users that never use them.
// Until bug 1361080 lands, we always consider them enabled.
pref("devtools.enabled", true);
// Enable deprecation warnings.
pref("devtools.errorconsole.deprecation_warnings", true);
#ifdef NIGHTLY_BUILD
// Don't show the Browser Toolbox prompt on local builds / nightly
pref("devtools.debugger.prompt-connection", false, sticky);
#else
pref("devtools.debugger.prompt-connection", true, sticky);
#endif
#ifdef MOZILLA_OFFICIAL #ifdef MOZILLA_OFFICIAL
// Disable debugging chrome
pref("devtools.chrome.enabled", false, sticky);
// Disable remote debugging connections
pref("devtools.debugger.remote-enabled", false, sticky);
// enable JS dump() function. // enable JS dump() function.
pref("browser.dom.window.dump.enabled", false, sticky); pref("browser.dom.window.dump.enabled", false, sticky);
#else #else
// In local builds, enable the browser toolbox by default
pref("devtools.chrome.enabled", true, sticky);
pref("devtools.debugger.remote-enabled", true, sticky);
pref("browser.dom.window.dump.enabled", true, sticky); pref("browser.dom.window.dump.enabled", true, sticky);
#endif #endif
// Disable remote debugging protocol logging
pref("devtools.debugger.log", false);
pref("devtools.debugger.log.verbose", false);
pref("devtools.debugger.remote-port", 6000);
pref("devtools.debugger.remote-websocket", false);
// Force debugger server binding on the loopback interface
pref("devtools.debugger.force-local", true);
// Block tools from seeing / interacting with certified apps
pref("devtools.debugger.forbid-certified-apps", true);
// Limit for intercepted response bodies (1 MB)
// Possible values:
// 0 => the response body has no limit
// n => represents max number of bytes stored
pref("devtools.netmonitor.responseBodyLimit", 1048576);
// DevTools default color unit
pref("devtools.defaultColorUnit", "authored");
// Used for devtools debugging
pref("devtools.dump.emit", false);
// Controls whether EventEmitter module throws dump message on each emit // Controls whether EventEmitter module throws dump message on each emit
pref("toolkit.dump.emit", false); pref("toolkit.dump.emit", false);
// Disable device discovery logging
pref("devtools.discovery.log", false);
// Whether to scan for DevTools devices via WiFi
pref("devtools.remote.wifi.scan", true);
// Client must complete TLS handshake within this window (ms)
pref("devtools.remote.tls-handshake-timeout", 10000);
// URL of the remote JSON catalog used for device simulation
pref("devtools.devices.url", "https://code.cdn.mozilla.net/devices/devices.json");
// Display the introductory text
pref("devtools.gcli.hideIntro", false);
// How eager are we to show help: never=1, sometimes=2, always=3
pref("devtools.gcli.eagerHelper", 2);
// Alias to the script URLs for inject command.
pref("devtools.gcli.jquerySrc", "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js");
pref("devtools.gcli.lodashSrc", "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.6.1/lodash.min.js");
pref("devtools.gcli.underscoreSrc", "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js");
// Set imgur upload client ID
pref("devtools.gcli.imgurClientID", '0df414e888d7240');
// Imgur's upload URL
pref("devtools.gcli.imgurUploadURL", "https://api.imgur.com/3/image");
// GCLI commands directory
pref("devtools.commands.dir", "");
// view source // view source
pref("view_source.syntax_highlight", true); pref("view_source.syntax_highlight", true);
pref("view_source.wrap_long_lines", false); pref("view_source.wrap_long_lines", false);