Skip to content

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Aug 6, 2025

This CL introduces the initialize() method to the CrashReportStorage
interface, introduced in 1 and 2. This API gives an asynchronous gap
for the implementation to initialize any relevant backing memory for the
crash report storage.

In the current Chromium implementation, this isn't used since the web
APIs set() and remove() are backed by synchronous IPCs, but this
method is required by the spec proposal to allow for more sophisticated
mechanisms to be used for the backing memory. In Chromium, we are
exploring taking advantage of this in https://crrev.com/c/6788146, where
we're considering replacing RenderFrameHostImpl::crash_storage_map_
with a shared memory region that spans the browser and renderer process.

R=creis, dcheng

Bug: 400432195
Change-Id: I7ee67d29c6d4601b4d7ecb2d0b54dd24d0111e39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6819100
Reviewed-by: Steven Holte <[email protected]>
Commit-Queue: Dominic Farolino <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: mmenke <[email protected]>
Reviewed-by: Charlie Reis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1497721}

This CL introduces the `initialize()` method to the `CrashReportStorage`
interface, introduced in [1] and [2]. This API gives an asynchronous gap
for the implementation to initialize any relevant backing memory for the
crash report storage.

In the current Chromium implementation, this isn't used since the web
APIs `set()` and `remove()` are backed by synchronous IPCs, but this
method is required by the spec proposal to allow for more sophisticated
mechanisms to be used for the backing memory. In Chromium, we are
exploring taking advantage of this in https://crrev.com/c/6788146, where
we're considering replacing `RenderFrameHostImpl::crash_storage_map_`
with a shared memory region that spans the browser and renderer process.

[1]:
https://github.com/WICG/crash-reporting/blob/gh-pages/crashReport-explainer.md
[2]: WICG/crash-reporting#37

R=creis, dcheng

Bug: 400432195
Change-Id: I7ee67d29c6d4601b4d7ecb2d0b54dd24d0111e39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6819100
Reviewed-by: Steven Holte <[email protected]>
Commit-Queue: Dominic Farolino <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: mmenke <[email protected]>
Reviewed-by: Charlie Reis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1497721}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 50a4d06 into master Aug 6, 2025
19 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-6819100 branch August 6, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants