browser/base/content/sync/setup.xul

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <?xml version="1.0"?>
michael@0 2
michael@0 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 6
michael@0 7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 8 <?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?>
michael@0 9 <?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?>
michael@0 10
michael@0 11 <!DOCTYPE window [
michael@0 12 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
michael@0 13 <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
michael@0 14 <!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd">
michael@0 15 %brandDTD;
michael@0 16 %syncBrandDTD;
michael@0 17 %syncSetupDTD;
michael@0 18 ]>
michael@0 19 <wizard id="wizard"
michael@0 20 title="&accountSetupTitle.label;"
michael@0 21 windowtype="Weave:AccountSetup"
michael@0 22 persist="screenX screenY"
michael@0 23 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 24 xmlns:html="http://www.w3.org/1999/xhtml"
michael@0 25 onwizardnext="return gSyncSetup.onWizardAdvance()"
michael@0 26 onwizardback="return gSyncSetup.onWizardBack()"
michael@0 27 onwizardcancel="gSyncSetup.onWizardCancel()"
michael@0 28 onload="gSyncSetup.init()">
michael@0 29
michael@0 30 <script type="application/javascript"
michael@0 31 src="chrome://browser/content/sync/setup.js"/>
michael@0 32 <script type="application/javascript"
michael@0 33 src="chrome://browser/content/sync/utils.js"/>
michael@0 34 <script type="application/javascript"
michael@0 35 src="chrome://browser/content/utilityOverlay.js"/>
michael@0 36 <script type="application/javascript"
michael@0 37 src="chrome://global/content/printUtils.js"/>
michael@0 38
michael@0 39 <wizardpage id="addDevicePage"
michael@0 40 label="&pairDevice.title.label;"
michael@0 41 onpageshow="gSyncSetup.onPageShow()">
michael@0 42 <description>
michael@0 43 &pairDevice.dialog.description.label;
michael@0 44 <label class="text-link"
michael@0 45 value="&addDevice.showMeHow.label;"
michael@0 46 href="https://services.mozilla.com/sync/help/add-device"/>
michael@0 47 </description>
michael@0 48 <separator class="groove-thin"/>
michael@0 49 <description>
michael@0 50 &addDevice.dialog.enterCode.label;
michael@0 51 </description>
michael@0 52 <separator class="groove-thin"/>
michael@0 53 <vbox align="center">
michael@0 54 <textbox id="pin1"
michael@0 55 class="pin"
michael@0 56 oninput="gSyncSetup.onPINInput(this);"
michael@0 57 onfocus="this.select();"
michael@0 58 />
michael@0 59 <textbox id="pin2"
michael@0 60 class="pin"
michael@0 61 oninput="gSyncSetup.onPINInput(this);"
michael@0 62 onfocus="this.select();"
michael@0 63 />
michael@0 64 <textbox id="pin3"
michael@0 65 class="pin"
michael@0 66 oninput="gSyncSetup.onPINInput(this);"
michael@0 67 onfocus="this.select();"
michael@0 68 />
michael@0 69 </vbox>
michael@0 70 <separator class="groove-thin"/>
michael@0 71 <vbox id="pairDeviceThrobber" align="center" hidden="true">
michael@0 72 <image/>
michael@0 73 </vbox>
michael@0 74 <hbox id="pairDeviceErrorRow" pack="center" hidden="true">
michael@0 75 <image class="statusIcon" status="error"/>
michael@0 76 <label class="status"
michael@0 77 value="&addDevice.dialog.tryAgain.label;"/>
michael@0 78 </hbox>
michael@0 79 </wizardpage>
michael@0 80
michael@0 81 <wizardpage id="pickSetupType"
michael@0 82 label="&syncBrand.fullName.label;"
michael@0 83 onpageshow="gSyncSetup.onPageShow()">
michael@0 84 <vbox align="center" flex="1">
michael@0 85 <description style="padding: 0 7em;">
michael@0 86 &setup.pickSetupType.description2;
michael@0 87 </description>
michael@0 88 <spacer flex="3"/>
michael@0 89 <button id="newAccount"
michael@0 90 class="accountChoiceButton"
michael@0 91 label="&button.createNewAccount.label;"
michael@0 92 oncommand="gSyncSetup.startNewAccountSetup()"
michael@0 93 align="center"/>
michael@0 94 <spacer flex="1"/>
michael@0 95 </vbox>
michael@0 96 <separator class="groove"/>
michael@0 97 <vbox align="center" flex="1">
michael@0 98 <spacer flex="1"/>
michael@0 99 <button id="existingAccount"
michael@0 100 class="accountChoiceButton"
michael@0 101 label="&button.haveAccount.label;"
michael@0 102 oncommand="gSyncSetup.useExistingAccount()"/>
michael@0 103 <spacer flex="3"/>
michael@0 104 </vbox>
michael@0 105 </wizardpage>
michael@0 106
michael@0 107 <wizardpage label="&setup.newAccountDetailsPage.title.label;"
michael@0 108 id="newAccountStart"
michael@0 109 onextra1="gSyncSetup.onSyncOptions()"
michael@0 110 onpageshow="gSyncSetup.onPageShow();">
michael@0 111 <grid>
michael@0 112 <columns>
michael@0 113 <column/>
michael@0 114 <column class="inputColumn" flex="1"/>
michael@0 115 </columns>
michael@0 116 <rows>
michael@0 117 <row id="emailRow" align="center">
michael@0 118 <label value="&setup.emailAddress.label;"
michael@0 119 accesskey="&setup.emailAddress.accesskey;"
michael@0 120 control="weaveEmail"/>
michael@0 121 <textbox id="weaveEmail"
michael@0 122 oninput="gSyncSetup.onEmailInput()"/>
michael@0 123 </row>
michael@0 124 <row id="emailFeedbackRow" align="center" hidden="true">
michael@0 125 <spacer/>
michael@0 126 <hbox>
michael@0 127 <image class="statusIcon"/>
michael@0 128 <label class="status" value=" "/>
michael@0 129 </hbox>
michael@0 130 </row>
michael@0 131 <row id="passwordRow" align="center">
michael@0 132 <label value="&setup.choosePassword.label;"
michael@0 133 accesskey="&setup.choosePassword.accesskey;"
michael@0 134 control="weavePassword"/>
michael@0 135 <textbox id="weavePassword"
michael@0 136 type="password"
michael@0 137 onchange="gSyncSetup.onPasswordChange()"/>
michael@0 138 </row>
michael@0 139 <row id="confirmRow" align="center">
michael@0 140 <label value="&setup.confirmPassword.label;"
michael@0 141 accesskey="&setup.confirmPassword.accesskey;"
michael@0 142 control="weavePasswordConfirm"/>
michael@0 143 <textbox id="weavePasswordConfirm"
michael@0 144 type="password"
michael@0 145 onchange="gSyncSetup.onPasswordChange()"/>
michael@0 146 </row>
michael@0 147 <row id="passwordFeedbackRow" align="center" hidden="true">
michael@0 148 <spacer/>
michael@0 149 <hbox>
michael@0 150 <image class="statusIcon"/>
michael@0 151 <label class="status" value=" "/>
michael@0 152 </hbox>
michael@0 153 </row>
michael@0 154 <row align="center">
michael@0 155 <label control="server"
michael@0 156 value="&server.label;"/>
michael@0 157 <menulist id="server"
michael@0 158 oncommand="gSyncSetup.onServerCommand()"
michael@0 159 oninput="gSyncSetup.onServerInput()">
michael@0 160 <menupopup>
michael@0 161 <menuitem label="&serverType.default.label;"
michael@0 162 value="main"/>
michael@0 163 <menuitem label="&serverType.custom2.label;"
michael@0 164 value="custom"/>
michael@0 165 </menupopup>
michael@0 166 </menulist>
michael@0 167 </row>
michael@0 168 <row id="serverFeedbackRow" align="center" hidden="true">
michael@0 169 <spacer/>
michael@0 170 <hbox>
michael@0 171 <image class="statusIcon"/>
michael@0 172 <label class="status" value=" "/>
michael@0 173 </hbox>
michael@0 174 </row>
michael@0 175 #ifdef XP_WIN
michael@0 176 #ifdef MOZ_METRO
michael@0 177 <row id="metroRow" align="center">
michael@0 178 <spacer/>
michael@0 179 <hbox align="center">
michael@0 180 <checkbox label="&setup.setupMetro.label;"
michael@0 181 accesskey="&setup.setupMetro.accesskey;"
michael@0 182 control="weavePasswordConfirm"
michael@0 183 id="metroSetupCheckbox"
michael@0 184 checked="true"/>
michael@0 185 </hbox>
michael@0 186 </row>
michael@0 187 #endif
michael@0 188 #endif
michael@0 189 <row id="TOSRow" align="center">
michael@0 190 <spacer/>
michael@0 191 <hbox align="center">
michael@0 192 <checkbox id="tos"
michael@0 193 accesskey="&setup.tosAgree1.accesskey;"
michael@0 194 oncommand="this.focus(); gSyncSetup.checkFields();"/>
michael@0 195 <description id="tosDesc"
michael@0 196 flex="1"
michael@0 197 onclick="document.getElementById('tos').focus();
michael@0 198 document.getElementById('tos').click()">
michael@0 199 &setup.tosAgree1.label;
michael@0 200 <label class="text-link inline-link"
michael@0 201 onclick="event.stopPropagation();gSyncUtils.openToS();">
michael@0 202 &setup.tosLink.label;
michael@0 203 </label>
michael@0 204 &setup.tosAgree2.label;
michael@0 205 <label class="text-link inline-link"
michael@0 206 onclick="event.stopPropagation();gSyncUtils.openPrivacyPolicy();">
michael@0 207 &setup.ppLink.label;
michael@0 208 </label>
michael@0 209 &setup.tosAgree3.label;
michael@0 210 </description>
michael@0 211 </hbox>
michael@0 212 </row>
michael@0 213 </rows>
michael@0 214 </grid>
michael@0 215 <spacer flex="1"/>
michael@0 216 <vbox flex="1" align="center">
michael@0 217 <browser height="150"
michael@0 218 width="500"
michael@0 219 id="captcha"
michael@0 220 type="content"
michael@0 221 disablehistory="true"/>
michael@0 222 <spacer flex="1"/>
michael@0 223 <hbox id="captchaFeedback">
michael@0 224 <image class="statusIcon"/>
michael@0 225 <label class="status" value=" "/>
michael@0 226 </hbox>
michael@0 227 </vbox>
michael@0 228 </wizardpage>
michael@0 229
michael@0 230 <wizardpage id="addDevice"
michael@0 231 label="&pairDevice.title.label;"
michael@0 232 onextra1="gSyncSetup.onSyncOptions()"
michael@0 233 onpageshow="gSyncSetup.onPageShow()">
michael@0 234 <description>
michael@0 235 &pairDevice.setup.description.label;
michael@0 236 <label class="text-link"
michael@0 237 value="&addDevice.showMeHow.label;"
michael@0 238 href="https://services.mozilla.com/sync/help/easy-setup"/>
michael@0 239 </description>
michael@0 240 <label value="&addDevice.setup.enterCode.label;"
michael@0 241 control="easySetupPIN1"/>
michael@0 242 <spacer flex="1"/>
michael@0 243 <vbox align="center" flex="1">
michael@0 244 <textbox id="easySetupPIN1"
michael@0 245 class="pin"
michael@0 246 value=""
michael@0 247 readonly="true"
michael@0 248 />
michael@0 249 <textbox id="easySetupPIN2"
michael@0 250 class="pin"
michael@0 251 value=""
michael@0 252 readonly="true"
michael@0 253 />
michael@0 254 <textbox id="easySetupPIN3"
michael@0 255 class="pin"
michael@0 256 value=""
michael@0 257 readonly="true"
michael@0 258 />
michael@0 259 </vbox>
michael@0 260 <spacer flex="3"/>
michael@0 261 <label class="text-link"
michael@0 262 value="&addDevice.dontHaveDevice.label;"
michael@0 263 onclick="gSyncSetup.manualSetup();"/>
michael@0 264 </wizardpage>
michael@0 265
michael@0 266 <wizardpage id="existingAccount"
michael@0 267 label="&setup.signInPage.title.label;"
michael@0 268 onextra1="gSyncSetup.onSyncOptions()"
michael@0 269 onpageshow="gSyncSetup.onPageShow()">
michael@0 270 <grid>
michael@0 271 <columns>
michael@0 272 <column/>
michael@0 273 <column class="inputColumn" flex="1"/>
michael@0 274 </columns>
michael@0 275 <rows>
michael@0 276 <row id="existingAccountRow" align="center">
michael@0 277 <label id="existingAccountLabel"
michael@0 278 value="&signIn.account2.label;"
michael@0 279 accesskey="&signIn.account2.accesskey;"
michael@0 280 control="existingAccount"/>
michael@0 281 <textbox id="existingAccountName"
michael@0 282 oninput="gSyncSetup.checkFields(event)"
michael@0 283 onchange="gSyncSetup.checkFields(event)"/>
michael@0 284 </row>
michael@0 285 <row id="existingPasswordRow" align="center">
michael@0 286 <label id="existingPasswordLabel"
michael@0 287 value="&signIn.password.label;"
michael@0 288 accesskey="&signIn.password.accesskey;"
michael@0 289 control="existingPassword"/>
michael@0 290 <textbox id="existingPassword"
michael@0 291 type="password"
michael@0 292 onkeyup="gSyncSetup.checkFields(event)"
michael@0 293 onchange="gSyncSetup.checkFields(event)"/>
michael@0 294 </row>
michael@0 295 <row id="existingPasswordFeedbackRow" align="center" hidden="true">
michael@0 296 <spacer/>
michael@0 297 <hbox>
michael@0 298 <image class="statusIcon"/>
michael@0 299 <label class="status" value=" "/>
michael@0 300 </hbox>
michael@0 301 </row>
michael@0 302 <row align="center">
michael@0 303 <spacer/>
michael@0 304 <label class="text-link"
michael@0 305 value="&resetPassword.label;"
michael@0 306 onclick="gSyncUtils.resetPassword(); return false;"/>
michael@0 307 </row>
michael@0 308 <row align="center">
michael@0 309 <label control="existingServer"
michael@0 310 value="&server.label;"/>
michael@0 311 <menulist id="existingServer"
michael@0 312 oncommand="gSyncSetup.onExistingServerCommand()"
michael@0 313 oninput="gSyncSetup.onExistingServerInput()">
michael@0 314 <menupopup>
michael@0 315 <menuitem label="&serverType.default.label;"
michael@0 316 value="main"/>
michael@0 317 <menuitem label="&serverType.custom2.label;"
michael@0 318 value="custom"/>
michael@0 319 </menupopup>
michael@0 320 </menulist>
michael@0 321 </row>
michael@0 322 <row id="existingServerFeedbackRow" align="center" hidden="true">
michael@0 323 <spacer/>
michael@0 324 <hbox>
michael@0 325 <image class="statusIcon"/>
michael@0 326 <vbox>
michael@0 327 <label class="status" value=" "/>
michael@0 328 </vbox>
michael@0 329 </hbox>
michael@0 330 </row>
michael@0 331 </rows>
michael@0 332 </grid>
michael@0 333
michael@0 334 <groupbox>
michael@0 335 <label id="existingPassphraseLabel"
michael@0 336 value="&signIn.recoveryKey.label;"
michael@0 337 accesskey="&signIn.recoveryKey.accesskey;"
michael@0 338 control="existingPassphrase"/>
michael@0 339 <textbox id="existingPassphrase"
michael@0 340 oninput="gSyncSetup.checkFields()"/>
michael@0 341 <hbox id="login-throbber" hidden="true">
michael@0 342 <image/>
michael@0 343 <label value="&verifying.label;"/>
michael@0 344 </hbox>
michael@0 345 <vbox align="left" id="existingPassphraseFeedbackRow" hidden="true">
michael@0 346 <hbox>
michael@0 347 <image class="statusIcon"/>
michael@0 348 <label class="status" value=" "/>
michael@0 349 </hbox>
michael@0 350 </vbox>
michael@0 351 </groupbox>
michael@0 352
michael@0 353 <vbox id="passphraseHelpBox">
michael@0 354 <description>
michael@0 355 &existingRecoveryKey.description;
michael@0 356 <label class="text-link"
michael@0 357 href="https://services.mozilla.com/sync/help/manual-setup">
michael@0 358 &addDevice.showMeHow.label;
michael@0 359 </label>
michael@0 360 <spacer id="passphraseHelpSpacer"/>
michael@0 361 <label class="text-link"
michael@0 362 onclick="gSyncSetup.resetPassphrase(); return false;">
michael@0 363 &resetSyncKey.label;
michael@0 364 </label>
michael@0 365 </description>
michael@0 366 </vbox>
michael@0 367 </wizardpage>
michael@0 368
michael@0 369 <wizardpage id="syncOptionsPage"
michael@0 370 label="&setup.optionsPage.title;"
michael@0 371 onpageshow="gSyncSetup.onPageShow()">
michael@0 372 <groupbox id="syncOptions">
michael@0 373 <grid>
michael@0 374 <columns>
michael@0 375 <column/>
michael@0 376 <column flex="1" style="-moz-margin-end: 2px"/>
michael@0 377 </columns>
michael@0 378 <rows>
michael@0 379 <row align="center">
michael@0 380 <label value="&syncDeviceName.label;"
michael@0 381 accesskey="&syncDeviceName.accesskey;"
michael@0 382 control="syncComputerName"/>
michael@0 383 <textbox id="syncComputerName" flex="1"
michael@0 384 onchange="gSyncUtils.changeName(this)"/>
michael@0 385 </row>
michael@0 386 <row>
michael@0 387 <label value="&syncMy.label;" />
michael@0 388 <vbox>
michael@0 389 <checkbox label="&engine.addons.label;"
michael@0 390 accesskey="&engine.addons.accesskey;"
michael@0 391 id="engine.addons"
michael@0 392 checked="true"/>
michael@0 393 <checkbox label="&engine.bookmarks.label;"
michael@0 394 accesskey="&engine.bookmarks.accesskey;"
michael@0 395 id="engine.bookmarks"
michael@0 396 checked="true"/>
michael@0 397 <checkbox label="&engine.passwords.label;"
michael@0 398 accesskey="&engine.passwords.accesskey;"
michael@0 399 id="engine.passwords"
michael@0 400 checked="true"/>
michael@0 401 <checkbox label="&engine.prefs.label;"
michael@0 402 accesskey="&engine.prefs.accesskey;"
michael@0 403 id="engine.prefs"
michael@0 404 checked="true"/>
michael@0 405 <checkbox label="&engine.history.label;"
michael@0 406 accesskey="&engine.history.accesskey;"
michael@0 407 id="engine.history"
michael@0 408 checked="true"/>
michael@0 409 <checkbox label="&engine.tabs.label;"
michael@0 410 accesskey="&engine.tabs.accesskey;"
michael@0 411 id="engine.tabs"
michael@0 412 checked="true"/>
michael@0 413 </vbox>
michael@0 414 </row>
michael@0 415 </rows>
michael@0 416 </grid>
michael@0 417 </groupbox>
michael@0 418
michael@0 419 <groupbox id="mergeOptions">
michael@0 420 <radiogroup id="mergeChoiceRadio" pack="start">
michael@0 421 <grid>
michael@0 422 <columns>
michael@0 423 <column/>
michael@0 424 <column flex="1"/>
michael@0 425 </columns>
michael@0 426 <rows flex="1">
michael@0 427 <row align="center">
michael@0 428 <radio id="resetClient"
michael@0 429 class="mergeChoiceButton"
michael@0 430 aria-labelledby="resetClientLabel"/>
michael@0 431 <label id="resetClientLabel" control="resetClient">
michael@0 432 <html:strong>&choice2.merge.recommended.label;</html:strong>
michael@0 433 &choice2a.merge.main.label;
michael@0 434 </label>
michael@0 435 </row>
michael@0 436 <row align="center">
michael@0 437 <radio id="wipeClient"
michael@0 438 class="mergeChoiceButton"
michael@0 439 aria-labelledby="wipeClientLabel"/>
michael@0 440 <label id="wipeClientLabel"
michael@0 441 control="wipeClient">
michael@0 442 &choice2a.client.main.label;
michael@0 443 </label>
michael@0 444 </row>
michael@0 445 <row align="center">
michael@0 446 <radio id="wipeRemote"
michael@0 447 class="mergeChoiceButton"
michael@0 448 aria-labelledby="wipeRemoteLabel"/>
michael@0 449 <label id="wipeRemoteLabel"
michael@0 450 control="wipeRemote">
michael@0 451 &choice2a.server.main.label;
michael@0 452 </label>
michael@0 453 </row>
michael@0 454 </rows>
michael@0 455 </grid>
michael@0 456 </radiogroup>
michael@0 457 </groupbox>
michael@0 458 </wizardpage>
michael@0 459
michael@0 460 <wizardpage id="syncOptionsConfirm"
michael@0 461 label="&setup.optionsConfirmPage.title;"
michael@0 462 onpageshow="gSyncSetup.onPageShow()">
michael@0 463 <deck id="chosenActionDeck">
michael@0 464 <vbox id="chosenActionMerge" class="confirm">
michael@0 465 <description class="normal">
michael@0 466 &confirm.merge2.label;
michael@0 467 </description>
michael@0 468 </vbox>
michael@0 469 <vbox id="chosenActionWipeClient" class="confirm">
michael@0 470 <description class="normal">
michael@0 471 &confirm.client3.label;
michael@0 472 </description>
michael@0 473 <separator class="thin"/>
michael@0 474 <vbox id="dataList">
michael@0 475 <label class="data indent" id="bookmarkCount"/>
michael@0 476 <label class="data indent" id="historyCount"/>
michael@0 477 <label class="data indent" id="passwordCount"/>
michael@0 478 <label class="data indent" id="addonCount"/>
michael@0 479 <label class="data indent" id="prefsWipe"
michael@0 480 value="&engine.prefs.label;"/>
michael@0 481 </vbox>
michael@0 482 <separator class="thin"/>
michael@0 483 <description class="normal">
michael@0 484 &confirm.client2.moreinfo.label;
michael@0 485 </description>
michael@0 486 </vbox>
michael@0 487 <vbox id="chosenActionWipeServer" class="confirm">
michael@0 488 <description class="normal">
michael@0 489 &confirm.server2.label;
michael@0 490 </description>
michael@0 491 <separator class="thin"/>
michael@0 492 <vbox id="clientList">
michael@0 493 </vbox>
michael@0 494 </vbox>
michael@0 495 </deck>
michael@0 496 </wizardpage>
michael@0 497 <!-- In terms of the wizard flow shown to the user, the 'syncOptionsConfirm'
michael@0 498 page above is not the last wizard page. To prevent the wizard binding from
michael@0 499 assuming that it is, we're inserting this dummy page here. This also means
michael@0 500 that the wizard needs to always be closed manually via wizardFinish(). -->
michael@0 501 <wizardpage>
michael@0 502 </wizardpage>
michael@0 503 </wizard>
michael@0 504

mercurial