Skip to content

Update Firefox support for Crash Reporting API#29782

Open
KirtiRamchandani wants to merge 3 commits into
mdn:mainfrom
KirtiRamchandani:data/crash-reporting-firefox152
Open

Update Firefox support for Crash Reporting API#29782
KirtiRamchandani wants to merge 3 commits into
mdn:mainfrom
KirtiRamchandani:data/crash-reporting-firefox152

Conversation

@KirtiRamchandani

Copy link
Copy Markdown

Problem

Firefox 152 enables the Crash Reporting API in Nightly builds via dom.reporting.crash.enabled, but BCD still listed the CrashReportContext storage APIs as unsupported in Firefox.

Root cause

The Gecko change only flips the Crash Reporting API preference for Nightly builds, so the existing Chromium-only data needed Firefox support entries behind that preference.

Solution

Update Firefox support for:

  • api.CrashReportContext
  • api.CrashReportContext.delete
  • api.CrashReportContext.initialize
  • api.CrashReportContext.set
  • api.Window.crashReport

Each entry is marked as added in Firefox 152 behind dom.reporting.crash.enabled.

Tests

  • npx --yes npm@11.12.1 --prefix C:\Users\kirti\Documents\PRs\browser-compat-data run lint -- api/CrashReportContext.json api/Window.json
  • C:\Users\kirti\Documents\PRs\browser-compat-data\node_modules\.bin\prettier.cmd --check C:\Users\kirti\Documents\PRs\browser-compat-data\api\CrashReportContext.json C:\Users\kirti\Documents\PRs\browser-compat-data\api\Window.json
  • node -e "const fs=require('fs'); for (const f of ['C:/Users/kirti/Documents/PRs/browser-compat-data/api/CrashReportContext.json','C:/Users/kirti/Documents/PRs/browser-compat-data/api/Window.json']) JSON.parse(fs.readFileSync(f,'utf8')); console.log('JSON OK')"
  • git diff --check

References

@github-actions github-actions Bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Comment thread api/CrashReportContext.json Outdated
Comment thread api/CrashReportContext.json Outdated
Comment thread api/CrashReportContext.json Outdated
Comment thread api/Window.json Outdated
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@github-actions github-actions Bot added size:s [PR only] 7-24 LoC changed and removed size:m [PR only] 25-100 LoC changed labels Jun 1, 2026
Comment thread api/CrashReportContext.json Outdated
@hamishwillee

hamishwillee commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

I am not sure about this (yet).
The window.crashReport and CrashReportContext don't appear in the console.
Also, how can the reporting endpoint which is already reported as working in FF130 be correct if reporting API is only added now https://github.com/mdn/browser-compat-data/blob/main/http/headers/Reporting-Endpoints.json#L104-L116

I mean - I know they are technically different things but adding a context would reasonably change what is the report.

Asking in https://bugzilla.mozilla.org/show_bug.cgi?id=2036160#c4

@KirtiRamchandani

Copy link
Copy Markdown
Author

Thanks for checking. I agree this should wait for the needinfo on https://bugzilla.mozilla.org/show_bug.cgi?id=2036160#c4. The pref is present and Nightly-only by default, and the BCD entries are now marked preview, but the runtime exposure and endpoint behavior need confirmation before claiming anything stronger. I’ll leave the BCD PR as-is unless the Bugzilla answer points to a correction.

@pepelsbey pepelsbey self-requested a review June 2, 2026 10:03
@KirtiRamchandani

Copy link
Copy Markdown
Author

@hamishwillee I tried to CC myself into the Bugzilla case but it seems like I cannot write anything there. Do you mind adding my same mail which is in its CC allowing the appropriate permission? :)

@pepelsbey pepelsbey removed their request for review June 4, 2026 16:23
@hamishwillee

Copy link
Copy Markdown
Contributor

Do you mind adding my same mail which is in its CC allowing the appropriate permission? :)

Yes I do mind.
Given this is an MDN tracking issue please let me take this over now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:s [PR only] 7-24 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants