зеркало из https://github.com/mozilla/pjs.git
Bug 231534 - Catch errors when using XMLHttpRequest and survive them.
Bump version to 0.9.82. r=rginda@hacksrus.com
This commit is contained in:
Родитель
8fb968cef2
Коммит
123a6f4ca6
|
@ -37,7 +37,7 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
const __vnk_version = "0.9.81";
|
const __vnk_version = "0.9.82";
|
||||||
const __vnk_requiredLocale = "0.9.81";
|
const __vnk_requiredLocale = "0.9.81";
|
||||||
var __vnk_versionSuffix = "";
|
var __vnk_versionSuffix = "";
|
||||||
|
|
||||||
|
@ -652,12 +652,22 @@ function fetchLaunchCount()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var r = new XMLHttpRequest();
|
var r = new XMLHttpRequest();
|
||||||
r.onload = onLoad;
|
r.onload = onLoad;
|
||||||
r.open ("GET",
|
r.open ("GET",
|
||||||
__vnk_counter_url + "?local=" + console.prefs["startupCount"] +
|
__vnk_counter_url + "?local=" + console.prefs["startupCount"] +
|
||||||
"&version=" + __vnk_version);
|
"&version=" + __vnk_version);
|
||||||
r.send (null);
|
r.send (null);
|
||||||
|
}
|
||||||
|
catch (ex)
|
||||||
|
{
|
||||||
|
// Oops. Probably missing the xmlextras extension, can't really do
|
||||||
|
// much about that.
|
||||||
|
display(getMsg(MSN_LAUNCH_COUNT,
|
||||||
|
[console.prefs["startupCount"], MSG_VAL_UNKNOWN]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.__defineGetter__ ("userAgent", con_ua);
|
console.__defineGetter__ ("userAgent", con_ua);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче