Bug 1352331 - Swap the cancel and save buttons on edit profile dialog for Windows. r=lchang
MozReview-Commit-ID: I3kvKClOIIO
--- 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;
+}