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

Issue 2661543003: Introduce the concept of web schemes capable of storage (Closed)

Created:
3 years, 10 months ago by msramek
Modified:
3 years, 10 months ago
Reviewers:
brettw, Mike West
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the concept of web schemes capable of storage Cookies, local storage, IndexedDB, etc. can be used for various URL schemes, including Chrome-specific and internal ones such as chrome-extension://, chrome://, chrome-devtools:// etc. However, in the browsing_data/ codebase, when the user chooses to delete "site data", we must only delete data from actual websites that user visited, not data from Chrome's internal modules; that means data associated with schemes like http[s]://, file://, etc. Until now, this definition was defined as ChildProcessSecurityPolicy::IsWebSafeScheme() minus the embedder-specific schemes chrome-extension:// and chrome-devtools://. As we're moving parts of browsing_data/ codebase to content/ (crbug.com/668114), this approach is not satisfactory. We need a definition that can be used in content/, and embedders can possibly add more schemes, but not remove them. This CL introduces such definition to url_utils.h. BUG=668114 Review-Url: https://codereview.chromium.org/2661543003 Cr-Commit-Position: refs/heads/master@{#448957} Committed: https://chromium.googlesource.com/chromium/src/+/7e5c61fd4a063db154f623e75bc71bdcc4bf65fc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -22 lines) Patch
M chrome/browser/browsing_data/browsing_data_helper.cc View 1 chunk +5 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_helper_unittest.cc View 3 chunks +26 lines, -13 lines 0 comments Download
M url/url_util.h View 1 chunk +8 lines, -0 lines 0 comments Download
M url/url_util.cc View 5 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
msramek
Hi Mike, This would be the list of "web storage" schemes we were talking about. ...
3 years, 10 months ago (2017-01-27 13:54:36 UTC) #4
Mike West
How do you feel about this, Brett? My intuition is that it's reasonable to add ...
3 years, 10 months ago (2017-02-02 20:53:58 UTC) #8
brettw
Nice CL description! LGTM
3 years, 10 months ago (2017-02-08 05:09:06 UTC) #9
msramek
Thanks Brett! Mike - anything from your side? Also, let me double-check again before proceeding. ...
3 years, 10 months ago (2017-02-08 09:11:27 UTC) #10
Mike West
On 2017/02/08 at 09:11:27, msramek wrote: > Thanks Brett! > > Mike - anything from ...
3 years, 10 months ago (2017-02-08 09:38:00 UTC) #11
msramek
Alright, thanks! Landing this now.
3 years, 10 months ago (2017-02-08 09:56:37 UTC) #12
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/2661543003/1
3 years, 10 months ago (2017-02-08 09:57:10 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 11:22:36 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7e5c61fd4a063db154f623e75bc7...

Powered by Google App Engine
This is Rietveld 408576698