|
Add suborigin logic to url::Origin
In order for the browser to correctly reason about suborigins, this adds
support to url::Origin to parse and understand suborigins. It separates
requests for hosts and schemes from the embedded suborigin
serialization, while keeping the same-origin policy checks intact so a
suborigin is a different origin from other suborigins at the same
physical origin.
This updates url/origin.* so that given a suborigin encoded in a GURL,
will correctly deserialize the suborigin and store it accordingly, while
the scheme/host/port tuple is left with the real scheme/host/port.
Additionally, removes the content/public/common/origin_util.h functions
for using suborigins since url::Origin should now be used in their
stead.
BUG= 336894, 649893
Committed: https://crrev.com/0448040f47ea1ba6a5c6ee03c82eff41854f0e0e
Cr-Commit-Position: refs/heads/master@{#427254}
Total comments: 12
Total comments: 14
Total comments: 1
Total comments: 2
Total comments: 5
Total comments: 8
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+491 lines, -272 lines) |
Patch |
|
M |
chrome/browser/browsing_data/browsing_data_local_storage_helper.h
|
View
|
|
3 chunks |
+4 lines, -4 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 |
+34 lines, -21 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/browsing_data_local_storage_helper_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/cookies_tree_model.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
4 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/child_process_security_policy_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/child_process_security_policy_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 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
|
2 chunks |
+2 lines, -4 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
|
3 chunks |
+26 lines, -22 lines |
0 comments
|
Download
|
|
M |
content/browser/dom_storage/dom_storage_context_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+100 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/dom_storage/dom_storage_context_wrapper.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/dom_storage/dom_storage_context_wrapper.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/storage_partition_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/common/origin_util.cc
|
View
|
|
2 chunks |
+0 lines, -64 lines |
0 comments
|
Download
|
|
M |
content/common/origin_util_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -77 lines |
0 comments
|
Download
|
|
M |
content/common/url_schemes.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/public/browser/dom_storage_context.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/public/common/origin_util.h
|
View
|
|
2 chunks |
+0 lines, -23 lines |
0 comments
|
Download
|
|
M |
content/public/common/url_constants.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/public/common/url_constants.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
url/gurl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
url/gurl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/origin.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
url/origin.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+70 lines, -4 lines |
0 comments
|
Download
|
|
M |
url/origin_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+117 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/url_canon_stdurl.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/url_canon_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/url_constants.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/url_constants.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
url/url_util.cc
|
View
|
|
1 chunk |
+19 lines, -15 lines |
0 comments
|
Download
|
Total messages: 46 (13 generated)
|