mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 18:37:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
15
extensions/cookie/test/file_chromecommon.js
Normal file
15
extensions/cookie/test/file_chromecommon.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
let { classes: Cc, utils: Cu, interfaces: Ci } = Components;
|
||||
|
||||
let cs = Cc["@mozilla.org/cookiemanager;1"]
|
||||
.getService(Ci.nsICookieManager2);
|
||||
|
||||
addMessageListener("getCookieCountAndClear", () => {
|
||||
let count = 0;
|
||||
for (let list = cs.enumerator; list.hasMoreElements(); list.getNext())
|
||||
++count;
|
||||
cs.removeAll();
|
||||
|
||||
sendAsyncMessage("getCookieCountAndClear:return", { count });
|
||||
});
|
||||
|
||||
cs.removeAll();
|
||||
Loading…
Add table
Add a link
Reference in a new issue