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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js

Issue 2554293002: devtools: Make it possible to retrieve all cookies (Closed)
Patch Set: Update front-end Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js b/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
index 90cd748dd67039ea2b95f687a726e2253bcacdbf..aa63d0b3d8aa2ae2b874616397f4821421f67885 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CookieParser.js
@@ -384,8 +384,10 @@ SDK.Cookies.getCookiesAsync = function(callback) {
}
var barrier = new CallbackBarrier();
- for (var target of SDK.targetManager.targets(SDK.Target.Capability.Network))
- target.networkAgent().getCookies(barrier.createCallback(mycallback.bind(null, target)));
+ for (var target of SDK.targetManager.targets(SDK.Target.Capability.Network)) {
+ var global = false;
+ target.networkAgent().getCookies(global, barrier.createCallback(mycallback.bind(null, target)));
+ }
barrier.callWhenDone(callback.bind(null, allCookies));
};

Powered by Google App Engine
This is Rietveld 408576698