From 7b50d97cf8ada52c9d62549f3810eb83148e6111 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Tue, 16 Apr 2013 17:39:47 -0700 Subject: [PATCH] Bug 862125 - Properly quote addon id when passing string to querySelector. r=bnicholson --- mobile/android/chrome/content/aboutAddons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/chrome/content/aboutAddons.js b/mobile/android/chrome/content/aboutAddons.js index c0f055c066a2..7da74aa5a3ec 100644 --- a/mobile/android/chrome/content/aboutAddons.js +++ b/mobile/android/chrome/content/aboutAddons.js @@ -221,7 +221,7 @@ var Addons = { _getElementForAddon: function(aKey) { let list = document.getElementById("addons-list"); - let element = list.querySelector("div[addonID='" + aKey + "']"); + let element = list.querySelector("div[addonID=" + aKey.quote() + "]"); return element; },