Bug 1483440 - Part 4 - Don't send purge-domain-data when cleaning up site preferences. r=baku

As far as I can tell this was only ever done to give legacy add-ons the chance to
clean up user data and isn't needed anymore (and had the strange side effect that e.g.
localStorage was cleared when removing the site zoom settings).

Differential Revision: https://phabricator.services.mozilla.com/D16463

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Johann Hofmann 2019-01-17 17:41:30 +00:00
parent 43ac055f78
commit 0ecba2db7d

View File

@ -645,9 +645,6 @@ const PreferencesCleaner = {
.getService(Ci.nsIContentPrefService2);
cps2.removeBySubdomain(aHost, null, {
handleCompletion: aReason => {
// Notify other consumers, including extensions
Services.obs.notifyObservers(null, "browser:purge-domain-data",
aHost);
if (aReason === cps2.COMPLETE_ERROR) {
aReject();
} else {