diff --git a/injected/src/content-feature.js b/injected/src/content-feature.js index c8f7ee08e5..bc1208c7ea 100644 --- a/injected/src/content-feature.js +++ b/injected/src/content-feature.js @@ -217,9 +217,13 @@ export default class ContentFeature extends ConfigFeature { addDebugFlag() { if (this.#isDebugFlagSet) return; this.#isDebugFlagSet = true; - this.messaging?.notify('addDebugFlag', { - flag: this.name, - }); + try { + this.messaging?.notify('addDebugFlag', { + flag: this.name, + }); + } catch (_e) { + // Ignore thrown error from a potentially missing handler (on WebKit). + } } /**