Disabling the crash reporter no longer works.

NEW
Unassigned

Status

()

Toolkit
Crash Reporting
2 years ago
2 years ago

People

(Reporter: mkaply, Unassigned)

Tracking

({regression})

Trunk
regression
Points:
---

Firefox Tracking Flags

(firefox45 affected)

Details

(Reporter)

Description

2 years ago
In the past, you could do something like this:

Cc["@mozilla.org/toolkit/crash-reporter;1"].
          getService(Ci.nsICrashReporter).enabled = false;

to disable the crash reporter. This is no longer working.

If you alert .enabled after setting it to false, it's still true.
(Reporter)

Comment 3

2 years ago
Apparently this was removed on purpose.

Only way to turn off the crash reporter is:

MOZ_CRASHREPORTER_DISABLE=1

Comment 4

2 years ago
This problem still exist on Firefox 45ESR and Nightly 49.0a1.

Updated

2 years ago
Keywords: regression

Comment 5

2 years ago
Steps to reproduce:

1. Disable crash reporter by various method.
2. Open Scratchpad and run following scripts in the Browser context.
----------------------------------------------
(function(){
Components.utils.import('resource://gre/modules/ctypes.jsm');
var library = ctypes.open(ctypes.libraryName('nss3'));
var PR_Free = library.declare(
  'PR_Free',
  ctypes.default_abi,
  ctypes.void_t,
  ctypes.voidptr_t
);
var ptr = new ctypes.voidptr_t(1);
PR_Free(ptr);
})();
----------------------------------------------

Actual result:
The crash reporter appears.

Expected result:
The crash is not handled by the crash reporter provided by Firefox itself.


All following methods to disable crash reporter did not work:

 * Unchecking "Advanced" => "Data Choices" => "Enable Crash Reporter"
 * Setting "SubmitCrashReport" (DWORD) to "0" in:
   - "HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Crash Reporter"
   - "HKEY_LOCAL_MACHINE\Software\Wow6432Node\Mozilla\Firefox\Crash Reporter"
   - "HKEY_CURRENT_USER\Software\Mozilla\Firefox\Crash Reporter"
   - "HKEY_CURRENT_USER\Software\Wow6432Node\Mozilla\Firefox\Crash Reporter"

Comment 6

2 years ago
Or, should the checkbox be removed from the option page?

Comment 7

2 years ago
In eu-US locale, the checkbox says: "Enable Crash Reporter: Firefox submits crash reports to help Mozilla make your browser more stable and secure"
However, actually it does not enable/disable the crash reporter itself and the "submit" checkbox in the crash reporter, on Windows.
The checkbox completely does nothing anymore.
(Reporter)

Comment 8

2 years ago
Ted's on vacation right now, but I think he is the right person to help us figure this out.

At the bare minimum, the wording of the checkbox needs to be changed, because it doesn't turn the crash reporter on and off.
You need to log in before you can comment on or make changes to this bug.