commit | 20ed4f2bd282537f404af9d45df1333d5aeb21f5 | [log] [tgz] |
---|---|---|
author | Danil Somsikov <dsv@chromium.org> | Wed Feb 02 10:17:26 2022 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 02 11:08:21 2022 |
tree | 59c21c57119ed173aa5d82d4823396b3979cbb00 | |
parent | 0c881d5071f91a28da8bc73af51553bf21b4c825 [diff] |
Fix cookie editing when paritioned cookies are disabled. Bug: 1290196 Change-Id: I05792ff5251d3da2a39b5708788fb95ec366b9f5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3430926 Auto-Submit: Danil Somsikov <dsv@chromium.org> Commit-Queue: Danil Somsikov <dsv@chromium.org> Reviewed-by: Wolfgang Beyer <wolfi@chromium.org> Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
diff --git a/front_end/ui/legacy/components/cookie_table/CookiesTable.ts b/front_end/ui/legacy/components/cookie_table/CookiesTable.ts index 63fcb27..6089800 100644 --- a/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +++ b/front_end/ui/legacy/components/cookie_table/CookiesTable.ts
@@ -677,7 +677,7 @@ cookie.addAttribute( SDK.Cookie.Attributes.SourcePort, Number.parseInt(data[SDK.Cookie.Attributes.SourcePort], 10) || undefined); } - if (SDK.Cookie.Attributes.PartitionKey in data) { + if (data[SDK.Cookie.Attributes.PartitionKey]) { cookie.addAttribute(SDK.Cookie.Attributes.PartitionKey, data[SDK.Cookie.Attributes.PartitionKey]); } cookie.setSize(data[SDK.Cookie.Attributes.Name].length + data[SDK.Cookie.Attributes.Value].length);