Check for equality of the URL's origin in replaceState/pushState
history.pushState/replaceState should not change the origin part of the
URL (the whole URL minus the path, query and reference fragment). The
previous check failed to do this because canAccess respects whitelists
(such as those for extensions) and allows same-origin URLs (such as
blob:).
BUG=
447414
Committed:
https://crrev.com/587195f6886817f7b634bf58eafa7f900a9b6532
Cr-Commit-Position: refs/heads/master@{#364140}