diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 07:58:40 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 07:58:40 +0000 |
commit | 28dd598b6433c08e58e261538af94b8aa5edff60 (patch) | |
tree | d10cfad399b480359f6cdf517cbc65c7089b2b17 /chrome/renderer | |
parent | 81be9bdbe8e380ea383c3ff0e3ef496524793fec (diff) | |
download | chromium_src-28dd598b6433c08e58e261538af94b8aa5edff60.zip chromium_src-28dd598b6433c08e58e261538af94b8aa5edff60.tar.gz chromium_src-28dd598b6433c08e58e261538af94b8aa5edff60.tar.bz2 |
Revert 43183 - Block database access on allowDatabase instead of databaseOpenFile.
BUG=36435
TEST=Set cookie settings to ASK and open a page with web databases.
Review URL: http://codereview.chromium.org/1338001
TBR=jochen@chromium.org
Review URL: http://codereview.chromium.org/1595003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 1 | ||||
-rw-r--r-- | chrome/renderer/render_view.cc | 15 | ||||
-rw-r--r-- | chrome/renderer/render_view.h | 3 |
3 files changed, 0 insertions, 19 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index c40ef64..81636c7 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -313,7 +313,6 @@ bool RenderThread::Send(IPC::Message* msg) { case ViewHostMsg_GetRawCookies::ID: case ViewHostMsg_DOMStorageSetItem::ID: case ViewHostMsg_SyncLoad::ID: - case ViewHostMsg_AllowDatabase::ID: may_show_cookie_prompt = true; pumping_events = true; break; diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 6c8b8a2..d8506c3 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2936,21 +2936,6 @@ bool RenderView::allowScript(WebFrame* frame, bool enabled_per_settings) { return false; // Other protocols fall through here. } -bool RenderView::allowDatabase( - WebFrame* frame, const WebString& name, const WebString& display_name, - unsigned long estimated_size) { - WebSecurityOrigin origin = frame->securityOrigin(); - if (origin.isEmpty()) - return false; // Uninitialized document? - - bool result; - if (!Send(new ViewHostMsg_AllowDatabase(routing_id_, - origin.toString().utf8(), name, display_name, estimated_size, &result))) - return false; - if (!result) - DidBlockContentType(CONTENT_SETTINGS_TYPE_COOKIES); - return result; -} void RenderView::didNotAllowScript(WebKit::WebFrame* frame) { DidBlockContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT); } diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index b057a9a..370b92d 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -375,9 +375,6 @@ class RenderView : public RenderWidget, virtual void didRunInsecureContent( WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); - virtual bool allowDatabase( - WebKit::WebFrame* frame, const WebKit::WebString& name, - const WebKit::WebString& display_name, unsigned long estimated_size); virtual void didNotAllowScript(WebKit::WebFrame* frame); virtual void didNotAllowPlugins(WebKit::WebFrame* frame); virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame* frame); |