Simplify RenderFrameImpl::decidePolicyForNavigation and avoid DCHECK.
DCHECK can be tripped when there is a chain of openers or when the opener has been cleared. The subsequent comparison against file: fails, and we may make a browser navigation where one could have been avoided, but it is still correct. Since it is still correct, we can simplify the check, perhaps forking in more cases that we used to, but that doesn't matter. BUG=622509 R=creis@chromium.org Review-Url: https://codereview.chromium.org/2153573002 Cr-Commit-Position: refs/heads/master@{#405609}
Showing
Please register or sign in to comment