зеркало из https://github.com/mozilla/pjs.git
Bug 424506 � "XULRunner" incorrectly capitalised
p=mitch_1_2@live.com.au (Mitch) r=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch) a=ChatZilla Only, NPOTDB.
This commit is contained in:
Родитель
0eda1ee1e1
Коммит
22839bd1f2
|
@ -2303,7 +2303,7 @@ function cmdGotoURL(e)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((e.command.name == "goto-url-external") || (client.host == "XULrunner"))
|
||||
if ((e.command.name == "goto-url-external") || (client.host == "XULRunner"))
|
||||
{
|
||||
const extProtoSvc = getService(EXT_PROTO_SVC,
|
||||
"nsIExternalProtocolService");
|
||||
|
|
|
@ -113,7 +113,7 @@ function initMenus()
|
|||
var Mozilla = "(client.host == 'Mozilla')";
|
||||
var NotMozilla = "(client.host != 'Mozilla')";
|
||||
var Toolkit = NotMozilla;
|
||||
var XULRunner = "(client.host == 'XULrunner')";
|
||||
var XULRunner = "(client.host == 'XULRunner')";
|
||||
|
||||
// Useful combinations
|
||||
var ToolkitOnLinux = "(" + Toolkit + " and " + Linux + ")";
|
||||
|
@ -471,7 +471,7 @@ function createMenus()
|
|||
comBar.collapsed = false;
|
||||
}
|
||||
|
||||
if (client.host == "XULrunner")
|
||||
if (client.host == "XULRunner")
|
||||
{
|
||||
// This is a hack to work around Gecko bug 98997, which means that
|
||||
// :empty causes menus to be hidden until we force a reflow.
|
||||
|
|
|
@ -87,7 +87,7 @@ function initPrefs()
|
|||
|
||||
var gotos = ["goto-url", "goto-url-newwin",
|
||||
"goto-url-newtab", "goto-url-newtab"];
|
||||
if (client.host == "XULrunner")
|
||||
if (client.host == "XULRunner")
|
||||
{
|
||||
gotos = ["goto-url-external", "goto-url-external",
|
||||
"goto-url-external", "goto-url-external"];
|
||||
|
|
|
@ -310,7 +310,7 @@ function initStatic()
|
|||
// Use the XUL host app info, and Gecko build ID.
|
||||
if (app.ID == "{" + __cz_guid + "}")
|
||||
{
|
||||
// We ARE the app, in other words, we're running in XULrunner.
|
||||
// We ARE the app, in other words, we're running in XULRunner.
|
||||
// Because of this, we must disregard app.(name|vendor|version).
|
||||
// "XULRunner 1.7+/2005071506"
|
||||
ua = "XULRunner " + app.platformVersion + "/" + app.platformBuildID;
|
||||
|
@ -428,8 +428,8 @@ function initApplicationCompatibility()
|
|||
client.host = "Firefox";
|
||||
break;
|
||||
case "{" + __cz_guid + "}":
|
||||
// We ARE the app, in other words, we're running in XULrunner.
|
||||
client.host = "XULrunner";
|
||||
// We ARE the app, in other words, we're running in XULRunner.
|
||||
client.host = "XULRunner";
|
||||
break;
|
||||
case "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}": // SeaMonkey
|
||||
client.host = "Mozilla";
|
||||
|
@ -2058,7 +2058,7 @@ function initOfflineIcon()
|
|||
"nsIPrefBranch");
|
||||
// Let the app-specific hacks begin:
|
||||
try {
|
||||
if (client.host == "XULrunner")
|
||||
if (client.host == "XULRunner")
|
||||
isOffline = !prefSvc.getBoolPref("network.online");
|
||||
else // Toolkit based, but not standalone
|
||||
isOffline = prefSvc.getBoolPref("browser.offline");
|
||||
|
@ -2079,7 +2079,7 @@ function initOfflineIcon()
|
|||
"nsIPrefBranch");
|
||||
// Let the app-specific hacks begin:
|
||||
try {
|
||||
if (client.host == "XULrunner")
|
||||
if (client.host == "XULRunner")
|
||||
prefSvc.setBoolPref("network.online", !isOffline);
|
||||
else // Toolkit based, but not standalone
|
||||
prefSvc.setBoolPref("browser.offline", isOffline);
|
||||
|
|
Загрузка…
Ссылка в новой задаче