webconsole.xul 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. <!DOCTYPE window [
  6. <!ENTITY % webConsoleDTD SYSTEM "chrome://devtools/locale/webConsole.dtd">
  7. %webConsoleDTD;
  8. ]>
  9. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  10. <?xml-stylesheet href="resource://devtools/client/themes/common.css"
  11. type="text/css"?>
  12. <?xml-stylesheet href="chrome://devtools/skin/widgets.css"
  13. type="text/css"?>
  14. <?xml-stylesheet href="chrome://devtools/skin/webconsole.css"
  15. type="text/css"?>
  16. <?xml-stylesheet href="chrome://devtools/skin/components-frame.css"
  17. type="text/css"?>
  18. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  19. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20. id="devtools-webconsole"
  21. macanimationtype="document"
  22. fullscreenbutton="true"
  23. title="&window.title;"
  24. browserConsoleTitle="&browserConsole.title;"
  25. windowtype="devtools:webconsole"
  26. width="900" height="350"
  27. persist="screenX screenY width height sizemode">
  28. <script type="application/javascript;version=1.8"
  29. src="chrome://devtools/content/shared/theme-switching.js"/>
  30. <script type="application/javascript;version=1.8"
  31. src="resource://devtools/client/webconsole/new-console-output/main.js"/>
  32. <script type="text/javascript" src="chrome://global/content/globalOverlay.js"/>
  33. <script type="text/javascript" src="resource://devtools/client/webconsole/net/main.js"/>
  34. <script type="text/javascript"><![CDATA[
  35. function goUpdateConsoleCommands() {
  36. goUpdateCommand("consoleCmd_openURL");
  37. goUpdateCommand("consoleCmd_copyURL");
  38. }
  39. // ]]></script>
  40. <commandset id="editMenuCommands"/>
  41. <commandset id="consoleCommands"
  42. commandupdater="true"
  43. events="focus,select"
  44. oncommandupdate="goUpdateConsoleCommands();">
  45. <command id="consoleCmd_openURL"
  46. oncommand="goDoCommand('consoleCmd_openURL');"/>
  47. <command id="consoleCmd_copyURL"
  48. oncommand="goDoCommand('consoleCmd_copyURL');"/>
  49. </commandset>
  50. <keyset id="consoleKeys">
  51. </keyset>
  52. <keyset id="editMenuKeys"/>
  53. <popupset id="mainPopupSet">
  54. <menupopup id="output-contextmenu" onpopupshowing="goUpdateGlobalEditMenuItems()">
  55. <menuitem id="menu_openURL" label="&openURL.label;"
  56. accesskey="&openURL.accesskey;" command="consoleCmd_openURL"
  57. selection="network" selectionType="single"/>
  58. <menuitem id="menu_copyURL" label="&copyURLCmd.label;"
  59. accesskey="&copyURLCmd.accesskey;" command="consoleCmd_copyURL"
  60. selection="network" selectionType="single"/>
  61. <menuitem id="menu_openInVarView" label="&openInVarViewCmd.label;"
  62. accesskey="&openInVarViewCmd.accesskey;" disabled="true"/>
  63. <menuitem id="menu_storeAsGlobal" label="&storeAsGlobalVar.label;"
  64. accesskey="&storeAsGlobalVar.accesskey;"/>
  65. <menuitem id="cMenu_copy"/>
  66. <menuitem id="cMenu_selectAll"/>
  67. </menupopup>
  68. </popupset>
  69. <tooltip id="aHTMLTooltip" page="true"/>
  70. <box class="hud-outer-wrapper devtools-responsive-container theme-body" flex="1">
  71. <vbox class="hud-console-wrapper devtools-main-content" flex="1">
  72. <toolbar class="hud-console-filter-toolbar devtools-toolbar" mode="full">
  73. <toolbarbutton class="webconsole-clear-console-button devtools-toolbarbutton devtools-clear-icon"
  74. tooltiptext="&btnClear.tooltip;"
  75. accesskey="&btnClear.accesskey;"
  76. tabindex="3"/>
  77. <hbox class="devtools-toolbarbutton-group">
  78. <toolbarbutton label="&btnPageNet.label;" type="menu-button"
  79. category="net" class="devtools-toolbarbutton webconsole-filter-button"
  80. tooltiptext="&btnPageNet.tooltip;"
  81. accesskeyMacOSX="&btnPageNet.accesskeyMacOSX;"
  82. accesskey="&btnPageNet.accesskey;"
  83. tabindex="4">
  84. <menupopup id="net-contextmenu">
  85. <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false"
  86. prefKey="network"/>
  87. <menuitem label="&btnConsoleWarnings;" type="checkbox" autocheck="false"
  88. prefKey="netwarn"/>
  89. <menuitem label="&btnConsoleXhr;" type="checkbox" autocheck="false"
  90. prefKey="netxhr"/>
  91. <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false"
  92. prefKey="networkinfo"/>
  93. <menuseparator id="saveBodiesSeparator" />
  94. <menuitem id="saveBodies" type="checkbox" label="&saveBodies.label;"
  95. accesskey="&saveBodies.accesskey;" autocheck="false"
  96. prefKey="saveBodies"/>
  97. </menupopup>
  98. </toolbarbutton>
  99. <toolbarbutton label="&btnPageCSS.label;" type="menu-button"
  100. category="css" class="devtools-toolbarbutton webconsole-filter-button"
  101. tooltiptext="&btnPageCSS.tooltip2;"
  102. accesskey="&btnPageCSS.accesskey;"
  103. tabindex="5">
  104. <menupopup id="css-contextmenu">
  105. <menuitem label="&btnConsoleErrors;" type="checkbox" autocheck="false"
  106. prefKey="csserror"/>
  107. <menuitem label="&btnConsoleWarnings;" type="checkbox"
  108. autocheck="false" prefKey="cssparser"/>
  109. <menuitem label="&btnConsoleReflows;" type="checkbox"
  110. autocheck="false" prefKey="csslog"/>
  111. </menupopup>
  112. </toolbarbutton>
  113. <toolbarbutton label="&btnPageJS.label;" type="menu-button"
  114. category="js" class="devtools-toolbarbutton webconsole-filter-button"
  115. tooltiptext="&btnPageJS.tooltip;"
  116. accesskey="&btnPageJS.accesskey;"
  117. tabindex="6">
  118. <menupopup id="js-contextmenu">
  119. <menuitem label="&btnConsoleErrors;" type="checkbox"
  120. autocheck="false" prefKey="exception"/>
  121. <menuitem label="&btnConsoleWarnings;" type="checkbox"
  122. autocheck="false" prefKey="jswarn"/>
  123. <menuitem label="&btnConsoleLog;" type="checkbox"
  124. autocheck="false" prefKey="jslog"/>
  125. </menupopup>
  126. </toolbarbutton>
  127. <toolbarbutton label="&btnPageSecurity.label;" type="menu-button"
  128. category="security" class="devtools-toolbarbutton webconsole-filter-button"
  129. tooltiptext="&btnPageSecurity.tooltip;"
  130. accesskey="&btnPageSecurity.accesskey;"
  131. tabindex="7">
  132. <menupopup id="security-contextmenu">
  133. <menuitem label="&btnConsoleErrors;" type="checkbox"
  134. autocheck="false" prefKey="secerror"/>
  135. <menuitem label="&btnConsoleWarnings;" type="checkbox"
  136. autocheck="false" prefKey="secwarn"/>
  137. </menupopup>
  138. </toolbarbutton>
  139. <toolbarbutton label="&btnPageLogging.label;" type="menu-button"
  140. category="logging" class="devtools-toolbarbutton webconsole-filter-button"
  141. tooltiptext="&btnPageLogging.tooltip;"
  142. accesskey="&btnPageLogging.accesskey3;"
  143. tabindex="8">
  144. <menupopup id="logging-contextmenu">
  145. <menuitem label="&btnConsoleErrors;" type="checkbox"
  146. autocheck="false" prefKey="error"/>
  147. <menuitem label="&btnConsoleWarnings;" type="checkbox"
  148. autocheck="false" prefKey="warn"/>
  149. <menuitem label="&btnConsoleInfo;" type="checkbox" autocheck="false"
  150. prefKey="info"/>
  151. <menuitem label="&btnConsoleLog;" type="checkbox" autocheck="false"
  152. prefKey="log"/>
  153. <menuseparator />
  154. <menuitem label="&btnConsoleSharedWorkers;" type="checkbox"
  155. autocheck="false" prefKey="sharedworkers"/>
  156. <menuitem label="&btnConsoleServiceWorkers;" type="checkbox"
  157. autocheck="false" prefKey="serviceworkers"/>
  158. <menuitem label="&btnConsoleWindowlessWorkers;" type="checkbox"
  159. autocheck="false" prefKey="windowlessworkers"/>
  160. </menupopup>
  161. </toolbarbutton>
  162. <toolbarbutton label="&btnServerLogging.label;" type="menu-button"
  163. category="server" class="devtools-toolbarbutton webconsole-filter-button"
  164. tooltiptext="&btnServerLogging.tooltip;"
  165. accesskey="&btnServerLogging.accesskey;"
  166. tabindex="9">
  167. <menupopup id="server-logging-contextmenu">
  168. <menuitem label="&btnServerErrors;" type="checkbox"
  169. autocheck="false" prefKey="servererror"/>
  170. <menuitem label="&btnServerWarnings;" type="checkbox"
  171. autocheck="false" prefKey="serverwarn"/>
  172. <menuitem label="&btnServerInfo;" type="checkbox" autocheck="false"
  173. prefKey="serverinfo"/>
  174. <menuitem label="&btnServerLog;" type="checkbox" autocheck="false"
  175. prefKey="serverlog"/>
  176. </menupopup>
  177. </toolbarbutton>
  178. </hbox>
  179. <spacer flex="1"/>
  180. <textbox class="compact hud-filter-box devtools-filterinput" type="search"
  181. placeholder="&filterOutput.placeholder;" tabindex="2"/>
  182. </toolbar>
  183. <hbox id="output-wrapper" flex="1" context="output-contextmenu" tooltip="aHTMLTooltip">
  184. <!-- Wrapper element to make scrolling in output-container much faster.
  185. See Bug 1237368 -->
  186. <div xmlns="http://www.w3.org/1999/xhtml">
  187. <div xmlns="http://www.w3.org/1999/xhtml" id="output-container"
  188. tabindex="0" role="document" aria-live="polite" />
  189. </div>
  190. </hbox>
  191. <notificationbox id="webconsole-notificationbox">
  192. <hbox class="jsterm-input-container" style="direction:ltr">
  193. <stack class="jsterm-stack-node" flex="1">
  194. <textbox class="jsterm-complete-node devtools-monospace"
  195. multiline="true" rows="1" tabindex="-1"/>
  196. <textbox class="jsterm-input-node devtools-monospace"
  197. multiline="true" rows="1" tabindex="0"
  198. aria-autocomplete="list"/>
  199. </stack>
  200. </hbox>
  201. </notificationbox>
  202. </vbox>
  203. <splitter class="devtools-side-splitter"/>
  204. <tabbox id="webconsole-sidebar" class="devtools-sidebar-tabs" hidden="true" width="300">
  205. <tabs/>
  206. <tabpanels flex="1"/>
  207. </tabbox>
  208. </box>
  209. </window>