Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[m91] [memories] Don't assume incomplete visit on URL copy (part 2).
When the omnibox URL is copied, it DCHECKs there's a pending visit. This verifies the assumption that there shouldn't be a URL to copy unless there's been a navigation. But this isn't the case for chrome://blank, which isn't considered a navigation but does display a URL in the omnibox. Therefore, opening chrome://blank in a new tab and copying the URL resulted in a DCHECK crash (or 'SEGV on unknown address' if DCHECKs are disabled). The DCHECK and faulty code were introduced in the previous CL crrev.com/c/2798278. This CL addresses this case by checking if there's been a navigation. (cherry picked from commit 2157536) Bug: 1197759, 1171352 Change-Id: I34b96dadcd252e369165f626df802742ac97790a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2819679 Commit-Queue: Sophie Chang <sophiechang@chromium.org> Auto-Submit: manuk hovanesian <manukh@chromium.org> Reviewed-by: Sophie Chang <sophiechang@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#871594} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2825490 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: manuk hovanesian <manukh@chromium.org> Cr-Commit-Position: refs/branch-heads/4472@{#63} Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
- Loading branch information