Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use IsErrorDocument() to prevent BFCacheing of interstitials and errors.
In the bug, a crash occurs because we try to cache an interstitial. We catch some error documents via status codes etc but interstitials do not consistently set those. Checking IsErrorDocument() is more reliable. Bug: 1274308,1287996 Change-Id: Ifec662c169c77e33ca5dc4d56b0e42c8d71f1d97 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3319862 Commit-Queue: Fergal Daly <fergal@chromium.org> Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/main@{#981026} NOKEYCHECK=True GitOrigin-RevId: 7a05b426c6c51254a08de9a8dee8db9c1911b9c9
- Loading branch information