Name Description Size
manifest.toml 94
test_moved_origin_directory_cleanup.py let promise = new Promise(resolve => { function observer() { Services.obs.removeObserver(observer, "cookie-saved-on-disk"); resolve(); } Services.obs.addObserver(observer, "cookie-saved-on-disk"); }); Services.cookies.add( "example.local", "path", "name", "value", false, false, false, Math.floor(Date.now() / 1000) + 24 * 60 * 60, {}, Ci.nsICookie.SAMESITE_NONE, Ci.nsICookie.SCHEME_UNSET ); return promise; 5641
test_service_worker_at_shutdown.py let serviceWorkerManager = Cc["@mozilla.org/serviceworkers/manager;1"].getService( Ci.nsIServiceWorkerManager ); let principal = Services.scriptSecurityManager.createContentPrincipalFromOrigin(arguments[0]); let serviceWorkers = serviceWorkerManager.getAllRegistrations(); for (let i = 0; i < serviceWorkers.length; i++) { let sw = serviceWorkers.queryElementAt( i, Ci.nsIServiceWorkerRegistrationInfo ); if (sw.principal.origin == principal.origin) { return true; } } return false; 2626