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

Issue 2554293002: devtools: Make it possible to retrieve all cookies (Closed)

Created:
4 years ago by Sami
Modified:
4 years ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

devtools: Make it possible to retrieve all cookies This patch adds a new "global" mode to the Network.getCookies command which allows retrieving all cookies in the browser cookie jar instead of just the cookies for the current URL. BUG=668932, 166637 Committed: https://crrev.com/b0512a0bd23b83a5a00c79fd1169b820f3673e04 Cr-Commit-Position: refs/heads/master@{#437246}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make tests robust #

Patch Set 3 : Update front-end #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -14 lines) Patch
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 1 chunk +67 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/network_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/network_handler.cc View 3 chunks +41 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 chunk +3 lines, -0 lines 4 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
Sami
PTAL.
4 years ago (2016-12-07 10:57:08 UTC) #5
dgozman
lgtm https://codereview.chromium.org/2554293002/diff/1/content/browser/devtools/protocol/devtools_protocol_browsertest.cc File content/browser/devtools/protocol/devtools_protocol_browsertest.cc (right): https://codereview.chromium.org/2554293002/diff/1/content/browser/devtools/protocol/devtools_protocol_browsertest.cc#newcode1498 content/browser/devtools/protocol/devtools_protocol_browsertest.cc:1498: EXPECT_TRUE(cookies->GetDictionary(0, &cookie)); Bots show that order is unpredictable ...
4 years ago (2016-12-07 19:25:05 UTC) #8
Sami
Thanks! https://codereview.chromium.org/2554293002/diff/1/content/browser/devtools/protocol/devtools_protocol_browsertest.cc File content/browser/devtools/protocol/devtools_protocol_browsertest.cc (right): https://codereview.chromium.org/2554293002/diff/1/content/browser/devtools/protocol/devtools_protocol_browsertest.cc#newcode1498 content/browser/devtools/protocol/devtools_protocol_browsertest.cc:1498: EXPECT_TRUE(cookies->GetDictionary(0, &cookie)); On 2016/12/07 19:25:05, dgozman wrote: > ...
4 years ago (2016-12-08 10:52:10 UTC) #9
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/2554293002/20001
4 years ago (2016-12-08 10:52:28 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/352429)
4 years ago (2016-12-08 13:26:39 UTC) #14
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/2554293002/40001
4 years ago (2016-12-08 13:56:21 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-08 15:14:52 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b0512a0bd23b83a5a00c79fd1169b820f3673e04 Cr-Commit-Position: refs/heads/master@{#437246}
4 years ago (2016-12-08 15:18:30 UTC) #22
pfeldman
https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode1231 third_party/WebKit/Source/core/inspector/browser_protocol.json:1231: { "name": "global", "type": "boolean", "optional": true, "description": "If ...
4 years ago (2016-12-09 02:42:03 UTC) #24
pfeldman
https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode286 third_party/WebKit/Source/core/inspector/browser_protocol.json:286: { "name": "cookies", "type": "array", "items": { "$ref": "Network.Cookie" ...
4 years ago (2016-12-09 02:49:15 UTC) #25
Sami
4 years ago (2016-12-09 14:32:50 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/inspector/browser_protocol.json (right):

https://codereview.chromium.org/2554293002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/inspector/browser_protocol.json:1231: { "name":
"global", "type": "boolean", "optional": true, "description": "If true, returns
all cookies, otherwise only the cookies for the current URL." }
On 2016/12/09 02:49:15, pfeldman wrote:
> Discussed it with dgozman@. Why don't we add another method getAllCookies
> instead?

Sounds like a fine idea -- doing that here:
https://codereview.chromium.org/2568503002/

Powered by Google App Engine
This is Rietveld 408576698