mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Remove MOZ_CRASHREPORTER_NO_REPORT except in /testing
This commit is contained in:
parent
434f3590e3
commit
013cb18fed
11 changed files with 2 additions and 51 deletions
|
|
@ -83,21 +83,10 @@ function onPluginCrashed(aEvent) {
|
|||
getService(Components.interfaces.nsIObserverService);
|
||||
os.removeObserver(testObserver, "plugin-crashed");
|
||||
|
||||
// re-set MOZ_CRASHREPORTER_NO_REPORT
|
||||
let env = Components.classes["@mozilla.org/process/environment;1"]
|
||||
.getService(Components.interfaces.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
function runTests() {
|
||||
// the test harness will have set MOZ_CRASHREPORTER_NO_REPORT,
|
||||
// ensure that we can change the setting and have our minidumps
|
||||
// wind up in Crash Reports/pending
|
||||
let env = Components.classes["@mozilla.org/process/environment;1"]
|
||||
.getService(Components.interfaces.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "");
|
||||
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"].
|
||||
getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(testObserver, "plugin-crashed", true);
|
||||
|
|
|
|||
|
|
@ -70,11 +70,6 @@ var testObserver = {
|
|||
getService(Components.interfaces.nsIObserverService);
|
||||
os.removeObserver(testObserver, "crash-report-status");
|
||||
|
||||
// Then re-set MOZ_CRASHREPORTER_NO_REPORT
|
||||
let env = Components.classes["@mozilla.org/process/environment;1"]
|
||||
.getService(Components.interfaces.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
|
||||
// Finally re-set crashreporter URL
|
||||
crashReporter.serverURL = oldServerURL;
|
||||
|
||||
|
|
@ -123,13 +118,6 @@ function onPluginCrashed(aEvent) {
|
|||
}
|
||||
|
||||
function runTests() {
|
||||
// the test harness will have set MOZ_CRASHREPORTER_NO_REPORT,
|
||||
// ensure that we can change the setting and have our minidumps
|
||||
// wind up in Crash Reports/pending
|
||||
let env = Components.classes["@mozilla.org/process/environment;1"]
|
||||
.getService(Components.interfaces.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "");
|
||||
|
||||
// Override the crash reporter URL to send to our fake server
|
||||
crashReporter.serverURL = NetUtil.newURI(SERVER_URL);
|
||||
|
||||
|
|
|
|||
|
|
@ -78,10 +78,6 @@ var testObserver = {
|
|||
// Next unregister our observer
|
||||
Services.obs.removeObserver(testObserver, "crash-report-status");
|
||||
|
||||
// Then re-set MOZ_CRASHREPORTER_NO_REPORT
|
||||
let env = Cc["@mozilla.org/process/environment;1"].getService(Ci.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
|
||||
// Finally re-set prefs
|
||||
crashReporter.serverURL = oldServerURL;
|
||||
Services.prefs.setIntPref("dom.ipc.plugins.timeoutSecs", oldTimeoutPref);
|
||||
|
|
@ -133,13 +129,6 @@ function runTests() {
|
|||
// Default plugin hang timeout is too high for mochitests
|
||||
Services.prefs.setIntPref("dom.ipc.plugins.timeoutSecs", 1);
|
||||
|
||||
// the test harness will have set MOZ_CRASHREPORTER_NO_REPORT,
|
||||
// ensure that we can change the setting and have our minidumps
|
||||
// wind up in Crash Reports/pending
|
||||
let env = Cc["@mozilla.org/process/environment;1"]
|
||||
.getService(Ci.nsIEnvironment);
|
||||
env.set("MOZ_CRASHREPORTER_NO_REPORT", "");
|
||||
|
||||
// Override the crash reporter URL to send to our fake server
|
||||
crashReporter.serverURL = NetUtil.newURI(SERVER_URL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue