Skip to content

Commit

Permalink
Merge pull request #163 from sailfishos/URLQueryStrippingListService-…
Browse files Browse the repository at this point in the history
…improvement

[sailfishos][gecko] Suppress URLQueryStrippingListService.jsm error improvement
  • Loading branch information
rainemak authored Sep 30, 2024
2 parents 79d6d7a + c1f425f commit 9ead1da
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,25 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1706608
https://phabricator.services.mozilla.com/D117376

https://bugzilla.mozilla.org/show_bug.cgi?id=1723981

Co-authored-by: Raine Makelainen <raine.makelainen@jolla.com>
---
.../components/antitracking/URLQueryStrippingListService.jsm | 4 ++++
1 file changed, 4 insertions(+)
.../components/antitracking/URLQueryStrippingListService.jsm | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/toolkit/components/antitracking/URLQueryStrippingListService.jsm b/toolkit/components/antitracking/URLQueryStrippingListService.jsm
index 991fd0d11f0d..b8eb2c25c358 100644
index 991fd0d11f0d..cb5dd63f1742 100644
--- a/toolkit/components/antitracking/URLQueryStrippingListService.jsm
+++ b/toolkit/components/antitracking/URLQueryStrippingListService.jsm
@@ -220,6 +220,10 @@ class URLQueryStrippingListService {
@@ -220,6 +220,11 @@ class URLQueryStrippingListService {
let prefValue = Services.prefs.getStringPref(data, "");
this._onPrefUpdate(data, prefValue);
break;
+ case "profile-after-change":
+ if (!!this.initialized) {
+ Cu.reportError(`Unexpected post-init event ${topic}`);
+ }
+ break;
default:
Cu.reportError(`Unexpected event ${topic}`);
}

0 comments on commit 9ead1da

Please sign in to comment.