зеркало из https://github.com/mozilla/pjs.git
Bug 383589 - Make ChatZilla support Netscape 9
p=rdmsoft@bugs.rdmsoft.com (Rob Marshall) r=gijskruitbosch@gmail.com (Gijs Kruitbosch) ChatZilla Only (NPOTB).
This commit is contained in:
Родитель
8731b1a725
Коммит
08c8e76b6d
|
@ -14,7 +14,7 @@
|
|||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<!-- target: Mozilla Firefox, version 1.0 to 3.0a2 -->
|
||||
<!-- target: Mozilla Firefox, version 1.0 to 3.0 -->
|
||||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
|
||||
|
@ -23,16 +23,16 @@
|
|||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<!-- target: SeaMonkey, version 1.0 to 1.5a -->
|
||||
<!-- target: SeaMonkey, version 1.0 to 2.0 -->
|
||||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
|
||||
<em:minVersion>1.0</em:minVersion>
|
||||
<em:maxVersion>1.5a</em:maxVersion>
|
||||
<em:maxVersion>2.0</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<!-- target: Flock, version 0.4 - 1.0+ -->
|
||||
<!-- target: Flock, version 0.4 to 1.0+ -->
|
||||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{a463f10c-3994-11da-9945-000d60ca027b}</em:id>
|
||||
|
@ -41,6 +41,15 @@
|
|||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<!-- target: Netscape Navigator, version 9.0b1 to 9.0.* -->
|
||||
<em:targetApplication>
|
||||
<Description>
|
||||
<em:id>{3db10fab-e461-4c80-8b97-957ad5f8ea47}</em:id>
|
||||
<em:minVersion>9.0b1</em:minVersion>
|
||||
<em:maxVersion>9.0.*</em:maxVersion>
|
||||
</Description>
|
||||
</em:targetApplication>
|
||||
|
||||
<!-- front-end metadata -->
|
||||
<em:name>ChatZilla</em:name>
|
||||
<em:description>A clean, easy to use and highly extensible Internet Relay Chat (IRC) client.</em:description>
|
||||
|
|
|
@ -428,6 +428,9 @@ function initApplicationCompatibility()
|
|||
case "{a463f10c-3994-11da-9945-000d60ca027b}": // Flock
|
||||
client.host = "Flock";
|
||||
break;
|
||||
case "{3db10fab-e461-4c80-8b97-957ad5f8ea47}": // Netscape
|
||||
client.host = "Netscape";
|
||||
break;
|
||||
default:
|
||||
client.unknownUID = app.ID;
|
||||
client.host = ""; // Unknown host, show an error later.
|
||||
|
@ -2125,10 +2128,10 @@ function initOfflineIcon()
|
|||
"nsIPrefBranch");
|
||||
// Let the app-specific hacks begin:
|
||||
try {
|
||||
if ((client.host == "Firefox") || (client.host == "Flock"))
|
||||
isOffline = prefSvc.getBoolPref("browser.offline");
|
||||
else if (client.host == "XULrunner")
|
||||
if (client.host == "XULrunner")
|
||||
isOffline = !prefSvc.getBoolPref("network.online");
|
||||
else // Toolkit based, but not standalone
|
||||
isOffline = prefSvc.getBoolPref("browser.offline");
|
||||
}
|
||||
catch (ex) { /* Whatever. */ }
|
||||
|
||||
|
@ -2146,10 +2149,10 @@ function initOfflineIcon()
|
|||
"nsIPrefBranch");
|
||||
// Let the app-specific hacks begin:
|
||||
try {
|
||||
if ((client.host == "Firefox") || (client.host == "Flock"))
|
||||
prefSvc.setBoolPref("browser.offline", isOffline);
|
||||
else if (client.host == "XULrunner")
|
||||
if (client.host == "XULrunner")
|
||||
prefSvc.setBoolPref("network.online", !isOffline);
|
||||
else // Toolkit based, but not standalone
|
||||
prefSvc.setBoolPref("browser.offline", isOffline);
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче