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

Issue 1827743002: SameSite: Teach devtools about the new 'samesite' syntax. (Closed)

Created:
4 years, 9 months ago by Mike West
Modified:
4 years, 8 months ago
Reviewers:
dgozman, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SameSite: Teach devtools about the new 'samesite' syntax. We used to treat 'samesite' as a binary flag, displaying a checkmark just like 'secure' or 'httponly'. The attribute is now a trinary value in the table: "", "Lax", or "Strict". The protocol shifted to align with this change, switching from a boolean value to an enum ("NoRestriction", "Lax", and "Strict", respectively). BUG=596520 Committed: https://crrev.com/4e0bddf6d2123979b95860fae65429014828b33f Cr-Commit-Position: refs/heads/master@{#385393}

Patch Set 1 #

Patch Set 2 : test #

Total comments: 1

Patch Set 3 : Feedback+Rebase #

Total comments: 9

Patch Set 4 : optional #

Total comments: 8

Patch Set 5 : Feedback #

Messages

Total messages: 18 (6 generated)
Mike West
Hey Pavel! What do you think of this patch? It ends up changing the protocol ...
4 years, 9 months ago (2016-03-23 10:15:19 UTC) #2
Mike West
+dgozman@, as I realize now that Pavel might be buried in perf. :/
4 years, 9 months ago (2016-03-24 07:20:24 UTC) #4
dgozman
https://codereview.chromium.org/1827743002/diff/20001/third_party/WebKit/Source/devtools/protocol.json File third_party/WebKit/Source/devtools/protocol.json (right): https://codereview.chromium.org/1827743002/diff/20001/third_party/WebKit/Source/devtools/protocol.json#newcode1408 third_party/WebKit/Source/devtools/protocol.json:1408: { "name": "sameSite", "type": "string", "description": "'Lax', 'Strict', or ...
4 years, 9 months ago (2016-03-24 18:59:26 UTC) #5
Mike West
On 2016/03/24 at 18:59:26, dgozman wrote: > https://codereview.chromium.org/1827743002/diff/20001/third_party/WebKit/Source/devtools/protocol.json > File third_party/WebKit/Source/devtools/protocol.json (right): > > https://codereview.chromium.org/1827743002/diff/20001/third_party/WebKit/Source/devtools/protocol.json#newcode1408 ...
4 years, 8 months ago (2016-04-01 13:21:07 UTC) #6
pfeldman
https://codereview.chromium.org/1827743002/diff/40001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (right): https://codereview.chromium.org/1827743002/diff/40001/content/browser/devtools/protocol/network_handler.cc#newcode258 content/browser/devtools/protocol/network_handler.cc:258: ->set_same_site(same_site)); What is the value in case SameSite is ...
4 years, 8 months ago (2016-04-01 22:04:09 UTC) #8
Mike West
Thanks, I've taken another pass. WDYT? https://codereview.chromium.org/1827743002/diff/40001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (right): https://codereview.chromium.org/1827743002/diff/40001/content/browser/devtools/protocol/network_handler.cc#newcode258 content/browser/devtools/protocol/network_handler.cc:258: ->set_same_site(same_site)); On 2016/04/01 ...
4 years, 8 months ago (2016-04-05 08:07:08 UTC) #9
dgozman
lgtm with comments https://codereview.chromium.org/1827743002/diff/60001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (right): https://codereview.chromium.org/1827743002/diff/60001/content/browser/devtools/protocol/network_handler.cc#newcode250 content/browser/devtools/protocol/network_handler.cc:250: devtools_cookie->set_same_site("Strict"); There should be generated constants ...
4 years, 8 months ago (2016-04-05 17:34:54 UTC) #10
Mike West
Thanks! https://codereview.chromium.org/1827743002/diff/60001/content/browser/devtools/protocol/network_handler.cc File content/browser/devtools/protocol/network_handler.cc (right): https://codereview.chromium.org/1827743002/diff/60001/content/browser/devtools/protocol/network_handler.cc#newcode250 content/browser/devtools/protocol/network_handler.cc:250: devtools_cookie->set_same_site("Strict"); On 2016/04/05 at 17:34:53, dgozman wrote: > ...
4 years, 8 months ago (2016-04-05 17:55:10 UTC) #11
dgozman
https://codereview.chromium.org/1827743002/diff/60001/third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js File third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js (right): https://codereview.chromium.org/1827743002/diff/60001/third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js#newcode264 third_party/WebKit/Source/devtools/front_end/components_lazy/CookiesTable.js:264: data.sameSite = (cookie.sameSite() ? cookie.sameSite() : ""); On 2016/04/05 ...
4 years, 8 months ago (2016-04-05 17:58:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1827743002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1827743002/80001
4 years, 8 months ago (2016-04-06 05:59:03 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-06 07:16:01 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 07:17:11 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4e0bddf6d2123979b95860fae65429014828b33f
Cr-Commit-Position: refs/heads/master@{#385393}

Powered by Google App Engine
This is Rietveld 408576698