mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 791244 - undo the pref for the temporary hang server for nightly/aurora, now that Socorro has the data in its API, r=gfritzsche
--HG-- extra : rebase_source : 14d923b9b21a07e43826bd2009588ad57f120655
This commit is contained in:
parent
31aa00cde8
commit
3fb086f00f
@ -1131,13 +1131,6 @@ pref("browser.zoom.updateBackgroundTabs", true);
|
||||
// The breakpad report server to link to in about:crashes
|
||||
pref("breakpad.reportURL", "https://crash-stats.mozilla.com/report/index/");
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
// Override submission of plugin hang reports to a different processing server
|
||||
// for the smaller-volume nightly/aurora populations.
|
||||
pref("toolkit.crashreporter.pluginHangSubmitURL",
|
||||
"https://hang-reports.mozilla.org/submit");
|
||||
#endif
|
||||
|
||||
// URL for "Learn More" for Crash Reporter
|
||||
pref("toolkit.crashreporter.infoURL",
|
||||
"https://www.mozilla.org/legal/privacy/firefox.html#crash-reporter");
|
||||
|
@ -30,14 +30,7 @@ const Ci = Components.interfaces;
|
||||
const crashReporter = Cc["@mozilla.org/toolkit/crash-reporter;1"].getService(Ci.nsICrashReporter);
|
||||
const SERVER_URL = "http://example.com/browser/toolkit/crashreporter/test/browser/crashreport.sjs";
|
||||
|
||||
const serverPrefName = "toolkit.crashreporter.pluginHangSubmitURL";
|
||||
|
||||
var oldServerPref;
|
||||
try {
|
||||
oldServerPref = Services.prefs.getCharPref(serverPrefName);
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
var oldServerURL = crashReporter.serverURL;
|
||||
|
||||
const oldTimeoutPref = Services.prefs.getIntPref("dom.ipc.plugins.timeoutSecs");
|
||||
|
||||
@ -90,12 +83,7 @@ var testObserver = {
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
|
||||
// Finally re-set prefs
|
||||
if (oldServerPref === undefined) {
|
||||
Services.prefs.clearUserPref(serverPrefName);
|
||||
}
|
||||
else {
|
||||
Services.prefs.setCharPref(serverPrefName, oldServerPref);
|
||||
}
|
||||
crashReporter.serverURL = oldServerURL;
|
||||
Services.prefs.setIntPref("dom.ipc.plugins.timeoutSecs", oldTimeoutPref);
|
||||
|
||||
// Check and cleanup CrashManager.
|
||||
@ -159,7 +147,7 @@ function runTests() {
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "");
|
||||
|
||||
// Override the crash reporter URL to send to our fake server
|
||||
Services.prefs.setCharPref("toolkit.crashreporter.pluginHangSubmitURL", SERVER_URL);
|
||||
crashReporter.serverURL = NetUtil.newURI(SERVER_URL);
|
||||
|
||||
// Hook into plugin crash events
|
||||
Services.obs.addObserver(testObserver, "crash-report-status", true);
|
||||
|
@ -254,19 +254,13 @@ Submitter.prototype = {
|
||||
}
|
||||
let serverURL = this.extraKeyVals.ServerURL;
|
||||
|
||||
// Override the submission URL from the environment or prefs.
|
||||
// Override the submission URL from the environment
|
||||
|
||||
var envOverride = Cc['@mozilla.org/process/environment;1'].
|
||||
getService(Ci.nsIEnvironment).get("MOZ_CRASHREPORTER_URL");
|
||||
if (envOverride != '') {
|
||||
serverURL = envOverride;
|
||||
}
|
||||
else if ('PluginHang' in this.extraKeyVals) {
|
||||
try {
|
||||
serverURL = Services.prefs.
|
||||
getCharPref("toolkit.crashreporter.pluginHangSubmitURL");
|
||||
} catch(e) { }
|
||||
}
|
||||
|
||||
let xhr = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
|
||||
.createInstance(Ci.nsIXMLHttpRequest);
|
||||
|
Loading…
Reference in New Issue
Block a user