Bug 1307580 - Preferences Pane should show Debugger source maps checkbox. r=jlongster

This commit is contained in:
Jason Laster 2016-10-20 14:16:40 -04:00
Родитель 8204fc16cb
Коммит 3f112fcb04
4 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -84,6 +84,16 @@
</label>
</fieldset>
<fieldset id="debugger-options" class="options-groupbox">
<legend>&options.debugger.label;</legend>
<label title="&options.sourceMaps.tooltip;">
<input type="checkbox"
id="debugger-sourcemaps"
data-pref="devtools.debugger.client-source-maps-enabled"/>
<span>&options.sourceMaps.label;</span>
</label>
</fieldset>
<fieldset id="styleeditor-options" class="options-groupbox">
<legend>&options.styleeditor.label;</legend>
<label title="&options.stylesheetSourceMaps.tooltip;">

Просмотреть файл

@ -71,6 +71,7 @@ function setPrefDefaults() {
// Bug 1225160 - Using source maps with browser debugging can lead to a crash
Services.prefs.setBoolPref("devtools.debugger.source-maps-enabled", false);
Services.prefs.setBoolPref("devtools.debugger.new-debugger-frontend", false);
Services.prefs.setBoolPref("devtools.debugger.client-source-maps-enabled", true);
}
window.addEventListener("load", function() {

Просмотреть файл

@ -159,6 +159,15 @@
<!ENTITY options.timestampMessages.label "Enable timestamps">
<!ENTITY options.timestampMessages.tooltip "If you enable this option commands and output in the Web Console will display a timestamp">
<!-- LOCALIZATION NOTE (options.debugger.label): This is the label for the
- heading of the group of Debugger preferences in the options panel. -->
<!ENTITY options.debugger.label "Debugger">
<!-- LOCALIZATION NOTE (options.sourceMap.label): This is the
- label for the checkbox that toggles source maps in the Debugger -->
<!ENTITY options.sourceMaps.label "Enable Source Maps">
<!ENTITY options.sourceMaps.tooltip "If you enable this option sources will be mapped in the Debugger and Console.">
<!-- LOCALIZATION NOTE (options.styleeditor.label): This is the label for the
- heading of the group of Style Editor preferences in the options
- panel. -->

Просмотреть файл

@ -95,6 +95,7 @@ pref("devtools.debugger.remote-timeout", 20000);
pref("devtools.debugger.pause-on-exceptions", false);
pref("devtools.debugger.ignore-caught-exceptions", true);
pref("devtools.debugger.source-maps-enabled", true);
pref("devtools.debugger.client-source-maps-enabled", true);
pref("devtools.debugger.pretty-print-enabled", true);
pref("devtools.debugger.auto-pretty-print", false);
pref("devtools.debugger.auto-black-box", true);