Bug 1352331 - Swap the cancel and save buttons on edit profile dialog for Windows. r=lchang
authorScott Wu <scottcwwu@gmail.com>
Tue, 18 Apr 2017 17:42:03 +0800
changeset 354028 3864467a616c7ac6e4801b8860ec38177f0d09f7
parent 354027 368a60db302d15951ca884732014f947dacadf4a
child 354029 27507fdcbacd80ebe2eacb8ce3d8039e93a0e05b
push id31685
push userkwierso@gmail.com
push dateThu, 20 Apr 2017 21:45:29 +0000
treeherdermozilla-central@5e3dc7e1288a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslchang
bugs1352331
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1352331 - Swap the cancel and save buttons on edit profile dialog for Windows. r=lchang MozReview-Commit-ID: I3kvKClOIIO
browser/extensions/formautofill/content/editProfile.css
browser/extensions/formautofill/content/editProfile.xhtml
browser/extensions/formautofill/skin/linux/editProfile.css
browser/extensions/formautofill/skin/osx/editProfile.css
browser/extensions/formautofill/skin/shared/editProfile.css
browser/extensions/formautofill/skin/windows/editProfile.css
--- a/browser/extensions/formautofill/content/editProfile.xhtml
+++ b/browser/extensions/formautofill/content/editProfile.xhtml
@@ -5,17 +5,18 @@
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <title>Profile Autofill - Edit Profile</title>
   <!-- common.css and dialog.css need to be included until this file can be
      - loaded as a stacked subdialog. -->
   <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" />
   <link rel="stylesheet" href="chrome://browser/skin/preferences/in-content/dialog.css" />
-  <link rel="stylesheet" href="chrome://formautofill/content/editProfile.css" />
+  <link rel="stylesheet" href="chrome://formautofill-shared/skin/editProfile.css" />
+  <link rel="stylesheet" href="chrome://formautofill/skin/editProfile.css" />
   <script src="chrome://formautofill/content/editProfile.js"></script>
 </head>
 <body>
   <form>
     <label id="first-name-container">
       <span>First Name</span>
       <input id="first-name" type="text"/>
     </label>
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/linux/editProfile.css
@@ -0,0 +1,5 @@
+/* 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/. */
+
+/* Linux specific rules */
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/osx/editProfile.css
@@ -0,0 +1,5 @@
+/* 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/. */
+
+/* OSX specific rules */
rename from browser/extensions/formautofill/content/editProfile.css
rename to browser/extensions/formautofill/skin/shared/editProfile.css
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/windows/editProfile.css
@@ -0,0 +1,12 @@
+/* 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/. */
+
+/* The save button should be on the left and cancel on the right for Windows */
+#save {
+  order: 0;
+}
+
+#cancel {
+  order: 1;
+}