Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 1338001: Block database access on allowDatabase instead of databaseOpenFile. (Closed)

Created:
10 years, 9 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, jam, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, danno
Visibility:
Public.

Description

Block database access on allowDatabase instead of databaseOpenFile. BUG=36435 TEST=Set cookie settings to ASK and open a page with web databases. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43183

Patch Set 1 #

Total comments: 8

Patch Set 2 : updates #

Total comments: 26

Patch Set 3 : without worker support #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -254 lines) Patch
M chrome/browser/cookie_modal_dialog.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/cookie_modal_dialog.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cookie_modal_dialog_gtk.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/gtk/gtk_chrome_cookie_view.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/gtk/gtk_chrome_cookie_view.cc View 4 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/message_box_handler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/message_box_handler.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.h View 1 4 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.cc View 1 11 chunks +72 lines, -128 lines 2 comments Download
M chrome/browser/renderer_host/database_permission_request.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/database_permission_request.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/views/cookie_prompt_view.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/views/database_open_info_view.h View 2 1 chunk +5 lines, -27 lines 1 comment Download
M chrome/browser/views/database_open_info_view.cc View 2 1 chunk +21 lines, -87 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 1 chunk +9 lines, -0 lines 1 comment Download
M chrome/renderer/render_thread.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
chrome/renderer/render_view.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
chrome/renderer/render_view.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jochen (gone - plz use gerrit)
please review. requires WebKit r56548. When you go to http://webkit.org/demos/sticky-notes/ you can check the prompt. ...
10 years, 9 months ago (2010-03-25 17:54:08 UTC) #1
michaeln
http://codereview.chromium.org/1338001/diff/1/2 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/1338001/diff/1/2#newcode389 chrome/browser/renderer_host/database_dispatcher_host.cc:389: content_setting = request.WaitOnResponse(); Ouch... I'd vote to do this ...
10 years, 9 months ago (2010-03-26 01:43:10 UTC) #2
michaeln
> Ouch... I'd vote to do this w/o blocking the file thread for the duration ...
10 years, 9 months ago (2010-03-26 02:13:46 UTC) #3
jochen (gone - plz use gerrit)
On 2010/03/26 02:13:46, michaeln wrote: > > Ouch... I'd vote to do this w/o blocking ...
10 years, 9 months ago (2010-03-26 08:12:15 UTC) #4
jorlow
Why do you necessarily need to block a thread?? If you absolutely do (haven't looked ...
10 years, 9 months ago (2010-03-26 10:33:28 UTC) #5
jochen (gone - plz use gerrit)
On 2010/03/26 10:33:28, Jeremy Orlow wrote: > Why do you necessarily need to block a ...
10 years, 9 months ago (2010-03-26 10:38:10 UTC) #6
michaeln
> basically I just copied the code from there.. I'll make it non-blocking and > ...
10 years, 9 months ago (2010-03-26 17:46:23 UTC) #7
darin (slow to review)
http://codereview.chromium.org/1338001/diff/1/12 File chrome/renderer/render_view.h (right): http://codereview.chromium.org/1338001/diff/1/12#newcode376 chrome/renderer/render_view.h:376: virtual bool allowDatabase( before landing this CL, please revise ...
10 years, 9 months ago (2010-03-27 00:09:48 UTC) #8
Andrew T Wilson (Slow)
http://codereview.chromium.org/1338001/diff/1/3 File chrome/browser/renderer_host/database_dispatcher_host.h (right): http://codereview.chromium.org/1338001/diff/1/3#newcode31 chrome/browser/renderer_host/database_dispatcher_host.h:31: bool OnMessageReceived(const IPC::Message& message, nit: don't think this line ...
10 years, 9 months ago (2010-03-27 01:57:01 UTC) #9
jochen (gone - plz use gerrit)
Made the dialog non-blocking again. The webkit changes darin requested are accepted for the commit ...
10 years, 9 months ago (2010-03-29 15:43:54 UTC) #10
jorlow
LGTM, but please fix nits and wait for others to review (especially the workers part). ...
10 years, 9 months ago (2010-03-29 16:21:00 UTC) #11
darin (slow to review)
http://codereview.chromium.org/1338001/diff/15001/16008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/1338001/diff/15001/16008#newcode118 chrome/browser/renderer_host/database_dispatcher_host.cc:118: delete message; On 2010/03/29 16:21:00, Jeremy Orlow wrote: > ...
10 years, 9 months ago (2010-03-29 19:22:18 UTC) #12
jochen (gone - plz use gerrit)
http://codereview.chromium.org/1338001/diff/15001/16008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/1338001/diff/15001/16008#newcode118 chrome/browser/renderer_host/database_dispatcher_host.cc:118: delete message; On 2010/03/29 19:22:18, darin wrote: > On ...
10 years, 9 months ago (2010-03-29 19:32:52 UTC) #13
michaeln
http://codereview.chromium.org/1338001/diff/15001/16014 File chrome/browser/views/database_open_info_view.h (right): http://codereview.chromium.org/1338001/diff/15001/16014#newcode24 chrome/browser/views/database_open_info_view.h:24: class DatabaseOpenInfoView : public views::View { Since you're touch ...
10 years, 9 months ago (2010-03-29 19:47:38 UTC) #14
Andrew T Wilson (Slow)
http://codereview.chromium.org/1338001/diff/15001/16015 File chrome/browser/worker_host/worker_process_host.cc (right): http://codereview.chromium.org/1338001/diff/15001/16015#newcode453 chrome/browser/worker_host/worker_process_host.cc:453: for (Instances::iterator i = instances_.begin(); i != instances_.end();) { ...
10 years, 9 months ago (2010-03-30 00:35:17 UTC) #15
jorlow
http://codereview.chromium.org/1338001/diff/15001/16014 File chrome/browser/views/database_open_info_view.h (right): http://codereview.chromium.org/1338001/diff/15001/16014#newcode24 chrome/browser/views/database_open_info_view.h:24: class DatabaseOpenInfoView : public views::View { On 2010/03/29 19:47:38, ...
10 years, 8 months ago (2010-03-30 10:13:16 UTC) #16
jochen (gone - plz use gerrit)
I've stripped out the worker support for now. For MStone5, Workers don't support web databases, ...
10 years, 8 months ago (2010-03-30 12:48:23 UTC) #17
michaeln
http://codereview.chromium.org/1338001/diff/23002/30014 File chrome/browser/views/database_open_info_view.h (right): http://codereview.chromium.org/1338001/diff/23002/30014#newcode16 chrome/browser/views/database_open_info_view.h:16: class DatabaseOpenInfoView : public GenericInfoView { Thnx!
10 years, 8 months ago (2010-03-30 19:08:13 UTC) #18
michaeln
LGTM http://codereview.chromium.org/1338001/diff/23002/30008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/1338001/diff/23002/30008#newcode353 chrome/browser/renderer_host/database_dispatcher_host.cc:353: void DatabaseDispatcherHost::OnAllowDatabase(const std::string& origin, Since every other call ...
10 years, 8 months ago (2010-03-30 19:46:19 UTC) #19
jochen (gone - plz use gerrit)
10 years, 8 months ago (2010-03-31 07:36:34 UTC) #20
http://codereview.chromium.org/1338001/diff/23002/30008
File chrome/browser/renderer_host/database_dispatcher_host.cc (right):

http://codereview.chromium.org/1338001/diff/23002/30008#newcode353
chrome/browser/renderer_host/database_dispatcher_host.cc:353: void
DatabaseDispatcherHost::OnAllowDatabase(const std::string& origin,
On 2010/03/30 19:46:19, michaeln wrote:
> Since every other call here uses 'origin_identifier' formatted strings...
maybe
> name the 'origin' parameter 'origin_url' to be just a little more clear that
its
> not one of these identifier strings (here and in the .h file and in messages.h
> file).

Done.

Powered by Google App Engine
This is Rietveld 408576698