From 5c7e88a10472697d01c03cc312bed6adf308cc3b Mon Sep 17 00:00:00 2001 From: rebloor Date: Sat, 9 Nov 2024 07:04:08 +1300 Subject: [PATCH] cookies.get orders cookies according to RFC-6265 (#24634) --- webextensions/api/cookies.json | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/webextensions/api/cookies.json b/webextensions/api/cookies.json index 994d0d16513658..702f52f0d27e86 100644 --- a/webextensions/api/cookies.json +++ b/webextensions/api/cookies.json @@ -207,7 +207,10 @@ "edge": "mirror", "firefox": { "version_added": "45", - "notes": "Provides access to cookies from private browsing mode and container tabs since version 52." + "notes": [ + "Provides access to cookies from private browsing mode and container tabs since version 52.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie with the longest matching path is returned; previously, the earliest created cookie was returned." + ] }, "firefox_android": { "version_added": "48" @@ -287,7 +290,10 @@ }, "firefox": { "version_added": "45", - "notes": "Before version 52, the 'tabIds' list was empty and only cookies from the default cookie store were returned. From version 52 onwards, this has been fixed and the result includes cookies from private browsing mode and container tabs." + "notes": [ + "Before version 52, the 'tabIds' list was empty and only cookies from the default cookie store were returned. From version 52 onwards, this has been fixed and the result includes cookies from private browsing mode and container tabs.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie with the longest matching path is returned first: previously, the earliest created cookie was returned first." + ] }, "firefox_android": { "version_added": "48" @@ -452,11 +458,17 @@ "edge": "mirror", "firefox": { "version_added": "45", - "notes": "Before version 56, this function did not remove cookies from private browsing mode. From version 56 onwards this is fixed." + "notes": [ + "Before version 56, this function did not remove cookies from private browsing mode. From version 56 onwards this is fixed.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie with the longest matching path is deleted: previously, the earliest created cookie was deleted." + ] }, "firefox_android": { "version_added": "48", - "notes": "Before version 56, this function did not remove cookies from private browsing mode. From version 56 onwards this is fixed." + "notes": [ + "Before version 56, this function did not remove cookies from private browsing mode. From version 56 onwards this is fixed.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie with the longest matching path is deleted: previously, the earliest created cookie was deleted." + ] }, "opera": "mirror", "safari": { @@ -631,11 +643,17 @@ "edge": "mirror", "firefox": { "version_added": "45", - "notes": "Before version 56, this function did not modify cookies in private browsing mode. From version 56 onwards this is fixed." + "notes": [ + "Before version 56, this function did not modify cookies in private browsing mode. From version 56 onwards this is fixed.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie returned by the promise is the one with the longest matching path: previously, the earliest created cookie was returned." + ] }, "firefox_android": { "version_added": "48", - "notes": "Before version 56, this function did not modify cookies in private browsing mode. From version 56 onwards this is fixed." + "notes": [ + "Before version 56, this function did not modify cookies in private browsing mode. From version 56 onwards this is fixed.", + "From Firefox 133, sorts cookies according to RFC 6265, section 5.4. This means the cookie returned by the promise is the one with the longest matching path: previously, the earliest created cookie was returned." + ] }, "opera": "mirror", "safari": [