DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (4a108e94d3e2)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
<!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
<!ENTITY % syncDTD SYSTEM "chrome://browser/locale/preferences/sync.dtd">
%brandDTD;
%syncBrandDTD;
%syncDTD;
]>

<overlay id="SyncPaneOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:html="http://www.w3.org/1999/xhtml">

  <prefpane id="paneSync"
            helpTopic="prefs-weave"
            onpaneload="gSyncPane.init()">

    <preferences id="syncEnginePrefs">
      <preference id="engine.addons"    name="services.sync.engine.addons"    type="bool"/>
      <preference id="engine.bookmarks" name="services.sync.engine.bookmarks" type="bool"/>
      <preference id="engine.history"   name="services.sync.engine.history"   type="bool"/>
      <preference id="engine.tabs"      name="services.sync.engine.tabs"      type="bool"/>
      <preference id="engine.prefs"     name="services.sync.engine.prefs"     type="bool"/>
      <preference id="engine.passwords" name="services.sync.engine.passwords" type="bool"/>
      <!-- non Sync-Engine engines -->
      <preference id="engine.readinglist" name="readinglist.scheduler.enabled" type="bool"/>
    </preferences>


    <script type="application/javascript"
            src="chrome://browser/content/preferences/sync.js"/>
    <script type="application/javascript"
            src="chrome://browser/content/sync/utils.js"/>

      <vbox id="sync-migration" flex="1" hidden="true">

        <deck id="sync-migration-deck">
          <!-- When we are in the "need FxA user" state -->
          <hbox align="center">
            <description id="sync-migrate-upgrade-description" flex="1"/>
            <spacer flex="1"/>
            <button id="sync-migrate-unlink"
                    onclick="event.stopPropagation(); gSyncPane.startOverMigration();"/>
            <button id="sync-migrate-upgrade"
                    onclick="event.stopPropagation(); gSyncPane.migrateUpgrade();"/>
          </hbox>

          <!-- When we are in the "need the user to be verified" state -->
          <hbox align="center">
            <description id="sync-migrate-verify-description" flex="1"/>
            <spacer flex="1"/>
            <button id="sync-migrate-forget"
                    onclick="event.stopPropagation(); gSyncPane.migrateForget();"/>
            <button id="sync-migrate-resend"
                    onclick="event.stopPropagation(); gSyncPane.migrateResend();"/>
          </hbox>
        </deck>
      </vbox>

      <deck id="weavePrefsDeck">

        <!-- These panels are for the "legacy" sync provider -->
        <vbox id="noAccount" align="center">
          <spacer flex="1"/>
          <description id="syncDesc">
            &weaveDesc.label;
          </description>
          <separator/>
          <label class="text-link"
                 onclick="event.stopPropagation(); gSyncPane.openSetup(null);"
                 value="&setupButton.label;"/>
          <vbox id="pairDevice">
            <separator/>
            <label class="text-link"
                   onclick="event.stopPropagation(); gSyncPane.openSetup('pair');"
                   value="&pairDevice.label;"/>
          </vbox>
          <spacer flex="3"/>
        </vbox>

        <vbox id="hasAccount">
          <groupbox class="syncGroupBox">
            <!-- label is set to account name -->
            <caption id="accountCaption" align="center">
              <image id="accountCaptionImage"/>
              <label id="accountName" value=""/>
            </caption>

            <hbox>
              <button type="menu"
                      label="&manageAccount.label;"
                      accesskey="&manageAccount.accesskey;">
                <menupopup>
                  <menuitem label="&viewQuota.label;"
                            oncommand="gSyncPane.openQuotaDialog();"/>
                  <menuseparator/>
                  <menuitem label="&changePassword2.label;"
                            oncommand="gSyncUtils.changePassword();"/>
                  <menuitem label="&myRecoveryKey.label;"
                            oncommand="gSyncUtils.resetPassphrase();"/>
                  <menuseparator/>
                  <menuitem label="&resetSync2.label;"
                            oncommand="gSyncPane.resetSync();"/>
                </menupopup>
              </button>
            </hbox>

            <hbox>
              <label id="syncAddDeviceLabel"
                     class="text-link"
                     onclick="gSyncPane.openAddDevice(); return false;"
                     value="&pairDevice.label;"/>
            </hbox>

            <vbox>
              <label value="&syncMy.label;" />
              <richlistbox id="syncEnginesList"
                           orient="vertical"
                           onselect="if (this.selectedCount) this.clearSelection();">
                <richlistitem>
                  <checkbox label="&engine.addons.label;"
                            accesskey="&engine.addons.accesskey;"
                            preference="engine.addons"/>
                </richlistitem>
                <richlistitem>
                  <checkbox label="&engine.bookmarks.label;"
                            accesskey="&engine.bookmarks.accesskey;"
                            preference="engine.bookmarks"/>
                </richlistitem>
                <richlistitem>
                  <checkbox label="&engine.passwords.label;"
                            accesskey="&engine.passwords.accesskey;"
                            preference="engine.passwords"/>
                </richlistitem>
                <richlistitem>
                  <checkbox label="&engine.prefs.label;"
                            accesskey="&engine.prefs.accesskey;"
                            preference="engine.prefs"/>
                </richlistitem>
                <richlistitem>
                  <checkbox label="&engine.history.label;"
                            accesskey="&engine.history.accesskey;"
                            preference="engine.history"/>
                </richlistitem>
                <richlistitem>
                  <checkbox label="&engine.tabs.label;"
                            accesskey="&engine.tabs.accesskey;"
                            preference="engine.tabs"/>
                </richlistitem>
              </richlistbox>
            </vbox>
          </groupbox>

          <groupbox class="syncGroupBox">
            <grid>
              <columns>
                <column/>
                <column flex="1"/>
              </columns>
              <rows>
                <row align="center">
                  <label value="&syncDeviceName.label;"
                         accesskey="&syncDeviceName.accesskey;"
                         control="syncComputerName"/>
                  <textbox id="syncComputerName"
                           onchange="gSyncUtils.changeName(this)"/>
                </row>
              </rows>
            </grid>
            <hbox>
              <label class="text-link"
                     onclick="gSyncPane.startOver(true); return false;"
                     value="&unlinkDevice.label;"/>
            </hbox>
          </groupbox>
          <hbox id="tosPP-normal" pack="center">
            <label class="text-link"
                   onclick="event.stopPropagation();gSyncUtils.openToS();"
                   value="&prefs.tosLink.label;"/>
            <label class="text-link"
                   onclick="event.stopPropagation();gSyncUtils.openPrivacyPolicy();"
                   value="&prefs.ppLink.label;"/>
          </hbox>
        </vbox>

        <vbox id="needsUpdate" align="center" pack="center">
          <hbox>
            <label id="loginError" value=""/>
            <label class="text-link"
                   onclick="gSyncPane.updatePass(); return false;"
                   value="&updatePass.label;"/>
            <label class="text-link"
                   onclick="gSyncPane.resetPass(); return false;"
                   value="&resetPass.label;"/>
          </hbox>
          <label class="text-link"
                 onclick="gSyncPane.startOver(true); return false;"
                 value="&unlinkDevice.label;"/>
        </vbox>

        <!-- These panels are for the Firefox Accounts identity provider -->
        <vbox id="fxaDeterminingStatus" align="center">
          <spacer flex="1"/>
          <p>&determiningAcctStatus.label;</p>
          <spacer flex="1"/>
        </vbox>

        <vbox id="noFxaAccount" align="start">
          <label>&welcome.description;</label>
            <label class="text-link"
                   onclick="gSyncPane.signUp(); return false;"
                   value="&welcome.createAccount.label;"/>
            <label class="text-link"
                   onclick="gSyncPane.signIn(); return false;"
                   value="&welcome.signIn.label;"/>
            <separator/>
            <label class="text-link"
                   onclick="gSyncPane.openOldSyncSupportPage(); return false;"
                   value="&welcome.useOldSync.label;"/>
        </vbox>

        <vbox id="hasFxaAccount">
          <groupbox id="fxaGroup">
            <caption label="&syncBrand.fxAccount.label;"/>

            <deck id="fxaLoginStatus">

              <!-- logged in and verified and all is good -->
              <hbox>
                <label id="fxaEmailAddress1"/>
                <vbox>
                  <label class="text-link"
                         onclick="gSyncPane.manageFirefoxAccount();"
                         value="&manage.label;"/>
                </vbox>
                <spacer flex="1"/>
                <vbox>
                  <button id="fxaUnlinkButton"
                          oncommand="gSyncPane.unlinkFirefoxAccount(true);"
                          label="&disconnect.label;"/>
                </vbox>
              </hbox>

              <!-- logged in to an unverified account -->
              <hbox flex="1">
                <description flex="1">
                  &signedInUnverified.beforename.label;
                  <span id="fxaEmailAddress2"></span>
                  &signedInUnverified.aftername.label;
                </description>
                <vbox align="end">
                  <button oncommand="gSyncPane.verifyFirefoxAccount();"
                          label="&verify.label;"/>
                  <label class="text-link"
                         onclick="/* no warning as account can't have previously synced */ gSyncPane.unlinkFirefoxAccount(false);"
                         value="&forget.label;"/>
                </vbox>
              </hbox>

              <!-- logged in locally but server rejected credentials -->
              <hbox flex="1">
                <description flex="1">
                  &signedInLoginFailure.beforename.label;
                  <span id="fxaEmailAddress3"></span>
                  &signedInLoginFailure.aftername.label;
                </description>
                <vbox align="end">
                  <button oncommand="gSyncPane.reSignIn();"
                         label="&signIn.label;"/>
                  <label class="text-link"
                         onclick="gSyncPane.unlinkFirefoxAccount(true);"
                         value="&forget.label;"/>
                </vbox>
              </hbox>
            </deck>
          </groupbox>

          <groupbox id="syncOptions">
            <caption label="&syncBrand.shortName.label;"/>
            <hbox id="fxaSyncEngines">
              <vbox>
                <checkbox label="&engine.tabs.label;"
                          accesskey="&engine.tabs.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged();"
                          preference="engine.tabs"/>
                <checkbox label="&engine.bookmarks.label;"
                          accesskey="&engine.bookmarks.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged();"
                          preference="engine.bookmarks"/>
                <checkbox label="&engine.passwords.label;"
                          accesskey="&engine.passwords.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged();"
                          preference="engine.passwords"/>
                <checkbox label="&engine.history.label;"
                          accesskey="&engine.history.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged(this);"
                          preference="engine.history"/>
                <!-- onpreferencechanged not needed for the readinglist engine -->
                <checkbox id="readinglist-engine"
                          label="&engine.readinglist.label;"
                          accesskey="&engine.readinglist.accesskey;"
                          preference="engine.readinglist"
                          hidden="true"/>
                <checkbox label="&engine.addons.label;"
                          accesskey="&engine.addons.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged();"
                          preference="engine.addons"/>
                <checkbox label="&engine.prefs.label;"
                          accesskey="&engine.prefs.accesskey;"
                          onsynctopreference="gSyncPane.onPreferenceChanged();"
                          preference="engine.prefs"/>
              </vbox>
              <spacer/>
            </hbox>
          </groupbox>
          <hbox align="center">
            <label value="&syncDeviceName.label;"
                   accesskey="&syncDeviceName.accesskey;"
                   control="syncComputerName"/>
            <textbox id="fxaSyncComputerName"
                     flex="1"
                     onchange="gSyncUtils.changeName(this)"/>
          </hbox>
          <spacer flex="1"/>
          <hbox id="tosPP-small" pack="center">
            <label class="text-link small"
                   onclick="event.stopPropagation();gSyncUtils.openToS();"
                   value="&prefs.tosLink.label;"/>
            <label class="text-link small"
                   onclick="event.stopPropagation();gSyncUtils.openPrivacyPolicy();"
                   value="&fxaPrivacyNotice.link.label;"/>
          </hbox>
        </vbox>
      </deck>
  </prefpane>
</overlay>