commit | bafec2415e83c4712e299c0ce1dadb202b25bbf9 | [log] [tgz] |
---|---|---|
author | David Maunder <davidjm@chromium.org> | Wed Mar 16 18:31:22 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 16 18:31:22 2022 |
tree | cc901aa7df87b1fe90f4d12cb8fdf36616a4b672 | |
parent | e6716cdcdb4c27b3b337976c9c7145c2b0b41989 [diff] |
Retrieve CriticalPersistedTabData attributes in mapper Currently we deserialize the FlatBuffer in the mapper (which is used on the same I/O thread as the file read) and then pull the attributes off the FlatBuffer in the TabImpl constructor. I am observing a small number of crashes on flatBuffer.webContentsStateBytesAsByteBuffer() by which point it is too late to fall back to TabState or re-create the Tab. This CL moves field acquisition for the FlatBuffer to the mapper which means if something goes wrong we can return a null SerializedCriticalPersistedTabData which will in turn force the code to fallback to TabState (and failing that re-create the Tab). Bug: 1302098 Change-Id: I183760f80dfe993dc3a1b67aeaa151eed869db57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3527607 Reviewed-by: Peter Conn <peconn@chromium.org> Reviewed-by: Matthew Jones <mdjones@chromium.org> Commit-Queue: David Maunder <davidjm@chromium.org> Cr-Commit-Position: refs/heads/main@{#981752}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.