diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:03:42 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:03:42 +0000 |
commit | d959ce283ff8d5f27fb883acea5926a679866e2b (patch) | |
tree | c55e04833b883256d4e41b2488e863d70b57e1fc /webkit/glue/webframe_impl.cc | |
parent | ca469ddc7f7415b1c94c756bf0bcf77536a7f2ef (diff) | |
download | chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.zip chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.tar.gz chromium_src-d959ce283ff8d5f27fb883acea5926a679866e2b.tar.bz2 |
Add a hack to enable cross-origin XHR for all pages with a "chrome-extension"
URL as the toplevel frame. This is a temporary workaround until we can do it
the proper way, which requires a webkit refactoring in progress by Alexei.
Review URL: http://codereview.chromium.org/67153
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r-- | webkit/glue/webframe_impl.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index 885b928..84d42b4 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -882,6 +882,13 @@ void WebFrameImpl::CallJSGC() { #endif } +void WebFrameImpl::AllowCrossOriginAccessHack() { + DCHECK(frame_ && frame_->document()); + if (frame_ && frame_->document()) { + frame_->document()->securityOrigin()->grantUniversalAccess(); + } +} + void WebFrameImpl::GetContentAsPlainText(int max_chars, std::wstring* text) const { text->clear(); |