bug 427353: Can't show recommended add-ons and use search functions in Korean addon manager. r=robstrong, a=beltzner

This commit is contained in:
dtownsend@oxymoronical.com 2008-04-09 12:47:49 -07:00
parent c83a1ecbc1
commit 8e7b8aaf5b
4 changed files with 27 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const PREF_GETADDONS_GETSEARCHRESULTS = "extensions.getAddons.search.url";
const XMLURI_PARSE_ERROR = "http://www.mozilla.org/newlayout/xml/parsererror.xml";
const API_VERSION = "1";
const API_VERSION = "1.1";
function AddonSearchResult() {
}
@ -242,10 +242,10 @@ AddonRepository.prototype = {
return;
var vc = Cc["@mozilla.org/xpcom/version-comparator;1"].
getService(Ci.nsIVersionComparator);
var apps = tags[0].getElementsByTagName("name");
var apps = tags[0].getElementsByTagName("appID");
var i = 0;
while (i < apps.length) {
if (apps[i].textContent.toLowerCase() == app.name.toLowerCase()) {
if (apps[i].textContent == app.ID) {
var minversion = apps[i].parentNode.getElementsByTagName("min_version")[0].textContent;
var maxversion = apps[i].parentNode.getElementsByTagName("max_version")[0].textContent;
if ((vc.compare(minversion, app.version) > 0) ||

View File

@ -10,6 +10,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -29,6 +30,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
@ -47,6 +49,7 @@
<compatible_applications>
<application>
<name>Firefox</name>
<appID>unknown@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
@ -66,6 +69,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -86,6 +90,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -105,6 +110,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -123,6 +129,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -146,6 +153,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>

View File

@ -10,6 +10,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -28,6 +29,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
@ -45,6 +47,7 @@
<compatible_applications>
<application>
<name>Firefox</name>
<appID>unknown@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
@ -63,6 +66,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -82,6 +86,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -100,6 +105,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -117,6 +123,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -139,6 +146,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>

View File

@ -11,6 +11,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -31,6 +32,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -51,6 +53,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -71,6 +74,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -91,6 +95,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -111,6 +116,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -131,6 +137,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
@ -151,6 +158,7 @@
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>