Make sure binding security checks don't pass if the frame is remote.
Blink assumes that remote frames will always fail the security origin
check. Unfortunately, reality is not that simple. There are several
instances where this assumption fails to hold. For example:
1. Navigate to a.com.
2. a.com opens a new window.
3. Navigate the new window to b.com via the omnibox.
4. Click a link to c.com in both windows.
Because browser-initiated navigations go cross-process but
renderer-initiated navigations do not , the two c.com windows will
end up in different renderer processes.
Both windows have the same origin but see each other as RemoteFrames.
This means that SecurityOrigin's canAccess check will pass… but this
ends up violating many assumptions in Blink that passing the security
check implies a local frame.
Review URL: https://codereview.chromium.org/1887553002
3 files changed