mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
da65e3a121
commit
282fcc9c33
@ -37,7 +37,7 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
const __vnk_version = "0.9.81";
|
||||
const __vnk_version = "0.9.82";
|
||||
const __vnk_requiredLocale = "0.9.81";
|
||||
var __vnk_versionSuffix = "";
|
||||
|
||||
@ -652,12 +652,22 @@ function fetchLaunchCount()
|
||||
}
|
||||
};
|
||||
|
||||
var r = new XMLHttpRequest();
|
||||
r.onload = onLoad;
|
||||
r.open ("GET",
|
||||
__vnk_counter_url + "?local=" + console.prefs["startupCount"] +
|
||||
"&version=" + __vnk_version);
|
||||
r.send (null);
|
||||
try
|
||||
{
|
||||
var r = new XMLHttpRequest();
|
||||
r.onload = onLoad;
|
||||
r.open ("GET",
|
||||
__vnk_counter_url + "?local=" + console.prefs["startupCount"] +
|
||||
"&version=" + __vnk_version);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user