Add UI for debug prefs - JS strict and dump(). Bug 90945. r=bzbarsky, sr=blake.

git-svn-id: svn://10.0.0.236/trunk@228488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net
2007-06-21 19:44:50 +00:00
parent 92aa6e8c25
commit b2a66de562
2 changed files with 16 additions and 11 deletions

View File

@@ -34,9 +34,10 @@
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["nglayoutDebugWindow",
"debugXULBoxes", "nglayoutDebugUseXBLForms",
"debugXULBoxes", "browserDOMWindowDumpEnabled",
"javascriptOptionsStrict", "nglayoutDebugUseXBLForms",
"nglayoutDebugEnableXPCOMRefcntLog", "showAboutAsStupidModalWindow",
"browserEnableTBDnD", "acceleratorKeyValue", "menuAccessKeyValue"];
"acceleratorKeyValue", "menuAccessKeyValue"];
]]>
</script>
@@ -56,16 +57,19 @@
panel and you can damn well click the widgets! -->
<groupbox orient="vertical" autostretch="never">
<label value="&debugMiscellaneous.label;"/>
<checkbox id="nglayoutDebugUseXBLForms" label="Use XBL-based form controls (takes effect after restart). Don't file bugs on these controls; they are still under construction."
pref="true" preftype="bool" prefstring="nglayout.debug.enable_xbl_forms"
<checkbox id="browserDOMWindowDumpEnabled" label="&debugEnableDump.label;"
pref="true" preftype="bool" prefstring="browser.dom.window.dump.enabled"
prefattribute="checked"/>
<checkbox id="browserEnableTBDnD" label="&debugEnableTBDnD.label;"
pref="true" preftype="bool" prefstring="browser.enable.tb_dnd"
<checkbox id="javascriptOptionsStrict" label="&debugStrictJavascript.label;"
pref="true" preftype="bool" prefstring="javascript.options.strict"
prefattribute="checked"/>
<checkbox id="nglayoutDebugUseXBLForms" label="&debugUseXBLForms.label;"
pref="true" preftype="bool" prefstring="nglayout.debug.enable_xbl_forms"
prefattribute="checked"/>
<checkbox id="nglayoutDebugEnableXPCOMRefcntLog" label="&debugEnableXPCOMRefcntLog.label;"
pref="true" preftype="bool" prefstring="nglayout.debug.enable_xpcom_refcnt_log"
prefattribute="checked"/>
<checkbox id="showAboutAsStupidModalWindow" label="&debugShowAboutAsStupidModalWindow.label;"
<checkbox id="showAboutAsStupidModalWindow" label="&debugShowAboutAsModal.label;"
pref="true" preftype="bool" prefstring="browser.show_about_as_stupid_modal_window"
prefattribute="checked"/>
</groupbox>

View File

@@ -6,11 +6,12 @@
<!ENTITY rHeader "General debugging preferences">
<!-- Miscelleneous -->
<!ENTITY debugMiscellaneous.label "Miscellaneous">
<!ENTITY debugMiscellaneous.label "Miscellaneous">
<!ENTITY debugEnableDump.label "Enable JavaScript dump() output">
<!ENTITY debugStrictJavascript.label "Show strict JavaScript warnings">
<!ENTITY debugUseXBLForms.label "Use XBL-based form controls (takes effect after restart). Don't file bugs on these controls; they are still under construction.">
<!ENTITY debugEnableXPCOMRefcntLog.label "Enable XPCOM Refcount Log">
<!ENTITY debugShowAboutAsStupidModalWindow.label "Show 'About' as modal dialog">
<!ENTITY debugEnableTBDnD.label "Personal Toolbar Drag &amp; Drop (buggy)">
<!ENTITY debugShowAboutAsModal.label "Show 'About' as modal dialog">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Rendering">