Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
6 <?xml-stylesheet href="chrome://browser/content/devtools/widgets.css" type="text/css"?>
7 <?xml-stylesheet href="chrome://browser/content/devtools/debugger.css" type="text/css"?>
8 <?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
9 <?xml-stylesheet href="chrome://browser/skin/devtools/widgets.css" type="text/css"?>
10 <?xml-stylesheet href="chrome://browser/skin/devtools/debugger.css" type="text/css"?>
11 <!DOCTYPE window [
12 <!ENTITY % debuggerDTD SYSTEM "chrome://browser/locale/devtools/debugger.dtd">
13 %debuggerDTD;
14 ]>
15 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
17 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
18 macanimationtype="document"
19 fullscreenbutton="true"
20 screenX="4" screenY="4"
21 width="960" height="480"
22 persist="screenX screenY width height sizemode">
24 <script type="application/javascript;version=1.8"
25 src="chrome://browser/content/devtools/theme-switching.js"/>
26 <script type="text/javascript" src="chrome://global/content/globalOverlay.js"/>
27 <script type="text/javascript" src="debugger-controller.js"/>
28 <script type="text/javascript" src="debugger-view.js"/>
29 <script type="text/javascript" src="debugger-toolbar.js"/>
30 <script type="text/javascript" src="debugger-panes.js"/>
32 <commandset id="editMenuCommands"/>
34 <commandset id="debuggerCommands">
35 <command id="blackBoxCommand"
36 oncommand="DebuggerView.Sources.toggleBlackBoxing()"/>
37 <command id="unBlackBoxButton"
38 oncommand="DebuggerView.Sources._onStopBlackBoxing()"/>
39 <command id="prettyPrintCommand"
40 oncommand="DebuggerView.Sources.togglePrettyPrint()"/>
41 <command id="toggleBreakpointsCommand"
42 oncommand="DebuggerView.Sources.toggleBreakpoints()"/>
43 <command id="nextSourceCommand"
44 oncommand="DebuggerView.Sources.selectNextItem()"/>
45 <command id="prevSourceCommand"
46 oncommand="DebuggerView.Sources.selectPrevItem()"/>
47 <command id="resumeCommand"
48 oncommand="DebuggerView.Toolbar._onResumePressed()"/>
49 <command id="stepOverCommand"
50 oncommand="DebuggerView.Toolbar._onStepOverPressed()"/>
51 <command id="stepInCommand"
52 oncommand="DebuggerView.Toolbar._onStepInPressed()"/>
53 <command id="stepOutCommand"
54 oncommand="DebuggerView.Toolbar._onStepOutPressed()"/>
55 <command id="fileSearchCommand"
56 oncommand="DebuggerView.Filtering._doFileSearch()"/>
57 <command id="globalSearchCommand"
58 oncommand="DebuggerView.Filtering._doGlobalSearch()"/>
59 <command id="functionSearchCommand"
60 oncommand="DepbuggerView.Filtering._doFunctionSearch()"/>
61 <command id="tokenSearchCommand"
62 oncommand="DebuggerView.Filtering._doTokenSearch()"/>
63 <command id="lineSearchCommand"
64 oncommand="DebuggerView.Filtering._doLineSearch()"/>
65 <command id="variableSearchCommand"
66 oncommand="DebuggerView.Filtering._doVariableSearch()"/>
67 <command id="variablesFocusCommand"
68 oncommand="DebuggerView.Filtering._doVariablesFocus()"/>
69 <command id="addBreakpointCommand"
70 oncommand="DebuggerView.Sources._onCmdAddBreakpoint()"/>
71 <command id="addConditionalBreakpointCommand"
72 oncommand="DebuggerView.Sources._onCmdAddConditionalBreakpoint()"/>
73 <command id="addWatchExpressionCommand"
74 oncommand="DebuggerView.WatchExpressions._onCmdAddExpression()"/>
75 <command id="removeAllWatchExpressionsCommand"
76 oncommand="DebuggerView.WatchExpressions._onCmdRemoveAllExpressions()"/>
77 <command id="toggleAutoPrettyPrint"
78 oncommand="DebuggerView.Options._toggleAutoPrettyPrint()"/>
79 <command id="togglePauseOnExceptions"
80 oncommand="DebuggerView.Options._togglePauseOnExceptions()"/>
81 <command id="toggleIgnoreCaughtExceptions"
82 oncommand="DebuggerView.Options._toggleIgnoreCaughtExceptions()"/>
83 <command id="toggleShowPanesOnStartup"
84 oncommand="DebuggerView.Options._toggleShowPanesOnStartup()"/>
85 <command id="toggleShowOnlyEnum"
86 oncommand="DebuggerView.Options._toggleShowVariablesOnlyEnum()"/>
87 <command id="toggleShowVariablesFilterBox"
88 oncommand="DebuggerView.Options._toggleShowVariablesFilterBox()"/>
89 <command id="toggleShowOriginalSource"
90 oncommand="DebuggerView.Options._toggleShowOriginalSource()"/>
91 <command id="toggleTracing"
92 oncommand="DebuggerView.Tracer._onToggleTracing()"/>
93 <command id="startTracing"
94 oncommand="DebuggerView.Tracer._onStartTracing()"/>
95 <command id="clearTraces"
96 oncommand="DebuggerView.Tracer._onClear()"/>
97 </commandset>
99 <popupset id="debuggerPopupset">
100 <menupopup id="sourceEditorContextMenu"
101 onpopupshowing="goUpdateGlobalEditMenuItems()">
102 <menuitem id="se-dbg-cMenu-addBreakpoint"
103 label="&debuggerUI.seMenuBreak;"
104 key="addBreakpointKey"
105 command="addBreakpointCommand"/>
106 <menuitem id="se-dbg-cMenu-addConditionalBreakpoint"
107 label="&debuggerUI.seMenuCondBreak;"
108 key="addConditionalBreakpointKey"
109 command="addConditionalBreakpointCommand"/>
110 <menuitem id="se-dbg-cMenu-addAsWatch"
111 label="&debuggerUI.seMenuAddWatch;"
112 key="addWatchExpressionKey"
113 command="addWatchExpressionCommand"/>
114 <menuseparator/>
115 <menuitem id="cMenu_copy"/>
116 <menuseparator/>
117 <menuitem id="cMenu_selectAll"/>
118 <menuseparator/>
119 <menuitem id="se-dbg-cMenu-findFile"
120 label="&debuggerUI.searchFile;"
121 accesskey="&debuggerUI.searchFile.accesskey;"
122 key="fileSearchKey"
123 command="fileSearchCommand"/>
124 <menuitem id="se-dbg-cMenu-findGlobal"
125 label="&debuggerUI.searchGlobal;"
126 accesskey="&debuggerUI.searchGlobal.accesskey;"
127 key="globalSearchKey"
128 command="globalSearchCommand"/>
129 <menuitem id="se-dbg-cMenu-findFunction"
130 label="&debuggerUI.searchFunction;"
131 accesskey="&debuggerUI.searchFunction.accesskey;"
132 key="functionSearchKey"
133 command="functionSearchCommand"/>
134 <menuseparator/>
135 <menuitem id="se-dbg-cMenu-findToken"
136 label="&debuggerUI.searchToken;"
137 accesskey="&debuggerUI.searchToken.accesskey;"
138 key="tokenSearchKey"
139 command="tokenSearchCommand"/>
140 <menuitem id="se-dbg-cMenu-findLine"
141 label="&debuggerUI.searchGoToLine;"
142 accesskey="&debuggerUI.searchGoToLine.accesskey;"
143 key="lineSearchKey"
144 command="lineSearchCommand"/>
145 <menuseparator/>
146 <menuitem id="se-dbg-cMenu-findVariable"
147 label="&debuggerUI.searchVariable;"
148 accesskey="&debuggerUI.searchVariable.accesskey;"
149 key="variableSearchKey"
150 command="variableSearchCommand"/>
151 <menuitem id="se-dbg-cMenu-focusVariables"
152 label="&debuggerUI.focusVariables;"
153 accesskey="&debuggerUI.focusVariables.accesskey;"
154 key="variablesFocusKey"
155 command="variablesFocusCommand"/>
156 <menuitem id="se-dbg-cMenu-prettyPrint"
157 label="&debuggerUI.sources.prettyPrint;"
158 command="prettyPrintCommand"/>
159 </menupopup>
160 <menupopup id="debuggerWatchExpressionsContextMenu">
161 <menuitem id="add-watch-expression"
162 label="&debuggerUI.addWatch;"
163 accesskey="&debuggerUI.addWatch.accesskey;"
164 key="addWatchExpressionKey"
165 command="addWatchExpressionCommand"/>
166 <menuitem id="removeAll-watch-expression"
167 label="&debuggerUI.removeAllWatch;"
168 accesskey="&debuggerUI.removeAllWatch.accesskey;"
169 key="removeAllWatchExpressionsKey"
170 command="removeAllWatchExpressionsCommand"/>
171 </menupopup>
172 <menupopup id="debuggerPrefsContextMenu"
173 position="before_end"
174 onpopupshowing="DebuggerView.Options._onPopupShowing()"
175 onpopuphiding="DebuggerView.Options._onPopupHiding()"
176 onpopuphidden="DebuggerView.Options._onPopupHidden()">
177 <menuitem id="auto-pretty-print"
178 type="checkbox"
179 label="&debuggerUI.autoPrettyPrint;"
180 accesskey="&debuggerUI.autoPrettyPrint.accesskey;"
181 command="toggleAutoPrettyPrint"/>
182 <menuitem id="pause-on-exceptions"
183 type="checkbox"
184 label="&debuggerUI.pauseExceptions;"
185 accesskey="&debuggerUI.pauseExceptions.accesskey;"
186 command="togglePauseOnExceptions"/>
187 <menuitem id="ignore-caught-exceptions"
188 type="checkbox"
189 label="&debuggerUI.ignoreCaughtExceptions;"
190 accesskey="&debuggerUI.ignoreCaughtExceptions.accesskey;"
191 command="toggleIgnoreCaughtExceptions"/>
192 <menuitem id="show-panes-on-startup"
193 type="checkbox"
194 label="&debuggerUI.showPanesOnInit;"
195 accesskey="&debuggerUI.showPanesOnInit.accesskey;"
196 command="toggleShowPanesOnStartup"/>
197 <menuitem id="show-vars-only-enum"
198 type="checkbox"
199 label="&debuggerUI.showOnlyEnum;"
200 accesskey="&debuggerUI.showOnlyEnum.accesskey;"
201 command="toggleShowOnlyEnum"/>
202 <menuitem id="show-vars-filter-box"
203 type="checkbox"
204 label="&debuggerUI.showVarsFilter;"
205 accesskey="&debuggerUI.showVarsFilter.accesskey;"
206 command="toggleShowVariablesFilterBox"/>
207 <menuitem id="show-original-source"
208 type="checkbox"
209 label="&debuggerUI.showOriginalSource;"
210 accesskey="&debuggerUI.showOriginalSource.accesskey;"
211 command="toggleShowOriginalSource"/>
212 </menupopup>
213 </popupset>
215 <keyset id="debuggerKeys">
216 <key id="nextSourceKey"
217 keycode="VK_DOWN"
218 modifiers="accel alt"
219 command="nextSourceCommand"/>
220 <key id="prevSourceKey"
221 keycode="VK_UP"
222 modifiers="accel alt"
223 command="prevSourceCommand"/>
224 <key id="resumeKey"
225 keycode="&debuggerUI.stepping.resume1;"
226 command="resumeCommand"/>
227 <key id="resumeKey2"
228 keycode="&debuggerUI.stepping.resume2;"
229 modifiers="accel"
230 command="resumeCommand"/>
231 <key id="stepOverKey"
232 keycode="&debuggerUI.stepping.stepOver1;"
233 command="stepOverCommand"/>
234 <key id="stepOverKey2"
235 keycode="&debuggerUI.stepping.stepOver2;"
236 modifiers="accel"
237 command="stepOverCommand"/>
238 <key id="stepInKey"
239 keycode="&debuggerUI.stepping.stepIn1;"
240 command="stepInCommand"/>
241 <key id="stepInKey2"
242 keycode="&debuggerUI.stepping.stepIn2;"
243 modifiers="accel"
244 command="stepInCommand"/>
245 <key id="stepOutKey"
246 keycode="&debuggerUI.stepping.stepOut1;"
247 modifiers="shift"
248 command="stepOutCommand"/>
249 <key id="stepOutKey2"
250 keycode="&debuggerUI.stepping.stepOut2;"
251 modifiers="accel shift"
252 command="stepOutCommand"/>
253 <key id="fileSearchKey"
254 key="&debuggerUI.searchFile.key;"
255 modifiers="accel"
256 command="fileSearchCommand"/>
257 <key id="fileSearchKey"
258 key="&debuggerUI.searchFile.altkey;"
259 modifiers="accel"
260 command="fileSearchCommand"/>
261 <key id="globalSearchKey"
262 key="&debuggerUI.searchGlobal.key;"
263 modifiers="accel alt"
264 command="globalSearchCommand"/>
265 <key id="functionSearchKey"
266 key="&debuggerUI.searchFunction.key;"
267 modifiers="accel"
268 command="functionSearchCommand"/>
269 <key id="tokenSearchKey"
270 key="&debuggerUI.searchToken.key;"
271 modifiers="accel"
272 command="tokenSearchCommand"/>
273 <key id="lineSearchKey"
274 key="&debuggerUI.searchGoToLine.key;"
275 modifiers="accel"
276 command="lineSearchCommand"/>
277 <key id="variableSearchKey"
278 key="&debuggerUI.searchVariable.key;"
279 modifiers="accel alt"
280 command="variableSearchCommand"/>
281 <key id="variablesFocusKey"
282 key="&debuggerUI.focusVariables.key;"
283 modifiers="accel shift"
284 command="variablesFocusCommand"/>
285 <key id="addBreakpointKey"
286 key="&debuggerUI.seMenuBreak.key;"
287 modifiers="accel"
288 command="addBreakpointCommand"/>
289 <key id="addConditionalBreakpointKey"
290 key="&debuggerUI.seMenuCondBreak.key;"
291 modifiers="accel shift"
292 command="addConditionalBreakpointCommand"/>
293 <key id="addWatchExpressionKey"
294 key="&debuggerUI.seMenuAddWatch.key;"
295 modifiers="accel shift"
296 command="addWatchExpressionCommand"/>
297 <key id="removeAllWatchExpressionsKey"
298 key="&debuggerUI.removeAllWatch.key;"
299 modifiers="accel alt"
300 command="removeAllWatchExpressionsCommand"/>
301 </keyset>
303 <vbox id="body"
304 class="theme-body"
305 layout="horizontal"
306 flex="1">
307 <toolbar id="debugger-toolbar"
308 class="devtools-toolbar">
309 <hbox id="debugger-controls"
310 class="devtools-toolbarbutton-group">
311 <toolbarbutton id="resume"
312 class="devtools-toolbarbutton"
313 tabindex="0"/>
314 <toolbarbutton id="step-over"
315 class="devtools-toolbarbutton"
316 tabindex="0"/>
317 <toolbarbutton id="step-in"
318 class="devtools-toolbarbutton"
319 tabindex="0"/>
320 <toolbarbutton id="step-out"
321 class="devtools-toolbarbutton"
322 tabindex="0"/>
323 </hbox>
324 <hbox>
325 <toolbarbutton id="trace"
326 class="devtools-toolbarbutton"
327 command="toggleTracing"
328 tabindex="0"
329 hidden="true"/>
330 </hbox>
331 <vbox id="stackframes" flex="1"/>
332 <textbox id="searchbox"
333 class="devtools-searchinput" type="search"/>
334 <toolbarbutton id="instruments-pane-toggle"
335 class="devtools-toolbarbutton"
336 tooltiptext="&debuggerUI.panesButton.tooltip;"
337 tabindex="0"/>
338 <toolbarbutton id="debugger-options"
339 class="devtools-option-toolbarbutton"
340 tooltiptext="&debuggerUI.optsButton.tooltip;"
341 popup="debuggerPrefsContextMenu"
342 tabindex="0"/>
343 </toolbar>
344 <vbox id="globalsearch" orient="vertical" hidden="true"/>
345 <splitter class="devtools-horizontal-splitter" hidden="true"/>
346 <hbox id="debugger-widgets" flex="1">
347 <tabbox id="sources-pane"
348 class="devtools-sidebar-tabs">
349 <tabs>
350 <tab id="sources-tab" label="&debuggerUI.tabs.sources;"/>
351 <tab id="callstack-tab" label="&debuggerUI.tabs.callstack;"/>
352 <tab id="tracer-tab" label="&debuggerUI.tabs.traces;" hidden="true"/>
353 </tabs>
354 <tabpanels flex="1">
355 <tabpanel id="sources-tabpanel">
356 <vbox id="sources" flex="1"/>
357 <toolbar id="sources-toolbar" class="devtools-toolbar">
358 <hbox id="sources-controls"
359 class="devtools-toolbarbutton-group">
360 <toolbarbutton id="black-box"
361 class="devtools-toolbarbutton"
362 tooltiptext="&debuggerUI.sources.blackBoxTooltip;"
363 command="blackBoxCommand"/>
364 <toolbarbutton id="pretty-print"
365 class="devtools-toolbarbutton devtools-monospace"
366 label="{}"
367 tooltiptext="&debuggerUI.sources.prettyPrint;"
368 command="prettyPrintCommand"
369 hidden="true"/>
370 </hbox>
371 <toolbarbutton id="toggle-breakpoints"
372 class="devtools-toolbarbutton"
373 tooltiptext="&debuggerUI.sources.toggleBreakpoints;"
374 command="toggleBreakpointsCommand"/>
375 </toolbar>
376 </tabpanel>
377 <tabpanel id="callstack-tabpanel">
378 <vbox id="callstack-list" flex="1"/>
379 </tabpanel>
380 <tabpanel id="tracer-tabpanel">
381 <vbox id="tracer-traces" flex="1"/>
382 <hbox class="trace-item-template" hidden="true">
383 <hbox class="trace-item" align="center" flex="1" crop="end">
384 <label class="trace-type plain"/>
385 <label class="trace-name plain" crop="end"/>
386 </hbox>
387 </hbox>
388 <toolbar id="tracer-toolbar" class="devtools-toolbar">
389 <toolbarbutton id="clear-tracer"
390 label="&debuggerUI.clearButton;"
391 tooltiptext="&debuggerUI.clearButton.tooltip;"
392 command="clearTraces"
393 class="devtools-toolbarbutton"/>
394 <textbox id="tracer-search"
395 class="devtools-searchinput"
396 flex="1"
397 type="search"/>
398 </toolbar>
399 </tabpanel>
400 </tabpanels>
401 </tabbox>
402 <splitter id="sources-and-editor-splitter"
403 class="devtools-side-splitter"/>
404 <deck id="editor-deck" flex="1">
405 <vbox id="editor"/>
406 <vbox id="black-boxed-message"
407 align="center"
408 pack="center">
409 <description id="black-boxed-message-label">
410 &debuggerUI.blackBoxMessage.label;
411 </description>
412 <button id="black-boxed-message-button"
413 class="devtools-toolbarbutton"
414 label="&debuggerUI.blackBoxMessage.unBlackBoxButton;"
415 image="chrome://browser/skin/devtools/debugger-blackbox-eye.png"
416 command="unBlackBoxCommand"/>
417 </vbox>
418 <vbox id="source-progress-container"
419 align="center"
420 pack="center">
421 <progressmeter id="source-progress"
422 mode="undetermined"/>
423 </vbox>
424 </deck>
425 <splitter id="editor-and-instruments-splitter"
426 class="devtools-side-splitter"/>
427 <tabbox id="instruments-pane"
428 class="devtools-sidebar-tabs"
429 hidden="true">
430 <tabs>
431 <tab id="variables-tab" label="&debuggerUI.tabs.variables;"/>
432 <tab id="events-tab" label="&debuggerUI.tabs.events;"/>
433 </tabs>
434 <tabpanels flex="1">
435 <tabpanel id="variables-tabpanel">
436 <vbox id="expressions"/>
437 <splitter class="devtools-horizontal-splitter"/>
438 <vbox id="variables" flex="1"/>
439 </tabpanel>
440 <tabpanel id="events-tabpanel">
441 <vbox id="event-listeners" flex="1"/>
442 </tabpanel>
443 </tabpanels>
444 </tabbox>
445 <splitter id="vertical-layout-splitter"
446 class="devtools-horizontal-splitter"/>
447 <hbox id="vertical-layout-panes-container">
448 <splitter id="sources-and-instruments-splitter"
449 class="devtools-side-splitter"/>
450 <!-- The sources-pane and instruments-pane will be moved in this
451 container if the toolbox's host requires it. -->
452 </hbox>
453 </hbox>
454 </vbox>
456 <panel id="searchbox-help-panel"
457 level="top"
458 type="arrow"
459 position="before_start"
460 noautofocus="true"
461 consumeoutsideclicks="false">
462 <vbox>
463 <hbox>
464 <label id="filter-label"/>
465 </hbox>
466 <label id="searchbox-panel-operators"
467 value="&debuggerUI.searchPanelOperators;"/>
468 <hbox align="center">
469 <button id="global-operator-button"
470 class="searchbox-panel-operator-button devtools-monospace"
471 command="globalSearchCommand"/>
472 <label id="global-operator-label"
473 class="plain searchbox-panel-operator-label"/>
474 </hbox>
475 <hbox align="center">
476 <button id="function-operator-button"
477 class="searchbox-panel-operator-button devtools-monospace"
478 command="functionSearchCommand"/>
479 <label id="function-operator-label"
480 class="plain searchbox-panel-operator-label"/>
481 </hbox>
482 <hbox align="center">
483 <button id="token-operator-button"
484 class="searchbox-panel-operator-button devtools-monospace"
485 command="tokenSearchCommand"/>
486 <label id="token-operator-label"
487 class="plain searchbox-panel-operator-label"/>
488 </hbox>
489 <hbox align="center">
490 <button id="line-operator-button"
491 class="searchbox-panel-operator-button devtools-monospace"
492 command="lineSearchCommand"/>
493 <label id="line-operator-label"
494 class="plain searchbox-panel-operator-label"/>
495 </hbox>
496 <hbox align="center">
497 <button id="variable-operator-button"
498 class="searchbox-panel-operator-button devtools-monospace"
499 command="variableSearchCommand"/>
500 <label id="variable-operator-label"
501 class="plain searchbox-panel-operator-label"/>
502 </hbox>
503 </vbox>
504 </panel>
506 <panel id="conditional-breakpoint-panel"
507 level="top"
508 type="arrow"
509 noautofocus="true"
510 consumeoutsideclicks="false">
511 <vbox>
512 <label id="conditional-breakpoint-panel-description"
513 value="&debuggerUI.condBreakPanelTitle;"/>
514 <textbox id="conditional-breakpoint-panel-textbox"/>
515 </vbox>
516 </panel>
518 </window>