0
Files
src/components/back_forward_cache
Hajime Hoshi 9e6b5b6999 devtools: Fix the protocol of DisableForRenderFrameHostReason
Converting a DisableForRenderFrameHostReason to a devtool protocol was
introduced at crrev.com/c/3056318. This conversion doesn't work when the
source is not kContent as the reason's ID indicates a different enum
than BackForwardCacheDisable::DisabledReasonId. As a result, a wrong
reason was shown on the devtool when the page was not restored from
back-forward cache.

This change fixes this issue to consider all the reason's sources like
kEmbedder and covert the ID based on the source.

Bug: 1135563
Change-Id: Id19c1984e51b1d5f906cafe1ab5e2333ae25175b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3102632
Reviewed-by: Yuzu Saijo <yuzus@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#914203}
2021-08-23 06:54:13 +00:00
..