Enforce all subframes to be in the same BrowsingInstance as the parent.

Parent and child frames must be part of the same "unit of related
browsing contexts" per the HTML spec. This rule is currently broken when
subframes are allowed to perform cross-process navigations. This CL is
implementing a simple fix for this and adding an enforcement of this rule
to WebContentsObserverSanityChecker. A more comprehensive implementation
can be done at a later time.

BUG=522302
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Review URL: https://codereview.chromium.org/1495993002

Cr-Commit-Position: refs/heads/master@{#363292}
4 files changed