Bug 1103181 - Remove quote() from about:addons/config on android/metro. r=rnewman

This commit is contained in:
Tom Schuster 2014-12-05 11:07:15 -08:00
parent f471ef740b
commit 493940680e
3 changed files with 5 additions and 5 deletions

View File

@ -86,7 +86,7 @@ var NewPrefDialog = {
}
// If item already in list, it's being changed, else added
let item = document.querySelector(".pref-item[name=" + aPrefName.quote() + "]");
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(aPrefName) + "\"]");
if (item) {
this._positiveButton.textContent = gStringBundle.GetStringFromName("newPref.changeButton");
} else {
@ -463,7 +463,7 @@ var AboutConfig = {
}
// If pref not already in list, refresh display as it's being added
let item = document.querySelector(".pref-item[name=" + pref.name.quote() + "]");
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(pref.name) + "\"]");
if (!item) {
document.location.reload();
return;

View File

@ -238,7 +238,7 @@ var Addons = {
_getElementForAddon: function(aKey) {
let list = document.getElementById("addons-list");
let element = list.querySelector("div[addonID=" + aKey.quote() + "]");
let element = list.querySelector("div[addonID=\"" + CSS.escape(aKey) + "\"]");
return element;
},

View File

@ -87,7 +87,7 @@ var NewPrefDialog = {
}
// If item already in list, it's being changed, else added
let item = document.querySelector(".pref-item[name=" + aPrefName.quote() + "]");
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(aPrefName) + "\"]");
if (item) {
this._positiveButton.textContent = gStringBundle.GetStringFromName("newPref.changeButton");
} else {
@ -472,7 +472,7 @@ var AboutConfig = {
}
// If pref not already in list, refresh display as it's being added
let item = document.querySelector(".pref-item[name=" + pref.name.quote() + "]");
let item = document.querySelector(".pref-item[name=\"" + CSS.escape(pref.name) + "\"]");
if (!item) {
document.location.reload();
return;