From e15dca98ed5342c94a7efc83256b3885c8088dbe Mon Sep 17 00:00:00 2001 From: Jacek Skiba Date: Mon, 17 Oct 2022 18:28:34 +0200 Subject: [PATCH] [ARRISEOS-43048]: Fix SameSite attribute presentation in Web Inspector In Web Inspector, in Network tab SameSite attribute is shown as Strict even when attribute was set to None. Fix is based on upstream PR: https://github.com/WebKit/WebKit/commit/644049b6feb --- Source/WebInspectorUI/UserInterface/Models/Cookie.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/WebInspectorUI/UserInterface/Models/Cookie.js b/Source/WebInspectorUI/UserInterface/Models/Cookie.js index cd2ad4e026ea6..e9f6ea5a48479 100644 --- a/Source/WebInspectorUI/UserInterface/Models/Cookie.js +++ b/Source/WebInspectorUI/UserInterface/Models/Cookie.js @@ -116,18 +116,19 @@ WI.Cookie = class Cookie } } - // Derived from . static parseSameSiteAttributeValue(attributeValue) { if (!attributeValue) - return WI.Cookie.SameSiteType.Strict; + return WI.Cookie.SameSiteType.None; + switch (attributeValue.toLowerCase()) { case "lax": return WI.Cookie.SameSiteType.Lax; case "strict": - default: return WI.Cookie.SameSiteType.Strict; } + + return WI.Cookie.SameSiteType.None; } static parseSetCookieResponseHeader(header)