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

Issue 2005783005: Re-enable storage for Suborigins. (Closed)

Created:
4 years, 7 months ago by jww
Modified:
4 years, 2 months ago
Reviewers:
msramek, Mike West, nasko
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, dmurph, jam, kinuko+watch, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-enable storage for Suborigins. Suborigins should, according to the spec, have access to their own storage partitions. This CL re-enables the storage objects for suborigins. Additionally, it implements the Cookies Tree Model updates to make sure that the storage partitions appear under their parent host's storage object. BUG=608564, 336894 Committed: https://crrev.com/142972d9a3a304b276727f5167a06920587bf582 Cr-Commit-Position: refs/heads/master@{#423446}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address msramek's nits and add comments #

Total comments: 4

Patch Set 3 : Rebase on ToT #

Patch Set 4 : Fix comment spacing #

Total comments: 2

Patch Set 5 : Update to new serialization #

Total comments: 14

Patch Set 6 : Address nasko's comments #

Patch Set 7 : Rebase on ToT #

Patch Set 8 : Compile fix #

Total comments: 19

Patch Set 9 : More comments from nasko #

Total comments: 2

Patch Set 10 : Nit #

Patch Set 11 : Rebase on ToT #

Patch Set 12 : Fix deletion #

Patch Set 13 : Fix for browser test #

Patch Set 14 : Rebase on ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -33 lines) Patch
M chrome/browser/browsing_data/browsing_data_local_storage_helper.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_local_storage_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +31 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +40 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_local_storage_helper.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_local_storage_helper.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +30 lines, -6 lines 0 comments Download
M content/common/origin_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +64 lines, -0 lines 0 comments Download
M content/common/origin_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
M content/public/common/origin_util.h View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/access-storage.php View 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php View 1 2 3 4 5 6 1 chunk +55 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (30 generated)
jww
Hi Martin. Would you mind taking a look at this CL, in particular the cookies ...
4 years, 7 months ago (2016-05-23 23:23:51 UTC) #2
msramek
Hi Joel! As we discussed elsewhere: This LGTM in the sense that I agree the ...
4 years, 7 months ago (2016-05-25 16:09:29 UTC) #4
jww
nasko@, would you mind reviewing the content/* changes? Thanks! https://codereview.chromium.org/2005783005/diff/1/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/2005783005/diff/1/chrome/browser/browsing_data/cookies_tree_model.cc#newcode79 chrome/browser/browsing_data/cookies_tree_model.cc:79: ...
4 years, 7 months ago (2016-05-25 20:46:22 UTC) #6
nasko
I would like to understand what are the failures we will encounter with domains in ...
4 years, 7 months ago (2016-05-25 21:46:19 UTC) #7
jww
nasko@, I think your major issue was addressed by https://codereview.chromium.org/2332263002/. Can you take another look ...
4 years, 2 months ago (2016-09-26 18:15:29 UTC) #8
nasko
https://codereview.chromium.org/2005783005/diff/60001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/60001/content/common/origin_util.cc#newcode94 content/common/origin_util.cc:94: return url.host().find("_") != std::string::npos; Huh, I thought we changed ...
4 years, 2 months ago (2016-09-26 18:26:13 UTC) #11
jww
Alright, should be updated to the new serialization. Sorry about that! Also, FWIW, I think ...
4 years, 2 months ago (2016-09-26 21:18:57 UTC) #14
nasko
https://codereview.chromium.org/2005783005/diff/80001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/80001/content/common/origin_util.cc#newcode94 content/common/origin_util.cc:94: return url.scheme() == "http-so" || url.scheme() == "https-so"; Shouldn't ...
4 years, 2 months ago (2016-09-26 22:54:55 UTC) #19
jww
Hi nasko. I've addressed your comments, and I've eliminated a few other issues. I hope ...
4 years, 2 months ago (2016-09-28 23:35:15 UTC) #20
nasko
https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc#newcode104 content/common/origin_util.cc:104: std::string host = url.host(); minor nit: I don't know ...
4 years, 2 months ago (2016-09-29 16:49:56 UTC) #21
jww
https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc#newcode104 content/common/origin_util.cc:104: std::string host = url.host(); On 2016/09/29 16:49:55, nasko (slow) ...
4 years, 2 months ago (2016-09-29 22:21:00 UTC) #22
nasko
Thanks for sticking through all my comments! content/ LGTM https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/140001/content/common/origin_util.cc#newcode106 content/common/origin_util.cc:106: ...
4 years, 2 months ago (2016-09-30 17:40:07 UTC) #23
jww
https://codereview.chromium.org/2005783005/diff/160001/content/common/origin_util.cc File content/common/origin_util.cc (right): https://codereview.chromium.org/2005783005/diff/160001/content/common/origin_util.cc#newcode112 content/common/origin_util.cc:112: if (first_period == 0 || first_period == std::string::npos) On ...
4 years, 2 months ago (2016-09-30 17:52:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2005783005/200001
4 years, 2 months ago (2016-09-30 17:53:08 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/270796)
4 years, 2 months ago (2016-09-30 18:05:01 UTC) #29
jww
mkwst@, can you review third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h? It's a one line change in there, so if it's ...
4 years, 2 months ago (2016-10-01 04:58:35 UTC) #30
Mike West
LGTM, though the BrowsingDataLocalStorageHelperTest.DeleteSingleFile failure looks relevant.
4 years, 2 months ago (2016-10-05 04:05:54 UTC) #39
jww
On 2016/10/05 04:05:54, Mike West wrote: > LGTM, though the BrowsingDataLocalStorageHelperTest.DeleteSingleFile failure > looks relevant. ...
4 years, 2 months ago (2016-10-05 15:02:24 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2005783005/240001
4 years, 2 months ago (2016-10-05 15:02:54 UTC) #43
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-05 18:38:38 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2005783005/260001
4 years, 2 months ago (2016-10-05 18:43:23 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/306149)
4 years, 2 months ago (2016-10-05 22:59:43 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2005783005/260001
4 years, 2 months ago (2016-10-06 01:52:33 UTC) #52
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 2 months ago (2016-10-06 06:00:06 UTC) #53
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 06:01:24 UTC) #55
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/142972d9a3a304b276727f5167a06920587bf582
Cr-Commit-Position: refs/heads/master@{#423446}

Powered by Google App Engine
This is Rietveld 408576698