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

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)

Created:
10 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
Reviewers:
michaeln
CC:
chromium-reviews, michaeln, jam+cc_chromium.org, dpranke+watch_chromium.org, ben+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org
Visibility:
Public.

Description

Indicate in the tab UI if appcache creation was blocked by privacy settings. TEST=manual BUG=38362 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44079

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 18

Patch Set 3 : updates #

Total comments: 7

Patch Set 4 : updates #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -58 lines) Patch
M chrome/browser/appcache/appcache_frontend_proxy.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/appcache/appcache_frontend_proxy.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/appcache/appcache_dispatcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/appcache/appcache_dispatcher.cc View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 3 4 chunks +11 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webapplicationcachehost_impl.h View 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webapplicationcachehost_impl.cc View 1 chunk +32 lines, -0 lines 2 comments Download
M chrome/renderer/renderer_webkitclient_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.cc View 1 2 4 chunks +0 lines, -10 lines 0 comments Download
M webkit/appcache/appcache_frontend_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M webkit/appcache/appcache_frontend_impl.cc View 2 chunks +7 lines, -1 line 0 comments Download
M webkit/appcache/appcache_group.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M webkit/appcache/appcache_group.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M webkit/appcache/appcache_group_unittest.cc View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M webkit/appcache/appcache_host.h View 1 2 3 4 chunks +9 lines, -2 lines 2 comments Download
M webkit/appcache/appcache_host.cc View 1 2 3 4 chunks +13 lines, -1 line 0 comments Download
M webkit/appcache/appcache_host_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_interfaces.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/appcache/appcache_request_handler.h View 3 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_request_handler.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M webkit/appcache/appcache_request_handler_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webkit/appcache/appcache_storage.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_update_job.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M webkit/appcache/appcache_update_job_unittest.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/appcache/mock_appcache_storage_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/appcache/web_application_cache_host_impl.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M webkit/glue/webkitclient_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M webkit/tools/test_shell/simple_appcache_system.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.h View 3 1 chunk +2 lines, -0 lines 0 comments Download
webkit/tools/test_shell/test_webview_delegate.cc View 3 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jochen (gone - plz use gerrit)
WebKit part is in https://bugs.webkit.org/show_bug.cgi?id=36882 please review
10 years, 8 months ago (2010-03-31 13:31:15 UTC) #1
michaeln
http://codereview.chromium.org/1600002/diff/3001/4004 File chrome/common/appcache/appcache_backend_proxy.h (right): http://codereview.chromium.org/1600002/diff/3001/4004#newcode31 chrome/common/appcache/appcache_backend_proxy.h:31: virtual void ContentBlocked(int render_view_id); Per other comments, i think ...
10 years, 8 months ago (2010-03-31 23:03:56 UTC) #2
jochen (gone - plz use gerrit)
please review. http://codereview.chromium.org/1600002/diff/3001/4004 File chrome/common/appcache/appcache_backend_proxy.h (right): http://codereview.chromium.org/1600002/diff/3001/4004#newcode31 chrome/common/appcache/appcache_backend_proxy.h:31: virtual void ContentBlocked(int render_view_id); On 2010/03/31 23:03:56, ...
10 years, 8 months ago (2010-04-07 15:34:28 UTC) #3
michaeln
http://codereview.chromium.org/1600002/diff/14001/15004 File chrome/common/appcache/appcache_backend_proxy.cc (right): http://codereview.chromium.org/1600002/diff/14001/15004#newcode7 chrome/common/appcache/appcache_backend_proxy.cc:7: #include "chrome/common/content_settings_types.h" Is the new include really needed? http://codereview.chromium.org/1600002/diff/14001/15024 ...
10 years, 8 months ago (2010-04-07 21:52:57 UTC) #4
jochen (gone - plz use gerrit)
On 2010/04/07 21:52:57, michaeln wrote: > http://codereview.chromium.org/1600002/diff/14001/15004 > File chrome/common/appcache/appcache_backend_proxy.cc (right): > > http://codereview.chromium.org/1600002/diff/14001/15004#newcode7 > ...
10 years, 8 months ago (2010-04-07 23:08:17 UTC) #5
jochen (gone - plz use gerrit)
please review http://codereview.chromium.org/1600002/diff/14001/15004 File chrome/common/appcache/appcache_backend_proxy.cc (right): http://codereview.chromium.org/1600002/diff/14001/15004#newcode7 chrome/common/appcache/appcache_backend_proxy.cc:7: #include "chrome/common/content_settings_types.h" On 2010/04/07 21:52:57, michaeln wrote: ...
10 years, 8 months ago (2010-04-08 08:09:47 UTC) #6
michaeln
LGTM modulu the couple of comments below http://codereview.chromium.org/1600002/diff/21001/22009 File chrome/renderer/renderer_webapplicationcachehost_impl.cc (right): http://codereview.chromium.org/1600002/diff/21001/22009#newcode29 chrome/renderer/renderer_webapplicationcachehost_impl.cc:29: render_view_->routing_id(), CONTENT_SETTINGS_TYPE_COOKIES)); ...
10 years, 8 months ago (2010-04-08 18:17:42 UTC) #7
jochen (gone - plz use gerrit)
10 years, 8 months ago (2010-04-09 15:44:47 UTC) #8
http://codereview.chromium.org/1600002/diff/21001/22009
File chrome/renderer/renderer_webapplicationcachehost_impl.cc (right):

http://codereview.chromium.org/1600002/diff/21001/22009#newcode29
chrome/renderer/renderer_webapplicationcachehost_impl.cc:29:
render_view_->routing_id(), CONTENT_SETTINGS_TYPE_COOKIES));
On 2010/04/08 18:17:42, michaeln wrote:
> Here's where the raciness i mentioned earlier comes into play.
> 
> I don't think we have any guarantees that the document this appcacheHost is
> associated with is still the document that is committed to the frame. If not,
we
> *could* be erroneously setting the icon.
> 
> Also, I don't think we have any guarantee that the RenderView is still
> allocated. If not, we *could* crash at this dereference (or pick up odd values
> for routing_id).
> 
> I think I'd be more comfortable with setting a routing_id_ data member in the
> ctor and using that data member here for now. (And not having the render_view_
> data member which could be a dangling ptr)

Done.

http://codereview.chromium.org/1600002/diff/21001/22019
File webkit/appcache/appcache_host.h (right):

http://codereview.chromium.org/1600002/diff/21001/22019#newcode86
webkit/appcache/appcache_host.h:86: // Used to notify the host that a request
was blocked by a policy.
On 2010/04/08 18:17:42, michaeln wrote:
> Maybe update the comment to say that the main resource was block, and rename
the
> method to NotifyMainResourceBlocked.
> 
> Its depending on be called prior to cache selection time to work properly. If
> this gets called after cache selection time, its a noop. All resource loads
> except the main resource load happen after cache selection.
> 
> So "main" is significant.

Done.

Powered by Google App Engine
This is Rietveld 408576698