diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:26:54 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 21:26:54 +0000 |
commit | a1dadc4e183780c0b4cbcbab8d745ef22960ac27 (patch) | |
tree | 983b8d512d1818d11c2fa63ea1a9f68308fd8ea3 /webkit/glue/webview_impl.cc | |
parent | 8750721039f3591412b0c9d80141b209b8ec549c (diff) | |
download | chromium_src-a1dadc4e183780c0b4cbcbab8d745ef22960ac27.zip chromium_src-a1dadc4e183780c0b4cbcbab8d745ef22960ac27.tar.gz chromium_src-a1dadc4e183780c0b4cbcbab8d745ef22960ac27.tar.bz2 |
Miscellaneous API sprucing.
- Camel-case event names.
- Rename chromium.self in content scripts to chromium.extension.
- Move onConnect in extension process to chromium.self.onConnect.
- Move definition of chromium.self to extension_process_bindings.js, so that it is near all the other extension process API.
- Make toolstrips not wrap by default
- Make toolstrips 21px high instead of 19, which was required to avoid an ugly white horizontal bar on my machine. This may be font dependent :(, which is another reason I need to finish making us paint the toolstrips background instead of using this CSS hack.
Review URL: http://codereview.chromium.org/67162
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r-- | webkit/glue/webview_impl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index ce6d05d..e19f16c 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -342,6 +342,8 @@ WebView* WebView::Create(WebViewDelegate* delegate, new WebDevToolsAgentImpl(instance, tools_delegate)); } + instance->page_->settings()->setWebSecurityEnabled(false); + // Restrict the access to the local file system // (see WebView.mm WebView::_commonInitializationWithFrameName). FrameLoader::setLocalLoadPolicy( @@ -395,6 +397,12 @@ WebViewImpl::~WebViewImpl() { } } +void WebViewImpl::AllowCrossOriginAccessHack() { + DCHECK(page_.get()); + if (page_.get()) + page_->settings()->setWebSecurityEnabled(false); +} + void WebViewImpl::SetUseEditorDelegate(bool value) { ASSERT(page_ != 0); // The macro doesn't like (!page_) with a scoped_ptr. ASSERT(page_->editorClient()); |