browser/metro/base/content/browser.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/metro/base/content/browser.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,1396 @@
     1.4 +<?xml version="1.0" encoding="Windows-1252" ?>
     1.5 +
     1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://browser/skin/platform.css" type="text/css"?>
    1.11 +<?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
    1.12 +<?xml-stylesheet href="chrome://browser/content/bindings.css" type="text/css"?>
    1.13 +<?xml-stylesheet href="chrome://browser/skin/cssthrobber.css" type="text/css"?>
    1.14 +<?xml-stylesheet href="chrome://browser/skin/tiles.css" type="text/css"?>
    1.15 +<?xml-stylesheet href="chrome://branding/content/metro-about.css" type="text/css"?>
    1.16 +
    1.17 +<!DOCTYPE window [
    1.18 +<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
    1.19 +%globalDTD;
    1.20 +<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
    1.21 +%browserDTD;
    1.22 +<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    1.23 +%brandDTD;
    1.24 +<!ENTITY % prefsDTD SYSTEM "chrome://browser/locale/preferences.dtd">
    1.25 +%prefsDTD;
    1.26 +<!ENTITY % aboutPanelDTD SYSTEM "chrome://browser/locale/aboutPanel.dtd">
    1.27 +%aboutPanelDTD;
    1.28 +<!ENTITY % searchPanelDTD SYSTEM "chrome://browser/locale/searchPanel.dtd">
    1.29 +%searchPanelDTD;
    1.30 +#ifdef MOZ_SERVICES_SYNC
    1.31 +<!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
    1.32 +%syncBrandDTD;
    1.33 +<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/sync.dtd">
    1.34 +%syncDTD;
    1.35 +#endif
    1.36 +<!ENTITY % baseMenuOverlayDTD SYSTEM "chrome://browser/locale/baseMenuOverlay.dtd">
    1.37 +%baseMenuOverlayDTD;
    1.38 +]>
    1.39 +
    1.40 +<window id="main-window"
    1.41 +        onload="Browser.startup();"
    1.42 +        onunload="Browser.shutdown();"
    1.43 +        windowtype="navigator:browser"
    1.44 +        chromedir="&locale.dir;"
    1.45 +        title="&brandShortName;"
    1.46 +        width="1366"
    1.47 +        height="768"
    1.48 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.49 +        xmlns:svg="http://www.w3.org/2000/svg"
    1.50 +        xmlns:html="http://www.w3.org/1999/xhtml">
    1.51 +
    1.52 +  <script type="application/javascript"
    1.53 +          src="chrome://browser/content/browser.js"/>
    1.54 +  <script type="application/javascript"
    1.55 +          src="chrome://browser/content/browser-scripts.js"/>
    1.56 +  <script type="application/javascript"
    1.57 +          src="chrome://browser/content/browser-ui.js"/>
    1.58 +  <script type="application/javascript"
    1.59 +          src="chrome://browser/content/Util.js"/>
    1.60 +  <script type="application/javascript"
    1.61 +          src="chrome://browser/content/input.js"/>
    1.62 +  <script type="application/javascript"
    1.63 +          src="chrome://browser/content/appbar.js"/>
    1.64 +  <broadcasterset id="broadcasterset">
    1.65 +    <broadcaster id="bcast_contentShowing"
    1.66 +                 disabled="false"/>
    1.67 +    <broadcaster id="bcast_urlbarState"
    1.68 +                 mode="editing"/>
    1.69 +    <broadcaster id="bcast_preciseInput"
    1.70 +                 input="precise"/>
    1.71 +    <broadcaster id="bcast_windowState"
    1.72 +                 viewstate=""/>
    1.73 +    <broadcaster id="bcast_loadingState"
    1.74 +                 loading="false"/>
    1.75 +    <broadcaster id="bcast_chromeState"
    1.76 +                 navbar="visible"/>
    1.77 +  </broadcasterset>
    1.78 +
    1.79 +  <observerset id="observerset">
    1.80 +    <observes id="observe_contentShowing"
    1.81 +              element="bcast_contentShowing"
    1.82 +              attribute="disabled"
    1.83 +              onbroadcast="BrowserUI.updateUIFocus();"/>
    1.84 +  </observerset>
    1.85 +
    1.86 +  <commandset id="mainCommandSet">
    1.87 +    <!-- basic navigation -->
    1.88 +    <command id="cmd_back"
    1.89 +             disabled="true"
    1.90 +             oncommand="CommandUpdater.doCommand(this.id);"/>
    1.91 +    <command id="cmd_forward"
    1.92 +             disabled="true"
    1.93 +             oncommand="CommandUpdater.doCommand(this.id);"/>
    1.94 +    <command id="cmd_handleBackspace"
    1.95 +             oncommand="BrowserUI.handleBackspace();" />
    1.96 +    <command id="cmd_handleShiftBackspace"
    1.97 +             oncommand="BrowserUI.handleShiftBackspace();" />
    1.98 +    <command id="cmd_reload"
    1.99 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.100 +    <command id="cmd_forceReload"
   1.101 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.102 +    <command id="cmd_stop"
   1.103 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.104 +    <command id="cmd_go"
   1.105 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.106 +    <command id="cmd_openLocation"
   1.107 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.108 +    <command id="cmd_home"
   1.109 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.110 +    <command id="cmd_openFile"
   1.111 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.112 +    <command id="cmd_savePage"
   1.113 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.114 +
   1.115 +    <!-- tabs -->
   1.116 +    <command id="cmd_newTab"
   1.117 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.118 +    <command id="cmd_newTabKey"
   1.119 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.120 +    <command id="cmd_closeTab"
   1.121 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.122 +    <command id="cmd_undoCloseTab"
   1.123 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.124 +#ifdef MOZ_SERVICES_SYNC
   1.125 +    <command id="cmd_remoteTabs"
   1.126 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.127 +#endif
   1.128 +    <command id="cmd_newPrivateTab"
   1.129 +             oncommand="BrowserUI.addAndShowPrivateTab();"/>
   1.130 +
   1.131 +    <!-- misc -->
   1.132 +    <command id="cmd_close"
   1.133 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.134 +    <command id="cmd_quit"
   1.135 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.136 +    <command id="cmd_actions"
   1.137 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.138 +    <command id="cmd_panel"
   1.139 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.140 +    <command id="cmd_flyout_back"
   1.141 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.142 +    <command id="cmd_addBookmark"
   1.143 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.144 +    <command id="cmd_bookmarks"
   1.145 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.146 +    <command id="cmd_history"
   1.147 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.148 +    <command id="cmd_sanitize"
   1.149 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.150 +    <command id="cmd_contextUI"
   1.151 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.152 +    <command id="cmd_reportingCrashesSubmitURLs"
   1.153 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.154 +
   1.155 +    <!-- scrolling -->
   1.156 +    <command id="cmd_scrollPageUp"
   1.157 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.158 +    <command id="cmd_scrollPageDown"
   1.159 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.160 +
   1.161 +    <!-- editing -->
   1.162 +    <command id="cmd_cut"
   1.163 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.164 +    <command id="cmd_copy"
   1.165 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.166 +    <command id="cmd_copylink"
   1.167 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.168 +    <command id="cmd_paste"
   1.169 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.170 +    <command id="cmd_delete"
   1.171 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.172 +    <command id="cmd_selectAll"
   1.173 +             oncommand="CommandUpdater.doCommand(this.id);"/>
   1.174 +
   1.175 +    <!-- find -->
   1.176 +    <command id="cmd_findPrevious"
   1.177 +             oncommand="FindHelperUI.goToPrevious();"/>
   1.178 +    <command id="cmd_findNext"
   1.179 +             oncommand="FindHelperUI.goToNext();"/>
   1.180 +    <command id="cmd_findClose"
   1.181 +             oncommand="FindHelperUI.hide();"/>
   1.182 +    <command id="cmd_find"
   1.183 +             oncommand="FindHelperUI.show();"/>
   1.184 +  </commandset>
   1.185 +
   1.186 +  <keyset id="mainKeyset">
   1.187 +    <!-- basic navigation -->
   1.188 +    <key id="key_back"
   1.189 +         keycode="VK_LEFT"
   1.190 +         command="cmd_back"
   1.191 +         modifiers="alt"/>
   1.192 +    <key id="key_forward"
   1.193 +         keycode="VK_RIGHT"
   1.194 +         command="cmd_forward"
   1.195 +         modifiers="alt"/>
   1.196 +    <key id="key_backspace"
   1.197 +         keycode="VK_BACK"
   1.198 +         command="cmd_handleBackspace"/>
   1.199 +    <key id="key_shift_backspace"
   1.200 +         keycode="VK_BACK"
   1.201 +         command="cmd_handleShiftBackspace"
   1.202 +         modifiers="shift"/>
   1.203 +    <key id="key_reload"
   1.204 +         keycode="VK_F5"
   1.205 +         command="cmd_reload"/>
   1.206 +    <key id="key_reload2"
   1.207 +         key="&reload.key;"
   1.208 +         modifiers="accel"
   1.209 +         command="cmd_reload"/>
   1.210 +    <key id="key_forceReload"
   1.211 +         keycode="VK_F5"
   1.212 +         modifiers="shift"
   1.213 +         command="cmd_forceReload"/>
   1.214 +    <key id="key_forceReload2"
   1.215 +         key="&reload.key;"
   1.216 +         modifiers="accel,shift"
   1.217 +         command="cmd_forceReload"/>
   1.218 +    <key id="key_focusURL"
   1.219 +         key="&focusURL.key;"
   1.220 +         modifiers="accel"
   1.221 +         command="cmd_openLocation"/>
   1.222 +    <key id="key_focusURL2"
   1.223 +         key="&urlbar.accesskey;"
   1.224 +         modifiers="alt"
   1.225 +         command="cmd_openLocation"/>
   1.226 +    <key id="key_home"
   1.227 +         keycode="VK_HOME"
   1.228 +         modifiers="accel"
   1.229 +         command="cmd_home"/>
   1.230 +    <key id="key_open"
   1.231 +         key="&openFile.key;"
   1.232 +         modifiers="accel"
   1.233 +         command="cmd_openFile"/>
   1.234 +    <key id="key_save"
   1.235 +         key="&savePage.key;"
   1.236 +         modifiers="accel"
   1.237 +         command="cmd_savePage"/>
   1.238 +
   1.239 +    <!-- misc -->
   1.240 +    <key id="key_find"
   1.241 +         key="&find.key;"
   1.242 +         modifiers="accel"
   1.243 +         command="cmd_find"/>
   1.244 +    <key id="key_find"
   1.245 +         key="/"
   1.246 +         command="cmd_find"/>
   1.247 +    <key id="key_findNext"
   1.248 +         keycode="VK_F3"
   1.249 +         command="cmd_findNext"/>
   1.250 +    <key id="key_findNext2"
   1.251 +         key="&findNext.key;"
   1.252 +         modifiers="accel"
   1.253 +         command="cmd_findNext"/>
   1.254 +    <key id="key_findPrevious"
   1.255 +         keycode="VK_F3"
   1.256 +         modifiers="shift"
   1.257 +         command="cmd_findPrevious"/>
   1.258 +    <key id="key_findPrevious2"
   1.259 +         key="&findNext.key;"
   1.260 +         modifiers="accel,shift"
   1.261 +         command="cmd_findPrevious"/>
   1.262 +    <key id="key_quit"
   1.263 +         key="&quit.key;"
   1.264 +         modifiers="accel"
   1.265 +         command="cmd_quit"/>
   1.266 +    <key id="key_addBoomkark"
   1.267 +         key="&addBookmark.key;"
   1.268 +         modifiers="accel"
   1.269 +         command="cmd_addBookmark"/>
   1.270 +
   1.271 +    <!-- development/testing -->
   1.272 +    <key id="key_console"
   1.273 +         key="&jsConsole.key;"
   1.274 +         modifiers="accel,shift"
   1.275 +         oncommand="PanelUI.show('console-container')"/>
   1.276 +    <key id="key_options"
   1.277 +         key="&optionsFlyout.key;"
   1.278 +         modifiers="accel,shift"
   1.279 +         oncommand="FlyoutPanelsUI.show('PrefsFlyoutPanel')" />
   1.280 +    <key id="key_options"
   1.281 +         key="&aboutFlyout.key;"
   1.282 +         modifiers="accel,shift"
   1.283 +         oncommand="FlyoutPanelsUI.show('AboutFlyoutPanel')" />
   1.284 +<!--
   1.285 +Temporarily disabled until we can have sync prefs together with the
   1.286 +Desktop browser's sync prefs.
   1.287 +#ifdef MOZ_SERVICES_SYNC
   1.288 +    <key id="key_options"
   1.289 +         key="&syncFlyout.key;"
   1.290 +         modifiers="accel,shift"
   1.291 +         oncommand="FlyoutPanelsUI.show('SyncFlyoutPanel')" />
   1.292 +#endif
   1.293 +-->
   1.294 +
   1.295 +    <!-- manage tabs -->
   1.296 +    <key id="key_newTab"
   1.297 +         key="&newTab.key;"
   1.298 +         modifiers="accel"
   1.299 +         command="cmd_newTabKey"/>
   1.300 +    <key id="key_newTab2"
   1.301 +         key="&newTab2.key;"
   1.302 +         modifiers="accel"
   1.303 +         command="cmd_newTabKey"/>
   1.304 +    <key id="key_closeTab"
   1.305 +         key="&closeTab.key;"
   1.306 +         modifiers="accel"
   1.307 +         command="cmd_closeTab"/>
   1.308 +    <key id="key_closeTab2"
   1.309 +         keycode="VK_F4"
   1.310 +         modifiers="accel"
   1.311 +         command="cmd_closeTab"/>
   1.312 +    <key id="key_undoCloseTab"
   1.313 +         key="&newTab.key;"
   1.314 +         modifiers="accel,shift"
   1.315 +         command="cmd_undoCloseTab"/>
   1.316 +    <key id="key_newPrivateTab"
   1.317 +         key="&newPrivateTab.key;"
   1.318 +         modifiers="accel,shift"
   1.319 +         command="cmd_newPrivateTab"/>
   1.320 +
   1.321 +    <!-- tab selection -->
   1.322 +    <key id="key_nextTab"
   1.323 +         oncommand="BrowserUI.selectNextTab();"
   1.324 +         keycode="VK_TAB"
   1.325 +         modifiers="accel"/>
   1.326 +    <key id="key_nextTab2"
   1.327 +         oncommand="BrowserUI.selectNextTab();"
   1.328 +         keycode="VK_PAGE_DOWN"
   1.329 +         modifiers="accel"/>
   1.330 +    <key id="key_prevTab"
   1.331 +         oncommand="BrowserUI.selectPreviousTab();"
   1.332 +         keycode="VK_TAB"
   1.333 +         modifiers="accel,shift"/>
   1.334 +    <key id="key_prevTab2"
   1.335 +         oncommand="BrowserUI.selectPreviousTab();"
   1.336 +         keycode="VK_PAGE_UP"
   1.337 +         modifiers="accel"/>
   1.338 +    <key id="key_selectTab1"
   1.339 +         oncommand="BrowserUI.selectTabAtIndex(0);"
   1.340 +         key="1"
   1.341 +         modifiers="accel"/>
   1.342 +    <key id="key_selectTab2"
   1.343 +         oncommand="BrowserUI.selectTabAtIndex(1);"
   1.344 +         key="2"
   1.345 +         modifiers="accel"/>
   1.346 +    <key id="key_selectTab3"
   1.347 +         oncommand="BrowserUI.selectTabAtIndex(2);"
   1.348 +         key="3"
   1.349 +         modifiers="accel"/>
   1.350 +    <key id="key_selectTab4"
   1.351 +         oncommand="BrowserUI.selectTabAtIndex(3);"
   1.352 +         key="4"
   1.353 +         modifiers="accel"/>
   1.354 +    <key id="key_selectTab5"
   1.355 +         oncommand="BrowserUI.selectTabAtIndex(4);"
   1.356 +         key="5"
   1.357 +         modifiers="accel"/>
   1.358 +    <key id="key_selectTab6"
   1.359 +         oncommand="BrowserUI.selectTabAtIndex(5);"
   1.360 +         key="6"
   1.361 +         modifiers="accel"/>
   1.362 +    <key id="key_selectTab7"
   1.363 +         oncommand="BrowserUI.selectTabAtIndex(6);"
   1.364 +         key="7"
   1.365 +         modifiers="accel"/>
   1.366 +    <key id="key_selectTab8"
   1.367 +         oncommand="BrowserUI.selectTabAtIndex(7);"
   1.368 +         key="8"
   1.369 +         modifiers="accel"/>
   1.370 +    <key id="key_selectLastTab"
   1.371 +         oncommand="BrowserUI.selectTabAtIndex(-1);"
   1.372 +         key="9"
   1.373 +         modifiers="accel"/>
   1.374 +  </keyset>
   1.375 +
   1.376 +  <stack id="stack"
   1.377 +         flex="1">
   1.378 +    <observes element="bcast_urlbarState"
   1.379 +              attribute="*"/>
   1.380 +    <observes element="bcast_windowState"
   1.381 +              attribute="*"/>
   1.382 +    <!-- Page Area -->
   1.383 +    <vbox id="page">
   1.384 +      <vbox id="tray"
   1.385 +            class="tray-toolbar"
   1.386 +            observes="bcast_windowState" >
   1.387 +        <!-- Tabs -->
   1.388 +        <hbox id="tabs-container"
   1.389 +              observes="bcast_windowState">
   1.390 +          <box id="tabs"
   1.391 +               flex="1"
   1.392 +               observes="bcast_preciseInput"
   1.393 +               onselect="BrowserUI.selectTabAndDismiss(this);"
   1.394 +               onclosetab="BrowserUI.closeTab(this);"/>
   1.395 +          <vbox id="tabs-controls">
   1.396 +            <toolbarbutton id="newtab-button"
   1.397 +                           command="cmd_newTab"
   1.398 +                           label="&newtab.label;"/>
   1.399 +          </vbox>
   1.400 +        </hbox>
   1.401 +      </vbox> <!-- end tray -->
   1.402 +
   1.403 +      <!-- Content viewport -->
   1.404 +      <stack id="content-viewport">
   1.405 +        <observes element="bcast_windowState"
   1.406 +                  attribute="startpage"/>
   1.407 +        <observes element="bcast_chromeState"
   1.408 +                  attribute="navbar"/>
   1.409 +        <deck id="browsers"
   1.410 +              flex="1"
   1.411 +              observes="bcast_preciseInput"/>
   1.412 +        <box id="vertical-scroller"
   1.413 +             class="scroller"
   1.414 +             orient="vertical"
   1.415 +             end="0"
   1.416 +             top="0"/>
   1.417 +        <box id="horizontal-scroller"
   1.418 +             class="scroller"
   1.419 +             orient="horizontal"
   1.420 +             left="0"
   1.421 +             bottom="0"/>
   1.422 +
   1.423 +        <!-- Content touch selection overlay -->
   1.424 +        <box class="selection-overlay-hidden"
   1.425 +             id="content-selection-overlay"/>
   1.426 +
   1.427 +        <!-- Overlay to dim screen when autocomplete shows up -->
   1.428 +        <hbox id="autocomplete-overlay"
   1.429 +              onclick="ContextUI.dismiss()"/>
   1.430 +      </stack>
   1.431 +    </vbox>
   1.432 +
   1.433 +    <html:div id="overlay-back"
   1.434 +              class="overlay-button"
   1.435 +              observes="cmd_back">
   1.436 +    </html:div>
   1.437 +    <html:div id="overlay-plus"
   1.438 +              class="overlay-button"
   1.439 +              observes="cmd_back">
   1.440 +    </html:div>
   1.441 +
   1.442 +    <!-- Navigation bar -->
   1.443 +    <appbar id="navbar"
   1.444 +            mousethrough="never"
   1.445 +            visible="true">
   1.446 +      <hbox id="progress-container"
   1.447 +            layer="true"
   1.448 +            observes="bcast_windowState">
   1.449 +        <hbox id="progress-control" />
   1.450 +      </hbox>
   1.451 +
   1.452 +      <vbox id="toolbar-overlay"
   1.453 +            flex="1">
   1.454 +        <!-- Autocomplete -->
   1.455 +        <scrollbox id="urlbar-autocomplete-scroll"
   1.456 +                   flex="1"
   1.457 +                   observes="bcast_urlbarState">
   1.458 +          <hbox id="urlbar-autocomplete"
   1.459 +                observes="bcast_windowState"/>
   1.460 +        </scrollbox>
   1.461 +
   1.462 +        <!-- Main toolbar -->
   1.463 +        <toolbar id="toolbar"
   1.464 +                 flex="1"
   1.465 +                 observes="bcast_windowState">
   1.466 +          <toolbarbutton id="back-button"
   1.467 +                         class="appbar-primary"
   1.468 +                         command="cmd_back"/>
   1.469 +          <toolbarbutton id="forward-button"
   1.470 +                         class="appbar-primary"
   1.471 +                         command="cmd_forward"/>
   1.472 +
   1.473 +            <hbox id="urlbar"
   1.474 +                  flex="1">
   1.475 +            <observes element="bcast_urlbarState"
   1.476 +                      attribute="*"/>
   1.477 +            <observes element="bcast_loadingState"
   1.478 +                      attribute="*"/>
   1.479 +            <box id="identity-box"
   1.480 +                 align="center"
   1.481 +                 role="button">
   1.482 +              <image id="identity-icon"/>
   1.483 +            </box>
   1.484 +
   1.485 +            <textbox id="urlbar-edit"
   1.486 +                     type="url"
   1.487 +                     flex="1"
   1.488 +                     autocompletesearch="history"
   1.489 +                     autocompletepopup="urlbar-autocomplete"
   1.490 +                     completeselectedindex="true"
   1.491 +                     placeholder="&urlbar.emptytext;"
   1.492 +                     tabscrolling="true" />
   1.493 +
   1.494 +            <toolbarbutton id="go-button"
   1.495 +                           class="urlbar-button"
   1.496 +                           command="cmd_go"/>
   1.497 +            <toolbarbutton id="reload-button"
   1.498 +                           class="urlbar-button"
   1.499 +                           oncommand="CommandUpdater.doCommand(
   1.500 +                                        event.shiftKey ? 'cmd_forceReload'
   1.501 +                                                       : 'cmd_reload');"/>
   1.502 +            <toolbarbutton id="stop-button"
   1.503 +                           class="urlbar-button"
   1.504 +                           command="cmd_stop"/>
   1.505 +          </hbox>
   1.506 +
   1.507 +          <stack id="toolbar-contextual">
   1.508 +            <observes element="bcast_windowState"
   1.509 +                      attribute="*"/>
   1.510 +            <observes element="bcast_urlbarState"
   1.511 +                      attribute="*"/>
   1.512 +            <hbox id="toolbar-context-page" pack="end">
   1.513 +              <circularprogressindicator id="download-progress"
   1.514 +                                         class="appbar-primary"
   1.515 +                                         oncommand="MetroDownloadsView.onDownloadButton()"/>
   1.516 +              <toolbarbutton id="star-button"
   1.517 +                             class="appbar-primary hide-on-start"
   1.518 +                             type="checkbox"
   1.519 +                             oncommand="Appbar.onStarButton()"/>
   1.520 +              <toolbarbutton id="pin-button"
   1.521 +                             class="appbar-primary hide-on-start"
   1.522 +                             type="checkbox"
   1.523 +                             oncommand="Appbar.onPinButton()"/>
   1.524 +              <toolbarbutton id="menu-button"
   1.525 +                             class="appbar-primary"
   1.526 +                             oncommand="Appbar.onMenuButton(event)"/>
   1.527 +            </hbox>
   1.528 +
   1.529 +            <hbox id="toolbar-context-autocomplete"
   1.530 +                  pack="end">
   1.531 +              <toolbarbutton id="close-button"
   1.532 +                             class="appbar-primary"
   1.533 +                             oncommand="Appbar.onAutocompleteCloseButton()"/>
   1.534 +            </hbox>
   1.535 +          </stack>
   1.536 +        </toolbar>
   1.537 +      </vbox>
   1.538 +    </appbar>
   1.539 +
   1.540 +    <vbox id="panel-container"
   1.541 +          class="window-width window-height meta"
   1.542 +          hidden="true"
   1.543 +          observes="bcast_windowState">
   1.544 +      <hbox id="panel-header">
   1.545 +        <toolbarbutton id="panel-close-button"
   1.546 +                       class="appbar-primary"
   1.547 +                       command="cmd_panel"/>
   1.548 +      </hbox>
   1.549 +
   1.550 +      <deck id="panel-items"
   1.551 +            selectedIndex="0"
   1.552 +            flex="1" >
   1.553 +        <scrollbox id="bookmarks-container"
   1.554 +                   flex="1">
   1.555 +          <richgrid id="bookmarks-list"
   1.556 +                    class="canSnapTiles"
   1.557 +                    set-name="bookmarks"
   1.558 +                    seltype="multiple"
   1.559 +                    flex="1"/>
   1.560 +        </scrollbox>
   1.561 +        <scrollbox id="history-container"
   1.562 +                   flex="1">
   1.563 +          <richgrid id="history-list"
   1.564 +                    class="canSnapTiles"
   1.565 +                    set-name="recentHistory"
   1.566 +                    seltype="multiple"
   1.567 +                    flex="1"/>
   1.568 +        </scrollbox>
   1.569 +        <scrollbox id="remotetabs-container"
   1.570 +                   flex="1">
   1.571 +          <richgrid id="remotetabs-list"
   1.572 +                    class="canSnapTiles"
   1.573 +                    set-name="remoteTabs"
   1.574 +                    seltype="single"
   1.575 +                    flex="1"/>
   1.576 +        </scrollbox>
   1.577 +        <vbox id="console-container"
   1.578 +              flex="1">
   1.579 +          <vbox id="console-header"
   1.580 +                class="panel-list">
   1.581 +            <label class="panel-header"
   1.582 +                   value="&consoleHeader.label;"/>
   1.583 +            <hbox align="center">
   1.584 +              <label value="&consoleCodeEval.label;"
   1.585 +                     control="console-eval-textbox"/>
   1.586 +              <textbox id="console-eval-textbox"
   1.587 +                       class="toolbar search-bar"
   1.588 +                       value=""
   1.589 +                       flex="1"
   1.590 +                       onkeypress="ConsolePanelView.onEvalKeyPress(event)"/>
   1.591 +              <button id="console-button-eval"
   1.592 +                      class="show-text"
   1.593 +                      label="&consoleEvaluate.label;"
   1.594 +                      oncommand="ConsolePanelView.evaluateTypein()"/>
   1.595 +            </hbox>
   1.596 +            <hbox align="center"
   1.597 +                  pack="end">
   1.598 +              <checkbox id="console-follow-checkbox" label="&consoleFollowCheckbox.label;" checked="true"/>
   1.599 +              <spacer flex="1"/>
   1.600 +              <radiogroup id="console-filter" orient="horizontal"
   1.601 +                          oncommand="ConsolePanelView.changeMode();">
   1.602 +                <radio id="console-filter-all"
   1.603 +                       value="all"
   1.604 +                       selected="true"
   1.605 +                       label="&consoleAll.label;"/>
   1.606 +                <radio id="console-filter-messages"
   1.607 +                       value="message"
   1.608 +                       label="&consoleMessages.label;" />
   1.609 +                <radio id="console-filter-warnings"
   1.610 +                       value="warning"
   1.611 +                       label="&consoleWarnings.label;"/>
   1.612 +                <radio id="console-filter-errors"
   1.613 +                       value="error"
   1.614 +                       label="&consoleErrors.label;"/>
   1.615 +              </radiogroup>
   1.616 +              <button id="console-clear"
   1.617 +                      class="show-text"
   1.618 +                      label="&consoleClear.label;"
   1.619 +                      oncommand="ConsolePanelView.clearConsole();"/>
   1.620 +              <button id="console-copy"
   1.621 +                      class="show-text"
   1.622 +                      label="&consoleCopyAll.label;"
   1.623 +                      oncommand="ConsolePanelView.copyAll();"/>
   1.624 +            </hbox>
   1.625 +          </vbox>
   1.626 +
   1.627 +          <richlistbox id="console-box"
   1.628 +                       class="panel-list console-box"
   1.629 +                       flex="1"
   1.630 +                       onkeypress="ConsolePanelView.onConsoleBoxKeyPress(event)"
   1.631 +                       oncontextmenu="ConsolePanelView.onContextMenu(event);"/>
   1.632 +        </vbox>
   1.633 +      </deck>
   1.634 +    </vbox>
   1.635 +
   1.636 +    <!-- Find bar -->
   1.637 +    <appbar id="findbar"
   1.638 +            class="window-width"
   1.639 +            pack="start">
   1.640 +      <textbox id="findbar-textbox"
   1.641 +               type="search"
   1.642 +               oncommand="FindHelperUI.search(this.value)"
   1.643 +               oninput="FindHelperUI.updateCommands(this.value); "/>
   1.644 +
   1.645 +      <toolbarbutton id="findbar-previous-button"
   1.646 +                     class="appbar-secondary"
   1.647 +                     command="cmd_findPrevious"/>
   1.648 +      <toolbarbutton id="findbar-next-button"
   1.649 +                     class="appbar-secondary"
   1.650 +                     command="cmd_findNext"/>
   1.651 +
   1.652 +      <spacer flex="1"/>
   1.653 +
   1.654 +      <toolbarbutton id="findbar-close-button"
   1.655 +                     class="appbar-secondary"
   1.656 +                     command="cmd_findClose"/>
   1.657 +    </appbar>
   1.658 +
   1.659 +    <!-- Context button bar -->
   1.660 +    <appbar id="contextappbar">
   1.661 +      <toolbar id="contextualactions-tray"
   1.662 +               labelled="true"
   1.663 +               flex="1">
   1.664 +        <toolbarbutton id="pin-selected-button"
   1.665 +                       class="appbar-primary"
   1.666 +                       label-uses-set-name="true"
   1.667 +                       hidden="true"
   1.668 +                       fade="true"
   1.669 +                       oncommand="Appbar.dispatchContextualAction('pin')"/>
   1.670 +        <toolbarbutton id="unpin-selected-button"
   1.671 +                       class="appbar-primary"
   1.672 +                       label-uses-set-name="true"
   1.673 +                       hidden="true"
   1.674 +                       fade="true"
   1.675 +                       oncommand="Appbar.dispatchContextualAction('unpin')"/>
   1.676 +        <toolbarbutton id="hide-selected-button"
   1.677 +                       class="appbar-primary"
   1.678 +                       label-uses-set-name="true"
   1.679 +                       hidden="true"
   1.680 +                       fade="true"
   1.681 +                       oncommand="Appbar.dispatchContextualAction('unpin')"/>
   1.682 +        <toolbarbutton id="delete-selected-button"
   1.683 +                       class="appbar-primary"
   1.684 +                       hidden="true"
   1.685 +                       fade="true"
   1.686 +                       oncommand="Appbar.dispatchContextualAction('delete')"/>
   1.687 +        <toolbarbutton id="restore-selected-button"
   1.688 +                       class="appbar-primary"
   1.689 +                       hidden="true"
   1.690 +                       fade="true"
   1.691 +                       oncommand="Appbar.dispatchContextualAction('restore')"/>
   1.692 +        <toolbarbutton id="clear-selected-button"
   1.693 +                       class="appbar-primary"
   1.694 +                       hidden="true"
   1.695 +                       fade="true"
   1.696 +                       oncommand="Appbar.dispatchContextualAction('clear')"/>
   1.697 +      </toolbar>
   1.698 +    </appbar>
   1.699 +    <autoscroller class="autoscroller"
   1.700 +                  id="autoscrollerid"/>
   1.701 +    <flyoutpanel id="about-flyoutpanel"
   1.702 +                 class="flyout-narrow"
   1.703 +                 headertext="&aboutHeader.title;">
   1.704 +      <label align="start">
   1.705 +        <html:img src="chrome://branding/content/metro-about-wordmark.png"
   1.706 +                  alt="&aboutHeader.product.label;"/>
   1.707 +      </label>
   1.708 +      <label value="&aboutHeader.company.label;"
   1.709 +             linewrap="true"/>
   1.710 +#expand <label id="about-version-label">__MOZ_APP_VERSION__</label>
   1.711 +      <vbox id="updateBox">
   1.712 +#ifdef MOZ_UPDATER
   1.713 +      <deck id="updateDeck"
   1.714 +            orient="vertical">
   1.715 +          <hbox id="updateButtonBox"
   1.716 +                align="center">
   1.717 +            <button id="updateButton"
   1.718 +                    align="start"
   1.719 +                    oncommand="FlyoutPanelsUI.AboutFlyoutPanel.appUpdater.buttonOnCommand();"/>
   1.720 +            <spacer flex="1"/>
   1.721 +          </hbox>
   1.722 +          <hbox id="checkingForUpdates"
   1.723 +                align="center">
   1.724 +            <image class="update-throbber"/>
   1.725 +            <description flex="1">
   1.726 +              &update.checkingForUpdates;
   1.727 +            </description>
   1.728 +          </hbox>
   1.729 +          <hbox id="checkingAddonCompat"
   1.730 +                align="center">
   1.731 +            <image class="update-throbber"/>
   1.732 +            <description flex="1">
   1.733 +              &update.checkingAddonCompat;
   1.734 +            </description>
   1.735 +          </hbox>
   1.736 +          <hbox id="downloading"
   1.737 +                align="center">
   1.738 +            <image class="update-throbber"/>
   1.739 +            <description flex="1">
   1.740 +              &update.downloading.start;
   1.741 +              <html:span id="downloadStatus">
   1.742 +              </html:span>
   1.743 +              &update.downloading.end;
   1.744 +            </description>
   1.745 +          </hbox>
   1.746 +          <hbox id="applying"
   1.747 +                align="center">
   1.748 +            <image class="update-throbber"/>
   1.749 +            <description flex="1">
   1.750 +              &update.applying;
   1.751 +            </description>
   1.752 +          </hbox>
   1.753 +          <hbox id="downloadFailed"
   1.754 +                align="center">
   1.755 +            <label>
   1.756 +              &update.failed.start;
   1.757 +            </label>
   1.758 +            <label id="failedLink"
   1.759 +                   class="text-link">
   1.760 +              &update.failed.linkText;
   1.761 +            </label>
   1.762 +            <label>
   1.763 +              &update.failed.end;
   1.764 +            </label>
   1.765 +          </hbox>
   1.766 +          <hbox id="adminDisabled"
   1.767 +                align="center">
   1.768 +            <label linewrap="true">
   1.769 +              &update.adminDisabled;
   1.770 +            </label>
   1.771 +          </hbox>
   1.772 +          <hbox id="noUpdatesFound"
   1.773 +                align="center">
   1.774 +            <label linewrap="true">
   1.775 +              &update.noUpdatesFound;
   1.776 +            </label>
   1.777 +          </hbox>
   1.778 +          <hbox id="otherInstanceHandlingUpdates"
   1.779 +                align="center">
   1.780 +            <label linewrap="true">
   1.781 +              &update.otherInstanceHandlingUpdates;
   1.782 +            </label>
   1.783 +          </hbox>
   1.784 +          <hbox id="manualUpdate"
   1.785 +                align="center">
   1.786 +            <label>
   1.787 +              &update.manual.start;
   1.788 +            </label>
   1.789 +            <label id="manualLink"
   1.790 +                   linewrap="true"
   1.791 +                   class="text-link"/>
   1.792 +            <label>
   1.793 +              &update.manual.end;
   1.794 +            </label>
   1.795 +          </hbox>
   1.796 +        </deck>
   1.797 +#endif
   1.798 +      </vbox>
   1.799 +#if MOZ_UPDATE_CHANNEL != release
   1.800 +#ifdef MOZ_UPDATER
   1.801 +      <description id="currentChannelText"
   1.802 +                   class="text-blurb">
   1.803 +        &channel.description.start;
   1.804 +        <label id="currentChannel" linewrap="true"/>
   1.805 +        &channel.description.end;
   1.806 +      </description>
   1.807 +#endif
   1.808 +#endif
   1.809 +      <label id="about-policy-label"
   1.810 +             linewrap="true"
   1.811 +             onclick="FlyoutPanelsUI.AboutFlyoutPanel.onPolicyClick(event);"
   1.812 +             class="text-link"
   1.813 +             value="&aboutHeader.policy.label;"/>
   1.814 +      <spacer class="flyoutpanel-hack"/>
   1.815 +    </flyoutpanel>
   1.816 +#ifdef MOZ_SERVICES_SYNC
   1.817 +<flyoutpanel id="sync-flyoutpanel"
   1.818 +             class="flyout-narrow"
   1.819 +             headertext="&sync.flyout.title;">
   1.820 +      <vbox id="sync-presetup-container"
   1.821 +               collapsed="true">
   1.822 +        <description>&sync.flyout.presetup.description1;</description>
   1.823 +        <separator />
   1.824 +        <hbox onclick="FlyoutPanelsUI.SyncFlyoutPanel.startEasySetup();"
   1.825 +              align="center"
   1.826 +              class="text-link">
   1.827 +          <image src="chrome://browser/skin/images/plus-34.png" />
   1.828 +          <separator />
   1.829 +          <label value="&sync.flyout.presetup.setup.label;"
   1.830 +                 linewrap="true"
   1.831 +                 class="text-link" />
   1.832 +          <spacer flex="1" />
   1.833 +        </hbox>
   1.834 +      </vbox>
   1.835 +      <vbox id="sync-setup-container"
   1.836 +            collapsed="true">
   1.837 +        <description>&sync.flyout.setup.description1;</description>
   1.838 +        <description>&sync.flyout.setup.description2;</description>
   1.839 +        <separator />
   1.840 +        <vbox flex="1"
   1.841 +              pack="center"
   1.842 +              align="start">
   1.843 +          <textbox id="sync-setup-code1"
   1.844 +                   class="syncJPAKECode"
   1.845 +                   placeholder="...."
   1.846 +                   disabled="true" />
   1.847 +          <textbox id="sync-setup-code2"
   1.848 +                   class="syncJPAKECode"
   1.849 +                   placeholder="...."
   1.850 +                   disabled="true" />
   1.851 +          <hbox>
   1.852 +            <textbox id="sync-setup-code3"
   1.853 +                     class="syncJPAKECode"
   1.854 +                     placeholder="...."
   1.855 +                     disabled="true" />
   1.856 +            <vbox flex="1"
   1.857 +                  pack="center"
   1.858 +                  align="center">
   1.859 +              <cssthrobber id='sync-setup-throbber'
   1.860 +                           flex='1'
   1.861 +                           class='syncThrobber'
   1.862 +                           collapsed='true'
   1.863 +                           disabled='true' />
   1.864 +            </vbox>
   1.865 +          </hbox>
   1.866 +        </vbox>
   1.867 +        <separator />
   1.868 +        <description class="text-link"
   1.869 +                     flex="1"
   1.870 +                     onclick="FlyoutPanelsUI.SyncFlyoutPanel.abortEasySetup();
   1.871 +                              FlyoutPanelsUI.SyncFlyoutPanel.showManualSetup()">
   1.872 +          &sync.flyout.setup.manual.label_2;
   1.873 +        </description>
   1.874 +        <separator />
   1.875 +        <description>
   1.876 +          &sync.flyout.setup.description3;
   1.877 +        </description>
   1.878 +        <description>
   1.879 +          &sync.flyout.setup.description4_2;
   1.880 +        </description>
   1.881 +        <description class="syncInstructionText">
   1.882 +          &sync.flyout.setup.description5_2;
   1.883 +        </description>
   1.884 +        <description class="syncInstructionText">
   1.885 +          &sync.flyout.setup.description6_2;
   1.886 +        </description>
   1.887 +      </vbox>
   1.888 +
   1.889 +      <vbox id="sync-manualsetup-container"
   1.890 +            collapsed="true">
   1.891 +        <description>
   1.892 +          &sync.flyout.manualsetup.description1_2;
   1.893 +        </description>
   1.894 +        <separator/>
   1.895 +        <textbox id="sync-manualsetup-account"
   1.896 +                 placeholder="&sync.flyout.manualsetup.account.placeholder;"
   1.897 +                 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
   1.898 +        <textbox id="sync-manualsetup-password"
   1.899 +                 placeholder="&sync.flyout.manualsetup.password.placeholder;"
   1.900 +                 type="password"
   1.901 +                 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
   1.902 +        <textbox id="sync-manualsetup-syncKey"
   1.903 +                 placeholder="&sync.flyout.manualsetup.recoveryKey.placeholder;"
   1.904 +                 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
   1.905 +        <description id="sync-manualsetup-failure"
   1.906 +                     class="syncErrorText"
   1.907 +                     collapsed="true" />
   1.908 +        <separator />
   1.909 +        <hbox>
   1.910 +          <button id="sync-manualsetup-connect"
   1.911 +                  class="syncButton"
   1.912 +                  oncommand="FlyoutPanelsUI.SyncFlyoutPanel.manualSetupConnect();"
   1.913 +                  label="&sync.flyout.manualsetup.connect.label;"
   1.914 +                  disabled="true" />
   1.915 +          <spacer flex="1" />
   1.916 +        </hbox>
   1.917 +      </vbox>
   1.918 +
   1.919 +      <vbox id="sync-setupsuccess-container"
   1.920 +            collapsed="true">
   1.921 +        <description>
   1.922 +          &sync.flyout.setupsuccess.description1;
   1.923 +        </description>
   1.924 +        <description>
   1.925 +          &sync.flyout.setupsuccess.description2;
   1.926 +        </description>
   1.927 +      </vbox>
   1.928 +
   1.929 +      <vbox id="sync-setupfailure-container"
   1.930 +            collapsed="true">
   1.931 +        <description>
   1.932 +          &sync.flyout.setupfailure.description;
   1.933 +        </description>
   1.934 +        <hbox>
   1.935 +          <button class="syncButton"
   1.936 +                  oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onCancelButton();"
   1.937 +                  label="&sync.flyout.setupfailure.cancelButton;" />
   1.938 +          <button class="syncButton"
   1.939 +                  oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onTryAgainButton();"
   1.940 +                  label="&sync.flyout.setupfailure.tryAgainButton;" />
   1.941 +        </hbox>
   1.942 +      </vbox>
   1.943 +
   1.944 +      <vbox id="sync-connected-container"
   1.945 +            collapsed="true">
   1.946 +        <description id="sync-connected-account"
   1.947 +                     class="syncHeader" />
   1.948 +        <separator />
   1.949 +        <hbox>
   1.950 +          <vbox>
   1.951 +            <description id="sync-connected-device"
   1.952 +                         class="syncHeader" />
   1.953 +            <description id="sync-connected-lastSynced"
   1.954 +                         class="syncSecondaryText" />
   1.955 +          </vbox>
   1.956 +          <cssthrobber id="sync-connected-throbber"
   1.957 +                       class="syncThrobber"
   1.958 +                       collapsed="true"
   1.959 +                       disabled="true" />
   1.960 +        </hbox>
   1.961 +        <label id="sync-disconnect-label"
   1.962 +               class="text-link"
   1.963 +               onclick="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectLink();">
   1.964 +          &sync.flyout.connected.disconnect;
   1.965 +        </label>
   1.966 +        <separator />
   1.967 +        <vbox id="sync-disconnect-warning" collapsed="true">
   1.968 +          <description class="syncHeader">
   1.969 +            &sync.flyout.connected.disconnectWarningHeader;
   1.970 +          </description>
   1.971 +          <description class="syncSecondaryText">
   1.972 +            &sync.flyout.connected.disconnectWarning;
   1.973 +          </description>
   1.974 +          <hbox>
   1.975 +            <separator />
   1.976 +            <button label="&sync.flyout.connected.cancel;"
   1.977 +                    oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectCancel();" />
   1.978 +            <button label="&sync.flyout.connected.disconnect;"
   1.979 +                    oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectButton();" />
   1.980 +
   1.981 +          </hbox>
   1.982 +          <separator />
   1.983 +        </vbox>
   1.984 +        <hbox onclick="FlyoutPanelsUI.SyncFlyoutPanel.onPairDeviceLink();"
   1.985 +              class="text-link">
   1.986 +          <image src="chrome://browser/skin/images/plus-24.png" />
   1.987 +          <separator />
   1.988 +          <label>
   1.989 +            &sync.flyout.connected.pair;
   1.990 +          </label>
   1.991 +        </hbox>
   1.992 +      </vbox>
   1.993 +
   1.994 +      <vbox id="sync-pair-container"
   1.995 +            collapsed="true">
   1.996 +        <description>
   1.997 +          &sync.flyout.pairNewDevice.description;
   1.998 +        </description>
   1.999 +        <separator />
  1.1000 +        <hbox>
  1.1001 +          <vbox>
  1.1002 +            <textbox id="sync-pair-entry1"
  1.1003 +                     class="syncJPAKECode"
  1.1004 +                     maxlength="4"
  1.1005 +                     oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
  1.1006 +            <textbox id="sync-pair-entry2"
  1.1007 +                     class="syncJPAKECode"
  1.1008 +                     maxlength="4"
  1.1009 +                     oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
  1.1010 +            <textbox id="sync-pair-entry3"
  1.1011 +                     class="syncJPAKECode"
  1.1012 +                     maxlength="4"
  1.1013 +                     oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
  1.1014 +          </vbox>
  1.1015 +          <spacer flex="1" />
  1.1016 +        </hbox>
  1.1017 +        <description id="sync-pair-failure"
  1.1018 +                     class="syncErrorText"
  1.1019 +                     collapsed="true">
  1.1020 +          &sync.flyout.pairNewDevice.failure;
  1.1021 +        </description>
  1.1022 +        <hbox>
  1.1023 +          <button id="sync-pair-button"
  1.1024 +                  label="&sync.flyout.pairNewDevice.pair;"
  1.1025 +                  oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onPairButton();"
  1.1026 +                  disabled="true" />
  1.1027 +          <spacer flex="1" />
  1.1028 +        </hbox>
  1.1029 +        <description>
  1.1030 +          &sync.flyout.pairNewDevice.note1;
  1.1031 +        </description>
  1.1032 +        <description>
  1.1033 +          &sync.flyout.pairNewDevice.note2_2;
  1.1034 +        </description>
  1.1035 +        <description class="syncInstructionText">
  1.1036 +          &sync.flyout.pairNewDevice.note3_2;
  1.1037 +        </description>
  1.1038 +        <description class="syncInstructionText">
  1.1039 +          &sync.flyout.pairNewDevice.note4;
  1.1040 +        </description>
  1.1041 +      </vbox>
  1.1042 +
  1.1043 +      <vbox id="sync-pair-success-container"
  1.1044 +            collapsed="true">
  1.1045 +        <description>
  1.1046 +          &sync.flyout.pairSuccess.description1;
  1.1047 +        </description>
  1.1048 +        <description>
  1.1049 +          &sync.flyout.pairSuccess.description2;
  1.1050 +        </description>
  1.1051 +      </vbox>
  1.1052 +
  1.1053 +    </flyoutpanel>
  1.1054 +#endif
  1.1055 +
  1.1056 +    <flyoutpanel id="prefs-flyoutpanel"
  1.1057 +                 class="flyout-narrow"
  1.1058 +                 headertext="&optionsHeader.title;">
  1.1059 +      <settings id="prefs-privdata"
  1.1060 +                label="&clearPrivateData.title;">
  1.1061 +        <description>
  1.1062 +          &clearPrivateData.label;
  1.1063 +        </description>
  1.1064 +
  1.1065 +        <checkbox id="prefs-privdata-history"
  1.1066 +                  itemName="history"
  1.1067 +                  label="&clearPrivateData.history;"
  1.1068 +                  checked="true" />
  1.1069 +
  1.1070 +        <checkbox id="prefs-privdata-other"
  1.1071 +                  label="&clearPrivateData.otherdata;"/>
  1.1072 +        <hbox id="prefs-privdata-subitems" >
  1.1073 +          <checkbox class="privdata-subitem-item"
  1.1074 +                    checked="true"
  1.1075 +                    itemName="downloads"
  1.1076 +                    label="&clearPrivateData.downloadHist;"/>
  1.1077 +          <checkbox class="privdata-subitem-item"
  1.1078 +                    checked="true"
  1.1079 +                    itemName="formdata"
  1.1080 +                    label="&clearPrivateData.formSearchHist;"/>
  1.1081 +          <checkbox class="privdata-subitem-item"
  1.1082 +                    checked="true"
  1.1083 +                    itemName="cookies"
  1.1084 +                    label="&clearPrivateData.cookies;"/>
  1.1085 +          <checkbox class="privdata-subitem-item"
  1.1086 +                    checked="true"
  1.1087 +                    itemName="passwords"
  1.1088 +                    label="&clearPrivateData.passwords;"/>
  1.1089 +          <checkbox class="privdata-subitem-item"
  1.1090 +                    checked="true"
  1.1091 +                    itemName="cache"
  1.1092 +                    label="&clearPrivateData.cache;"/>
  1.1093 +          <checkbox class="privdata-subitem-item"
  1.1094 +                    checked="true"
  1.1095 +                    itemName="offlineApps"
  1.1096 +                    label="&clearPrivateData.offline;"/>
  1.1097 +          <checkbox class="privdata-subitem-item"
  1.1098 +                    checked="true"
  1.1099 +                    itemName="siteSettings"
  1.1100 +                    label="&clearPrivateData.sitePref;"/>
  1.1101 +          <checkbox class="privdata-subitem-item"
  1.1102 +                    checked="true"
  1.1103 +                    itemName="sessions"
  1.1104 +                    label="&clearPrivateData.logins;"/>
  1.1105 +        </hbox>
  1.1106 +
  1.1107 +        <hbox align="center">
  1.1108 +          <button id="prefs-clear-data"
  1.1109 +                  label="&clearPrivateData.button;"
  1.1110 +                  command="cmd_sanitize"
  1.1111 +                  flex="1" />
  1.1112 +          <deck id="clear-notification"
  1.1113 +                flex="2"
  1.1114 +                selectedIndex="0"
  1.1115 +                align="center">
  1.1116 +            <spacer id="clear-notification-empty"/>
  1.1117 +            <hbox id="clear-notification-clearing"
  1.1118 +                  align="center">
  1.1119 +              <cssthrobber id="clearprivacythrobber"/>
  1.1120 +            </hbox>
  1.1121 +            <description id="clear-notification-done">
  1.1122 +              &clearPrivateData.done;
  1.1123 +            </description>
  1.1124 +          </deck>
  1.1125 +        </hbox>
  1.1126 +      </settings>
  1.1127 +      <setting pref="signon.rememberSignons"
  1.1128 +               title="&optionsHeader.privacy.passwords.label;"
  1.1129 +               type="bool"/>
  1.1130 +      <setting pref="browser.display.overlaynavbuttons"
  1.1131 +               title="&optionsHeader.displayOverlayButtons.label;"
  1.1132 +               type="bool"/>
  1.1133 +      <settings id="prefs-reporting"
  1.1134 +                label="&optionsHeader.reporting.title;">
  1.1135 +        <setting pref="app.crashreporter.autosubmit"
  1.1136 +                 type="bool"
  1.1137 +                 title="&optionsHeader.reporting.crashes.label;" />
  1.1138 +        <checkbox id="prefs-reporting-submitURLs"
  1.1139 +                  cropped="end"
  1.1140 +                  label="&optionsHeader.reporting.crashes.submitURLs;"
  1.1141 +                  command="cmd_reportingCrashesSubmitURLs"/>
  1.1142 +      </settings>
  1.1143 +      <settings id="prefs-telemetry"
  1.1144 +                label="&optionsHeader.telemetry.title;">
  1.1145 +        <setting
  1.1146 +#ifdef MOZ_TELEMETRY_ON_BY_DEFAULT
  1.1147 +          pref="toolkit.telemetry.enabledPreRelease"
  1.1148 +#else
  1.1149 +          pref="toolkit.telemetry.enabled"
  1.1150 +#endif
  1.1151 +          type="bool"
  1.1152 +          title="&optionsHeader.telemetry.label;"/>
  1.1153 +      </settings>
  1.1154 +      <settings id="prefs-dnt"
  1.1155 +                label="&doNotTrack.title;">
  1.1156 +        <setting id="prefs-dnt-value"
  1.1157 +                 pref="privacy.donottrackheader.value"
  1.1158 +                 type="radio" >
  1.1159 +          <radiogroup id="prefs-dnt-options">
  1.1160 +            <radio id="prefs-dnt-notrack"
  1.1161 +                   class="flyoutpanel-hack"
  1.1162 +                   label="&doNotTrack.options.doNotTrack;"
  1.1163 +                   value="1"/>
  1.1164 +            <radio id="prefs-dnt-oktrack"
  1.1165 +                   class="flyoutpanel-hack"
  1.1166 +                   label="&doNotTrack.options.doTrack;"
  1.1167 +                   value="0"/>
  1.1168 +            <radio id="prefs-dnt-nopref"
  1.1169 +                   class="flyoutpanel-hack"
  1.1170 +                   label="&doNotTrack.options.default;"
  1.1171 +                   value="-1"/>
  1.1172 +          </radiogroup>
  1.1173 +        </setting>
  1.1174 +        <label class="text-link"
  1.1175 +               href="https://www.mozilla.org/dnt">
  1.1176 +          &doNotTrack.learnMoreLink;
  1.1177 +        </label>
  1.1178 +      </settings>
  1.1179 +    </flyoutpanel>
  1.1180 +    <flyoutpanel id="search-flyoutpanel"
  1.1181 +                 class="flyout-narrow"
  1.1182 +                 headertext="&searchFlyoutHeader.title;">
  1.1183 +      <settings id="search-options"
  1.1184 +                label="&searchSetting.title;">
  1.1185 +      </settings>
  1.1186 +    </flyoutpanel>
  1.1187 +
  1.1188 +    <!-- Chrome touch selection overlay -->
  1.1189 +    <box class="selection-overlay-hidden"
  1.1190 +         id="chrome-selection-overlay"/>
  1.1191 +
  1.1192 +    <box onclick="event.stopPropagation();"
  1.1193 +         id="context-container"
  1.1194 +         class="menu-container"
  1.1195 +         hidden="true">
  1.1196 +      <vbox id="context-popup"
  1.1197 +            class="menu-popup">
  1.1198 +        <richlistbox id="context-commands"
  1.1199 +                     bindingType="contextmenu"
  1.1200 +                     flex="1">
  1.1201 +          <!-- priority="low" items are hidden by default when a context is
  1.1202 +               being displayed for two or more media types. (e.g.
  1.1203 +               a linked image) -->
  1.1204 +          <!-- content types preceeded by '!' act as exclusion rules, the menu
  1.1205 +               item will not be displayed if the content type is present. -->
  1.1206 +          <!-- Note the order of richlistitem here is important as it is
  1.1207 +               reflected in the menu itself. -->
  1.1208 +          <!-- ux spec:
  1.1209 +               https://bug782810.bugzilla.mozilla.org/attachment.cgi?id=714804 -->
  1.1210 +
  1.1211 +          <!-- Text related -->
  1.1212 +          <!-- for text inputs, this will cut selected text -->
  1.1213 +          <richlistitem id="context-cut"
  1.1214 +                        type="cut"
  1.1215 +                        onclick="ContextCommands.cut();">
  1.1216 +            <label value="&contextTextCut.label;"/>
  1.1217 +          </richlistitem>
  1.1218 +          <!-- for text inputs, this will copy selected text -->
  1.1219 +          <richlistitem id="context-copy"
  1.1220 +                        type="copy"
  1.1221 +                        onclick="ContextCommands.copy();">
  1.1222 +            <label value="&contextTextCopy.label;"/>
  1.1223 +          </richlistitem>
  1.1224 +          <!-- Search Bing for "(text..)", displayed on selected content text
  1.1225 +              only -->
  1.1226 +          <richlistitem id="context-search"
  1.1227 +                        type="selected-text,!input-text"
  1.1228 +                        onclick="ContextCommands.searchText(this);">
  1.1229 +            <label id="context-search-label" value=""/>
  1.1230 +          </richlistitem>
  1.1231 +          <!-- only displayed in inputs with text that do not have selection -->
  1.1232 +          <richlistitem id="context-select"
  1.1233 +                        type="selectable"
  1.1234 +                        onclick="ContextCommands.select();">
  1.1235 +            <label value="&contextTextSelect.label;"/>
  1.1236 +          </richlistitem>
  1.1237 +          <!-- only displayed in inputs with text that do not have selection -->
  1.1238 +          <richlistitem id="context-select-all"
  1.1239 +                        type="selectable"
  1.1240 +                        onclick="ContextCommands.selectAll();">
  1.1241 +            <label value="&contextTextSelectAll.label;"/>
  1.1242 +          </richlistitem>
  1.1243 +          <!-- only displayed if there is text on the clipboard -->
  1.1244 +          <richlistitem id="context-paste"
  1.1245 +                        type="paste"
  1.1246 +                        onclick="ContextCommands.paste();">
  1.1247 +            <label value="&contextTextPaste.label;"/>
  1.1248 +          </richlistitem>
  1.1249 +          <!-- only display if there is text on the clipboard and the target
  1.1250 +               is the urlbar -->
  1.1251 +          <richlistitem id="context-paste-n-go"
  1.1252 +                        type="paste-url"
  1.1253 +                        onclick="ContextCommands.pasteAndGo();">
  1.1254 +            <label value="&contextTextPasteAndGo.label;"/>
  1.1255 +          </richlistitem>
  1.1256 +
  1.1257 +          <!-- Image related -->
  1.1258 +          <!-- save image to user pictures library -->
  1.1259 +          <richlistitem id="context-save-image-lib"
  1.1260 +                        type="image"
  1.1261 +                        onclick="ContextCommands.saveImageToLib();">
  1.1262 +            <label value="&contextSaveImageLib.label;"/>
  1.1263 +          </richlistitem>
  1.1264 +          <!-- copy image data to clipboard -->
  1.1265 +          <richlistitem id="context-copy-image"
  1.1266 +                        type="image"
  1.1267 +                        onclick="ContextCommands.copyImage();">
  1.1268 +            <label value="&contextCopyImage.label;"/>
  1.1269 +          </richlistitem>
  1.1270 +          <!-- copy the uri of the image src -->
  1.1271 +          <richlistitem id="context-copy-image-loc"
  1.1272 +                        type="image"
  1.1273 +                        onclick="ContextCommands.copyImageSrc();">
  1.1274 +            <label value="&contextCopyImageLocation.label;"/>
  1.1275 +          </richlistitem>
  1.1276 +          <!-- open the uri of the image src in a new tab -->
  1.1277 +          <richlistitem id="context-open-image-tab"
  1.1278 +                        type="image"
  1.1279 +                        priority="low"
  1.1280 +                        onclick="ContextCommands.openImageInNewTab();">
  1.1281 +            <label value="&contextOpenImageTab.label;"/>
  1.1282 +          </richlistitem>
  1.1283 +
  1.1284 +          <!-- Video related -->
  1.1285 +          <!-- save video to user videos library -->
  1.1286 +          <richlistitem id="context-save-video-lib"
  1.1287 +                        type="video"
  1.1288 +                        onclick="ContextCommands.saveVideoToLib();">
  1.1289 +            <label value="&contextSaveVideoLib.label;"/>
  1.1290 +          </richlistitem>
  1.1291 +          <!-- copy the uri of the video src -->
  1.1292 +          <richlistitem id="context-copy-video-loc"
  1.1293 +                        type="video"
  1.1294 +                        onclick="ContextCommands.copyVideoSrc();">
  1.1295 +            <label value="&contextCopyVideoLocation.label;"/>
  1.1296 +          </richlistitem>
  1.1297 +          <!-- open the uri of the video src in a new tab -->
  1.1298 +          <richlistitem id="context-open-video-tab"
  1.1299 +                        type="video"
  1.1300 +                        priority="low"
  1.1301 +                        onclick="ContextCommands.openVideoInNewTab();">
  1.1302 +            <label value="&contextOpenVideoTab.label;"/>
  1.1303 +          </richlistitem>
  1.1304 +
  1.1305 +          <!-- Link related -->
  1.1306 +          <!-- all of these apply to underlying link href values -->
  1.1307 +          <richlistitem id="context-open-in-new-tab"
  1.1308 +                        type="link"
  1.1309 +                        onclick="ContextCommands.openLinkInNewTab();">
  1.1310 +            <label value="&contextOpenLinkTab.label;"/>
  1.1311 +          </richlistitem>
  1.1312 +          <richlistitem id="context-copy-link"
  1.1313 +                        type="link"
  1.1314 +                        onclick="ContextCommands.copyLink();">
  1.1315 +            <label value="&contextCopyLinkHref.label;"/>
  1.1316 +          </richlistitem>
  1.1317 +          <richlistitem id="context-bookmark-link"
  1.1318 +                        type="link"
  1.1319 +                        priority="low"
  1.1320 +                        onclick="ContextCommands.bookmarkLink();">
  1.1321 +            <label value="&contextBookmarkLinkHref.label;"/>
  1.1322 +          </richlistitem>
  1.1323 +
  1.1324 +          <!-- App bar: 'more' button context menu -->
  1.1325 +          <!-- developer buttons - shown in metrodesktop mode only -->
  1.1326 +          <richlistitem id="context-error-console"
  1.1327 +                        type="open-error-console"
  1.1328 +                        onclick="ContextCommands.errorConsole();">
  1.1329 +            <label value="&appbarErrorConsole.label;"/>
  1.1330 +          </richlistitem>
  1.1331 +          <richlistitem id="context-jsshell"
  1.1332 +                        type="open-jsshell"
  1.1333 +                        onclick="ContextCommands.jsShell();">
  1.1334 +            <label value="&appbarJSShell.label;"/>
  1.1335 +          </richlistitem>
  1.1336 +
  1.1337 +          <!-- standard buttons -->
  1.1338 +          <richlistitem id="context-newprivatetab"
  1.1339 +                        type="private-browsing"
  1.1340 +                        onclick="BrowserUI.addAndShowPrivateTab()">
  1.1341 +            <label value="&newPrivateTab.label;"/>
  1.1342 +          </richlistitem>
  1.1343 +          <richlistitem id="context-findinpage"
  1.1344 +                        type="find-in-page"
  1.1345 +                        onclick="ContextCommands.findInPage();">
  1.1346 +            <label value="&appbarFindInPage2.label;"/>
  1.1347 +          </richlistitem>
  1.1348 +          <richlistitem id="context-viewondesktop"
  1.1349 +                        type="view-on-desktop"
  1.1350 +                        onclick="ContextCommands.viewOnDesktop();">
  1.1351 +            <label value="&appbarRelaunchInDesktop.label;"/>
  1.1352 +          </richlistitem>
  1.1353 +          <richlistitem id="context-msmetadata"
  1.1354 +                        type="ms-meta-data"
  1.1355 +                        onclick="ContextCommands.openWindowsStoreLink();">
  1.1356 +            <label value="&appbarMSMetaData2.label;"/>
  1.1357 +          </richlistitem>
  1.1358 +          <richlistitem id="context-viewpagesource"
  1.1359 +                        type="view-page-source"
  1.1360 +                        onclick="ContextCommands.viewPageSource();">
  1.1361 +            <label value="&appbarViewPageSource.label;"/>
  1.1362 +          </richlistitem>
  1.1363 +        </richlistbox>
  1.1364 +      </vbox>
  1.1365 +    </box>
  1.1366 +
  1.1367 +    <vbox id="select-container"
  1.1368 +          class="menu-container"
  1.1369 +          hidden="true">
  1.1370 +      <vbox id="select-popup"
  1.1371 +            class="select-popup">
  1.1372 +        <richlistbox id="select-commands"
  1.1373 +                     flex="1"/>
  1.1374 +      </vbox>
  1.1375 +    </vbox>
  1.1376 +
  1.1377 +    <box id="menucontrol-container"
  1.1378 +         class="menu-container"
  1.1379 +         hidden="true">
  1.1380 +      <vbox id="menucontrol-popup"
  1.1381 +            class="menu-popup">
  1.1382 +        <richlistbox id="menupopup-commands"
  1.1383 +                     onclick="if (event.target != this) MenuControlUI.selectByIndex(this.selectedIndex);"
  1.1384 +                     flex="1"/>
  1.1385 +      </vbox>
  1.1386 +    </box>
  1.1387 +
  1.1388 +    <box id="autofill-container"
  1.1389 +         class="menu-container"
  1.1390 +         hidden="true">
  1.1391 +      <vbox id="autofill-popup"
  1.1392 +            class="menu-popup">
  1.1393 +        <richlistbox id="menupopup-commands"
  1.1394 +                     onclick="if (event.target != this) AutofillMenuUI.selectByIndex(this.selectedIndex);"
  1.1395 +                     flex="1"/>
  1.1396 +      </vbox>
  1.1397 +    </box>
  1.1398 +  </stack>
  1.1399 +</window>

mercurial