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

Issue 137883005: crossSite navs (Closed)

Created:
6 years, 10 months ago by michaeln
Modified:
6 years, 10 months ago
Reviewers:
Charlie Reis, hashimoto
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, michaeln
Visibility:
Public.

Description

Transfer appcache state during cross site navigations too. The AppCacheHost is an object that persist across the lifetime of a document. It's created prior to the document and prior to the initiation of the resource load for the documents main resource. Today, when a cross-site xfer occurs the host is deleted and a new host is created that knows nothing of whats going on... so not surprisingly things are broken. Either state of the old host that gets deleted needs to be saved and restored into a new host that gets created... or the old host should not get deleted and instead get transferred along as well. I chose the latter because there's some state that can't be saved/restored so easily and moving the whole object is less tedious. BUG=331270 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248631

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -8 lines) Patch
M content/browser/loader/cross_site_resource_handler.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_backend_impl.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_backend_impl.cc View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_host.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_host.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_interceptor.h View 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_interceptor.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_request_handler.h View 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/browser/appcache/appcache_request_handler.cc View 1 2 3 3 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
michaeln
ptal
6 years, 10 months ago (2014-01-31 23:52:35 UTC) #1
Charlie Reis
I know the cross-site transfer logic very well but not the AppCache code. Can you ...
6 years, 10 months ago (2014-02-01 00:15:49 UTC) #2
michaeln
see the updated cl description for your meta question https://codereview.chromium.org/137883005/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/137883005/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode988 content/browser/loader/resource_dispatcher_host_impl.cc:988: ...
6 years, 10 months ago (2014-02-01 00:41:58 UTC) #3
Charlie Reis
Thanks, that helps a lot. content/ (and the overall concept) LGTM. I'll defer to hashimoto@ ...
6 years, 10 months ago (2014-02-01 00:49:38 UTC) #4
hashimoto
lgtm, thanks! https://codereview.chromium.org/137883005/diff/120001/webkit/browser/appcache/appcache_backend_impl.cc File webkit/browser/appcache/appcache_backend_impl.cc (right): https://codereview.chromium.org/137883005/diff/120001/webkit/browser/appcache/appcache_backend_impl.cc#newcode151 webkit/browser/appcache/appcache_backend_impl.cc:151: AppCacheHost* host) { nit: A function which ...
6 years, 10 months ago (2014-02-03 10:59:10 UTC) #5
michaeln
https://codereview.chromium.org/137883005/diff/120001/webkit/browser/appcache/appcache_backend_impl.cc File webkit/browser/appcache/appcache_backend_impl.cc (right): https://codereview.chromium.org/137883005/diff/120001/webkit/browser/appcache/appcache_backend_impl.cc#newcode151 webkit/browser/appcache/appcache_backend_impl.cc:151: AppCacheHost* host) { On 2014/02/03 10:59:11, hashimoto wrote: > ...
6 years, 10 months ago (2014-02-03 21:22:18 UTC) #6
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 10 months ago (2014-02-03 21:32:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/137883005/230001
6 years, 10 months ago (2014-02-03 21:35:26 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 00:34:21 UTC) #9
commit-bot: I haz the power
Change committed as 248631
6 years, 10 months ago (2014-02-04 00:34:21 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 00:34:22 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 00:34:22 UTC) #12
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 00:34:23 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-04 00:34:27 UTC) #14
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698