Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in...
[gecko.git] / devtools / client / preferences / devtools-client.js
blob1b7adfffde075067e3b5928213357d1ae655ce9a
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 // Enable DevTools WebIDE by default
6 pref("devtools.webide.enabled", true);
8 // Toolbox preferences
9 pref("devtools.toolbox.footer.height", 250);
10 pref("devtools.toolbox.sidebar.width", 500);
11 pref("devtools.toolbox.host", "bottom");
12 pref("devtools.toolbox.previousHost", "right");
13 pref("devtools.toolbox.selectedTool", "inspector");
14 pref("devtools.toolbox.sideEnabled", true);
15 pref("devtools.toolbox.zoomValue", "1");
16 pref("devtools.toolbox.splitconsoleEnabled", false);
17 pref("devtools.toolbox.splitconsoleHeight", 100);
18 pref("devtools.toolbox.tabsOrder", "");
20 // Toolbox Button preferences
21 pref("devtools.command-button-pick.enabled", true);
22 pref("devtools.command-button-frames.enabled", true);
23 pref("devtools.command-button-splitconsole.enabled", true);
24 pref("devtools.command-button-paintflashing.enabled", false);
25 pref("devtools.command-button-scratchpad.enabled", false);
26 pref("devtools.command-button-responsive.enabled", true);
27 pref("devtools.command-button-screenshot.enabled", false);
28 pref("devtools.command-button-rulers.enabled", false);
29 pref("devtools.command-button-measure.enabled", false);
30 pref("devtools.command-button-noautohide.enabled", false);
32 // Inspector preferences
33 // Enable the Inspector
34 pref("devtools.inspector.enabled", true);
35 // What was the last active sidebar in the inspector
36 pref("devtools.inspector.activeSidebar", "layoutview");
37 pref("devtools.inspector.remote", false);
39 // Enable the 3 pane mode in the inspector
40 pref("devtools.inspector.three-pane-enabled", true);
41 // Enable the 3 pane mode in the chrome inspector
42 pref("devtools.inspector.chrome.three-pane-enabled", false);
43 // Collapse pseudo-elements by default in the rule-view
44 pref("devtools.inspector.show_pseudo_elements", false);
45 // The default size for image preview tooltips in the rule-view/computed-view/markup-view
46 pref("devtools.inspector.imagePreviewTooltipSize", 300);
47 // Enable user agent style inspection in rule-view
48 pref("devtools.inspector.showUserAgentStyles", false);
49 // Show all native anonymous content
50 pref("devtools.inspector.showAllAnonymousContent", false);
51 // Show user agent shadow roots
52 pref("devtools.inspector.showUserAgentShadowRoots", false);
53 // Enable the new Rules View
54 pref("devtools.inspector.new-rulesview.enabled", false);
56 // Grid highlighter preferences
57 pref("devtools.gridinspector.gridOutlineMaxColumns", 50);
58 pref("devtools.gridinspector.gridOutlineMaxRows", 50);
59 pref("devtools.gridinspector.showGridAreas", false);
60 pref("devtools.gridinspector.showGridLineNumbers", false);
61 pref("devtools.gridinspector.showInfiniteLines", false);
62 // Max number of grid highlighters that can be displayed
63 pref("devtools.gridinspector.maxHighlighters", 3);
65 // Whether or not the box model panel is opened in the layout view
66 pref("devtools.layout.boxmodel.opened", true);
67 // Whether or not the flexbox panel is opened in the layout view
68 pref("devtools.layout.flexbox.opened", true);
69 // Whether or not the grid inspector panel is opened in the layout view
70 pref("devtools.layout.grid.opened", true);
72 // Enable hovering Box Model values and jumping to their source CSS rule in the rule-view
73 #if defined(NIGHTLY_BUILD)
74 pref("devtools.layout.boxmodel.highlightProperty", true);
75 #else
76 pref("devtools.layout.boxmodel.highlightProperty", false);
77 #endif
79 // By how many times eyedropper will magnify pixels
80 pref("devtools.eyedropper.zoom", 6);
82 // Enable to collapse attributes that are too long.
83 pref("devtools.markup.collapseAttributes", true);
84 // Length to collapse attributes
85 pref("devtools.markup.collapseAttributeLength", 120);
86 // Whether to auto-beautify the HTML on copy.
87 pref("devtools.markup.beautifyOnCopy", false);
88 // Whether or not the DOM mutation breakpoints context menu are enabled in the markup view
89 pref("devtools.markup.mutationBreakpoints.enabled", false);
91 // DevTools default color unit
92 pref("devtools.defaultColorUnit", "authored");
94 // Enable the Memory tools
95 pref("devtools.memory.enabled", true);
97 pref("devtools.memory.custom-census-displays", "{}");
98 pref("devtools.memory.custom-label-displays", "{}");
99 pref("devtools.memory.custom-tree-map-displays", "{}");
101 pref("devtools.memory.max-individuals", 1000);
102 pref("devtools.memory.max-retaining-paths", 10);
104 // Enable the Performance tools
105 pref("devtools.performance.enabled", true);
107 // The default Performance UI settings
108 pref("devtools.performance.memory.sample-probability", "0.05");
109 // Can't go higher than this without causing internal allocation overflows while
110 // serializing the allocations data over the RDP.
111 pref("devtools.performance.memory.max-log-length", 125000);
112 pref("devtools.performance.timeline.hidden-markers",
113   "[\"Composite\",\"CompositeForwardTransaction\"]");
114 pref("devtools.performance.profiler.buffer-size", 10000000);
115 pref("devtools.performance.profiler.sample-frequency-hz", 1000);
116 pref("devtools.performance.ui.invert-call-tree", true);
117 pref("devtools.performance.ui.invert-flame-graph", false);
118 pref("devtools.performance.ui.flatten-tree-recursion", true);
119 pref("devtools.performance.ui.show-platform-data", false);
120 pref("devtools.performance.ui.show-idle-blocks", true);
121 pref("devtools.performance.ui.enable-memory", false);
122 pref("devtools.performance.ui.enable-allocations", false);
123 pref("devtools.performance.ui.enable-framerate", true);
124 pref("devtools.performance.ui.show-jit-optimizations", false);
125 pref("devtools.performance.ui.show-triggers-for-gc-types",
126   "TOO_MUCH_MALLOC ALLOC_TRIGGER LAST_DITCH EAGER_ALLOC_TRIGGER");
128 // Temporary pref disabling memory flame views
129 // TODO remove once we have flame charts via bug 1148663
130 pref("devtools.performance.ui.enable-memory-flame", false);
132 // Enable experimental options in the UI only in Nightly
133 #if defined(NIGHTLY_BUILD)
134 pref("devtools.performance.ui.experimental", true);
135 #else
136 pref("devtools.performance.ui.experimental", false);
137 #endif
139 // Preferences for the new performance panel
140 // This pref configures the base URL for the profiler.firefox.com instance to use. This is
141 // useful so that a developer can change it while working on profiler.firefox.com, or in
142 // tests.
143 // This isn't exposed directly to the user.
144 pref("devtools.performance.recording.ui-base-url", "https://profiler.firefox.com");
146 // A JSON array of strings, where each string is a file path to an objdir on
147 // the host machine. This is used in order to look up symbol information from
148 // build artifacts of local builds.
149 pref("devtools.performance.recording.objdirs", "[]");
151 // The default cache UI setting
152 pref("devtools.cache.disabled", false);
154 // The default service workers UI setting
155 pref("devtools.serviceWorkers.testing.enabled", false);
157 // Enable the Network Monitor
158 pref("devtools.netmonitor.enabled", true);
160 // Enable the Application panel
161 pref("devtools.application.enabled", false);
163 // The default Network Monitor UI settings
164 pref("devtools.netmonitor.panes-network-details-width", 550);
165 pref("devtools.netmonitor.panes-network-details-height", 450);
166 pref("devtools.netmonitor.filters", "[\"all\"]");
167 pref("devtools.netmonitor.visibleColumns",
168   "[\"status\",\"method\",\"domain\",\"file\",\"cause\",\"type\",\"transferred\",\"contentSize\",\"waterfall\"]"
170 pref("devtools.netmonitor.columnsData",
171   '[{"name":"status","minWidth":30,"width":5}, {"name":"method","minWidth":30,"width":5}, {"name":"domain","minWidth":30,"width":10}, {"name":"file","minWidth":30,"width":25}, {"name":"url","minWidth":30,"width":25}, {"name":"cause","minWidth":30,"width":10},{"name":"type","minWidth":30,"width":5},{"name":"transferred","minWidth":30,"width":10},{"name":"contentSize","minWidth":30,"width":5},{"name":"waterfall","minWidth":150,"width":25}]');
172 pref("devtools.netmonitor.ws.payload-preview-width", 550);
173 pref("devtools.netmonitor.ws.payload-preview-height", 450);
175 // Support for columns resizing pref is now enabled (after merge date 03/18/19).
176 pref("devtools.netmonitor.features.resizeColumns", true);
178 pref("devtools.netmonitor.response.ui.limit", 10240);
180 // Save request/response bodies yes/no.
181 pref("devtools.netmonitor.saveRequestAndResponseBodies", true);
183 // The default Network monitor HAR export setting
184 pref("devtools.netmonitor.har.defaultLogDir", "");
185 pref("devtools.netmonitor.har.defaultFileName", "%hostname_Archive [%date]");
186 pref("devtools.netmonitor.har.jsonp", false);
187 pref("devtools.netmonitor.har.jsonpCallback", "");
188 pref("devtools.netmonitor.har.includeResponseBodies", true);
189 pref("devtools.netmonitor.har.compress", false);
190 pref("devtools.netmonitor.har.forceExport", false);
191 pref("devtools.netmonitor.har.pageLoadedTimeout", 1500);
192 pref("devtools.netmonitor.har.enableAutoExportToFile", false);
194 // Support for WebSocket monitoring pref (pending complete implementation)
195 pref("devtools.netmonitor.features.webSockets", false);
197 // Scratchpad settings
198 // - recentFileMax: The maximum number of recently-opened files
199 //                  stored. Setting this preference to 0 will not
200 //                  clear any recent files, but rather hide the
201 //                  'Open Recent'-menu.
202 // - lineNumbers: Whether to show line numbers or not.
203 // - wrapText: Whether to wrap text or not.
204 // - showTrailingSpace: Whether to highlight trailing space or not.
205 // - editorFontSize: Editor font size configuration.
206 // - enableAutocompletion: Whether to enable JavaScript autocompletion.
207 pref("devtools.scratchpad.recentFilesMax", 10);
208 pref("devtools.scratchpad.lineNumbers", true);
209 pref("devtools.scratchpad.wrapText", false);
210 pref("devtools.scratchpad.showTrailingSpace", false);
211 pref("devtools.scratchpad.editorFontSize", 12);
212 pref("devtools.scratchpad.enableAutocompletion", true);
214 // Enable the Storage Inspector
215 pref("devtools.storage.enabled", true);
217 // Enable the Style Editor.
218 pref("devtools.styleeditor.enabled", true);
219 pref("devtools.styleeditor.autocompletion-enabled", true);
220 pref("devtools.styleeditor.showMediaSidebar", true);
221 pref("devtools.styleeditor.mediaSidebarWidth", 238);
222 pref("devtools.styleeditor.navSidebarWidth", 245);
223 pref("devtools.styleeditor.transitions", true);
225 // Screenshot Option Settings.
226 pref("devtools.screenshot.clipboard.enabled", false);
227 pref("devtools.screenshot.audio.enabled", true);
229 // Enable Scratchpad
230 pref("devtools.scratchpad.enabled", false);
232 // Make sure the DOM panel is hidden by default
233 pref("devtools.dom.enabled", false);
235 // Enable the Accessibility panel.
236 pref("devtools.accessibility.enabled", true);
238 // Web console filters
239 pref("devtools.webconsole.filter.error", true);
240 pref("devtools.webconsole.filter.warn", true);
241 pref("devtools.webconsole.filter.info", true);
242 pref("devtools.webconsole.filter.log", true);
243 pref("devtools.webconsole.filter.debug", true);
244 pref("devtools.webconsole.filter.css", false);
245 pref("devtools.webconsole.filter.net", false);
246 pref("devtools.webconsole.filter.netxhr", false);
248 // Webconsole autocomplete preference
249 pref("devtools.webconsole.input.autocomplete",true);
251 // Browser console filters
252 pref("devtools.browserconsole.filter.error", true);
253 pref("devtools.browserconsole.filter.warn", true);
254 pref("devtools.browserconsole.filter.info", true);
255 pref("devtools.browserconsole.filter.log", true);
256 pref("devtools.browserconsole.filter.debug", true);
257 pref("devtools.browserconsole.filter.css", false);
258 pref("devtools.browserconsole.filter.net", false);
259 pref("devtools.browserconsole.filter.netxhr", false);
261 // Max number of inputs to store in web console history.
262 pref("devtools.webconsole.inputHistoryCount", 300);
264 // Persistent logging: |true| if you want the relevant tool to keep all of the
265 // logged messages after reloading the page, |false| if you want the output to
266 // be cleared each time page navigation happens.
267 pref("devtools.webconsole.persistlog", false);
268 pref("devtools.netmonitor.persistlog", false);
270 // Web Console timestamp: |true| if you want the logs and instructions
271 // in the Web Console to display a timestamp, or |false| to not display
272 // any timestamps.
273 pref("devtools.webconsole.timestampMessages", false);
275 // Enable the webconsole sidebar toggle in Nightly builds.
276 #if defined(NIGHTLY_BUILD)
277 pref("devtools.webconsole.sidebarToggle", true);
278 #else
279 pref("devtools.webconsole.sidebarToggle", false);
280 #endif
282 // Enable CodeMirror in the JsTerm
283 pref("devtools.webconsole.jsterm.codeMirror", true);
285 // Enable editor mode in the console.
286 pref("devtools.webconsole.input.editor", false);
288 // Disable the new performance recording panel by default
289 pref("devtools.performance.new-panel-enabled", false);
291 // Enable message grouping in the console, true by default
292 pref("devtools.webconsole.groupWarningMessages", true);
294 // Saved state of the Display content messages checkbox in the browser console.
295 pref("devtools.browserconsole.contentMessages", false);
297 // Enable client-side mapping service for source maps
298 pref("devtools.source-map.client-service.enabled", true);
300 // The number of lines that are displayed in the web console.
301 pref("devtools.hud.loglimit", 10000);
303 // The developer tools editor configuration:
304 // - tabsize: how many spaces to use when a Tab character is displayed.
305 // - expandtab: expand Tab characters to spaces.
306 // - keymap: which keymap to use (can be 'default', 'emacs' or 'vim')
307 // - autoclosebrackets: whether to permit automatic bracket/quote closing.
308 // - detectindentation: whether to detect the indentation from the file
309 // - enableCodeFolding: Whether to enable code folding or not.
310 pref("devtools.editor.tabsize", 2);
311 pref("devtools.editor.expandtab", true);
312 pref("devtools.editor.keymap", "default");
313 pref("devtools.editor.autoclosebrackets", true);
314 pref("devtools.editor.detectindentation", true);
315 pref("devtools.editor.enableCodeFolding", true);
316 pref("devtools.editor.autocomplete", true);
318 // The angle of the viewport.
319 pref("devtools.responsive.viewport.angle", 0);
320 // The width of the viewport.
321 pref("devtools.responsive.viewport.width", 320);
322 // The height of the viewport.
323 pref("devtools.responsive.viewport.height", 480);
324 // The pixel ratio of the viewport.
325 pref("devtools.responsive.viewport.pixelRatio", 0);
326 // Whether or not the viewports are left aligned.
327 pref("devtools.responsive.leftAlignViewport.enabled", false);
328 // Whether to reload when touch simulation is toggled
329 pref("devtools.responsive.reloadConditions.touchSimulation", false);
330 // Whether to reload when user agent is changed
331 pref("devtools.responsive.reloadConditions.userAgent", false);
332 // Whether to show the notification about reloading to apply emulation
333 pref("devtools.responsive.reloadNotification.enabled", true);
334 // Whether or not touch simulation is enabled.
335 pref("devtools.responsive.touchSimulation.enabled", false);
336 // Whether or not meta viewport is enabled, if and only if touchSimulation
337 // is also enabled.
338 pref("devtools.responsive.metaViewport.enabled", false);
339 // The user agent of the viewport.
340 pref("devtools.responsive.userAgent", "");
342 // Whether to show the settings onboarding tooltip only in release or beta builds.
343 #if defined(RELEASE_OR_BETA)
344 pref("devtools.responsive.show-setting-tooltip", true);
345 #else
346 pref("devtools.responsive.show-setting-tooltip", false);
347 #endif
348 // Show the custom user agent input in Nightly builds.
349 #if defined(NIGHTLY_BUILD)
350 pref("devtools.responsive.showUserAgentInput", true);
351 #else
352 pref("devtools.responsive.showUserAgentInput", false);
353 #endif
355 // Enable new about:debugging.
356 pref("devtools.aboutdebugging.new-enabled", true);
358 // Show tab debug targets for This Firefox (on by default for local builds).
359 #ifdef MOZILLA_OFFICIAL
360   pref("devtools.aboutdebugging.local-tab-debugging", false);
361 #else
362   pref("devtools.aboutdebugging.local-tab-debugging", true);
363 #endif
365 // Show process debug targets.
366 pref("devtools.aboutdebugging.process-debugging", true);
367 // Stringified array of network locations that users can connect to.
368 pref("devtools.aboutdebugging.network-locations", "[]");
369 // Debug target pane collapse/expand settings.
370 pref("devtools.aboutdebugging.collapsibilities.installedExtension", false);
371 pref("devtools.aboutdebugging.collapsibilities.otherWorker", false);
372 pref("devtools.aboutdebugging.collapsibilities.serviceWorker", false);
373 pref("devtools.aboutdebugging.collapsibilities.sharedWorker", false);
374 pref("devtools.aboutdebugging.collapsibilities.tab", false);
375 pref("devtools.aboutdebugging.collapsibilities.temporaryExtension", false);
377 // about:debugging: only show system and hidden extensions in local builds by default.
378 #ifdef MOZILLA_OFFICIAL
379   pref("devtools.aboutdebugging.showHiddenAddons", false);
380 #else
381   pref("devtools.aboutdebugging.showHiddenAddons", true);
382 #endif
384 // Map top-level await expressions in the console
385 pref("devtools.debugger.features.map-await-expression", true);