diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 20:28:44 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 20:28:44 +0000 |
commit | 14392a5ec9b1c2679f6f58193ef6736123d4c442 (patch) | |
tree | 85eb33b09622b1ffa629e6ab361f6be861bf10de /content/browser/site_instance_impl.cc | |
parent | adcf0f0434f7af0e399bb0a034ba706ce12f746c (diff) | |
download | chromium_src-14392a5ec9b1c2679f6f58193ef6736123d4c442.zip chromium_src-14392a5ec9b1c2679f6f58193ef6736123d4c442.tar.gz chromium_src-14392a5ec9b1c2679f6f58193ef6736123d4c442.tar.bz2 |
Create swapped-out opener RVHs after a process swap.
This is required to support cross-process JavaScript calls, like postMessage.
BUG=99202
TEST=window.opener present after a cross-process navigation.
Review URL: https://chromiumcodereview.appspot.com/10171018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/site_instance_impl.cc')
-rw-r--r-- | content/browser/site_instance_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc index 792afc5..131189e 100644 --- a/content/browser/site_instance_impl.cc +++ b/content/browser/site_instance_impl.cc @@ -142,6 +142,11 @@ SiteInstance* SiteInstanceImpl::GetRelatedSiteInstance(const GURL& url) { return browsing_instance_->GetSiteInstanceForURL(url); } +bool SiteInstanceImpl::IsRelatedSiteInstance(const SiteInstance* instance) { + return browsing_instance_ == + static_cast<const SiteInstanceImpl*>(instance)->browsing_instance_; +} + bool SiteInstanceImpl::HasWrongProcessForURL(const GURL& url) const { // Having no process isn't a problem, since we'll assign it correctly. if (!HasProcess()) |