Add check for null pending entry in LoginTabHelper
In https://bugs.chromium.org/p/chromium/issues/detail?id=1005096, I fixed a crash in HTTP Auth committed interstitials by changing a GetVisibleEntry() to a GetPendingEntry(), and I reasoned that GetPendingEntry() should always be non-null at this point. It turns out, I reasoned wrong. It seems that there is some interleaving of navigations starting and getting cancelled where the pending entry is null when processing a main-frame response. So this CL adds a null check before accessing the pending entry. Bug: 1015787,1006955 Change-Id: I70e06e6c8aeee6db93c5797593d4eda6cd5c906d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869299 Commit-Queue: Emily Stark <estark@chromium.org> Reviewed-by:Carlos IL <carlosil@chromium.org> Cr-Commit-Position: refs/heads/master@{#707602}
Showing
Please register or sign in to comment