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

Issue 1985703003: Add isUnique check to isSameSchemeHostPort. (Closed)

Created:
4 years, 7 months ago by Marijn Kruisselbrink
Modified:
4 years, 6 months ago
Reviewers:
jww, Tom Sepez, Mike West
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add isUnique check to isSameSchemeHostPort. The method is documented as "checks for equality", but before considered any pair of unique origins to be equal. With this change only unique origins that are the same instance are considered equal. Committed: https://crrev.com/0fb92722bc63b2cf98bf6502494a6f77e430fc1a Cr-Commit-Position: refs/heads/master@{#399890}

Patch Set 1 #

Patch Set 2 : change check rather than comment #

Total comments: 2

Patch Set 3 : separate out == check, and add some tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp View 1 2 2 chunks +12 lines, -1 line 2 comments Download

Messages

Total messages: 30 (10 generated)
Marijn Kruisselbrink
Maybe adding a true isSameOrigin method would also make sense, but at least being more ...
4 years, 7 months ago (2016-05-16 19:46:41 UTC) #2
Tom Sepez
That's surprising to me, too. Mike, Joel?
4 years, 7 months ago (2016-05-16 19:52:36 UTC) #5
jww
On 2016/05/16 19:52:36, Tom Sepez wrote: > That's surprising to me, too. Mike, Joel? This ...
4 years, 7 months ago (2016-05-17 04:20:40 UTC) #6
Mike West
On 2016/05/17 at 04:20:40, jww wrote: > On 2016/05/16 19:52:36, Tom Sepez wrote: > > ...
4 years, 6 months ago (2016-05-30 11:11:58 UTC) #7
Marijn Kruisselbrink
I changed the CL to add a check for isUnique in isSameSchemeHostPort. Does that seem ...
4 years, 6 months ago (2016-06-02 20:45:39 UTC) #9
jww
mek, would you mind adding some unit tests to SecurityOriginTest.cpp? Thanks! https://codereview.chromium.org/1985703003/diff/20001/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp File third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp (right): ...
4 years, 6 months ago (2016-06-02 20:49:57 UTC) #10
Marijn Kruisselbrink
On 2016/06/02 at 20:49:57, jww wrote: > mek, would you mind adding some unit tests ...
4 years, 6 months ago (2016-06-02 21:18:53 UTC) #11
jww
lgtm. Thanks!
4 years, 6 months ago (2016-06-02 21:44:00 UTC) #12
Mike West
https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp File third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp (right): https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp#newcode443 third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp:443: EXPECT_TRUE(uniqueOrigin->isSameSchemeHostPort(uniqueOrigin.get())); Why is this true? I'd expect it to ...
4 years, 6 months ago (2016-06-03 05:22:04 UTC) #13
Marijn Kruisselbrink
https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp File third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp (right): https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp#newcode443 third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp:443: EXPECT_TRUE(uniqueOrigin->isSameSchemeHostPort(uniqueOrigin.get())); On 2016/06/03 at 05:22:04, Mike West (OOO until ...
4 years, 6 months ago (2016-06-03 05:25:12 UTC) #14
Mike West
On 2016/06/03 at 05:25:12, mek wrote: > https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp > File third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp (right): > > https://codereview.chromium.org/1985703003/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp#newcode443 ...
4 years, 6 months ago (2016-06-03 12:29:52 UTC) #15
Mike West
On 2016/06/03 at 12:29:52, Mike West (OOO until 30th) wrote: > On 2016/06/03 at 05:25:12, ...
4 years, 6 months ago (2016-06-03 12:35:11 UTC) #16
Marijn Kruisselbrink
On 2016/06/03 at 12:35:11, mkwst wrote: > On 2016/06/03 at 12:29:52, Mike West (OOO until ...
4 years, 6 months ago (2016-06-03 16:46:04 UTC) #17
Marijn Kruisselbrink
mkwst: ping?
4 years, 6 months ago (2016-06-08 16:07:15 UTC) #18
Tom Sepez
Removing myself as reviewer in deference to Mike and JWW.
4 years, 6 months ago (2016-06-09 18:05:35 UTC) #22
Mike West
On 2016/06/08 at 16:07:15, mek wrote: > mkwst: ping? I guess this is an improvement ...
4 years, 6 months ago (2016-06-10 09:46:16 UTC) #23
Marijn Kruisselbrink
On 2016/06/10 at 09:46:16, mkwst wrote: > On 2016/06/08 at 16:07:15, mek wrote: > > ...
4 years, 6 months ago (2016-06-15 12:15:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985703003/40001
4 years, 6 months ago (2016-06-15 12:15:36 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-15 13:57:27 UTC) #28
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 13:59:05 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0fb92722bc63b2cf98bf6502494a6f77e430fc1a
Cr-Commit-Position: refs/heads/master@{#399890}

Powered by Google App Engine
This is Rietveld 408576698