diff --git a/toolkit/components/extensions/ext-cookies.js b/toolkit/components/extensions/ext-cookies.js index 1e13b754d62c..4ddd3e018aef 100644 --- a/toolkit/components/extensions/ext-cookies.js +++ b/toolkit/components/extensions/ext-cookies.js @@ -331,7 +331,8 @@ extensions.registerSchemaAPI("cookies", "cookies", (extension, context) => { notify(false, subject, "explicit"); break; case "changed": - notify(false, subject, "overwrite"); + notify(true, subject, "overwrite"); + notify(false, subject, "explicit"); break; case "batch-deleted": subject.QueryInterface(Ci.nsIArray); diff --git a/toolkit/components/extensions/test/mochitest/test_ext_cookies_permissions.html b/toolkit/components/extensions/test/mochitest/test_ext_cookies_permissions.html index 43c80afba1d3..c5e132281e93 100644 --- a/toolkit/components/extensions/test/mochitest/test_ext_cookies_permissions.html +++ b/toolkit/components/extensions/test/mochitest/test_ext_cookies_permissions.html @@ -73,7 +73,7 @@ function* testCookies(options) { changed.splice(evicted, 1); } - browser.test.assertEq("x:explicit,x:overwrite,x:explicit,foo:overwrite,bar:explicit,deleted:explicit", + browser.test.assertEq("x:explicit,x:overwrite,x:explicit,x:explicit,foo:overwrite,foo:explicit,bar:explicit,deleted:explicit", changed.join(","), "expected changes"); } else { browser.test.assertEq("", changed.join(","), "expected no changes");