0
Files
src/content/renderer
Frank Liberato a668522089 [pip] Add CHECK when looking up WebFrame from v8 context
Wen trying to find the decoder factory for a frame, handle the case
where there is no frame associated with the v8 context.  This can
happen when the frame is closed / reloaded, but the video element
is in a same-origin frame that still exists.

It's unclear that the v8 frame is the correct one to use in these
cases, but it's quite clear that dereferencing a nullptr is bad.

Explicitly CHECK() for this case.

Bug: 355139787
Change-Id: Ie976e12957f0f08dbfacdae5ce426a6bd40c2f54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5763089
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1337962}
2024-08-06 17:21:36 +00:00
..