mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
The first change we can make is to simplify the PrivacyLevel.canSave() method itself as it only takes a single argument, `isHTTPS`. Callers shouldn't be required to pass an object, they should simply pass a boolean. The second change here is to cleanup SessionCookies.jsm that still passes the old `isPinned` argument that's no longer needed. We can remove some house keeping and simplify the cookie collection code. SessionCookies.getHostsForWindow() that previously returned a map from hostnames to a site's pinned status (tab.pinned) can now simply return a Set containing all hostnames found in a window.