Bug 1890759 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The file devtools/server/actors/utils/event-breakpoints.js is unconditionally using `Services.prefs.getBoolPref` at https://searchfox.org/mozilla-central/rev/1f27a4022f9f1269d897526c1c892a57743e650c/devtools/server/actors/utils/event-breakpoints.js#134 but throws with `Services.prefs is undefined`. I imagine Services.prefs is unavailable in workers?
This probably means event breakpoints are broken for worker targets at the moment.
The file devtools/server/actors/utils/event-breakpoints.js is unconditionally using `Services.prefs.getBoolPref` at https://searchfox.org/mozilla-central/rev/1f27a4022f9f1269d897526c1c892a57743e650c/devtools/server/actors/utils/event-breakpoints.js#134 but throws with `Services.prefs is undefined`. I imagine Services.prefs is unavailable in workers?

This probably means event breakpoints are broken for worker targets at the moment.

Note that the another condition from the same file breaks on load `"InvokeEvent" in win` because `win` is also undefined in worker context. 
Edit: I am not sure which event breakpoints are actually supported for worker targets however.
The file devtools/server/actors/utils/event-breakpoints.js is unconditionally using `Services.prefs.getBoolPref` at https://searchfox.org/mozilla-central/rev/1f27a4022f9f1269d897526c1c892a57743e650c/devtools/server/actors/utils/event-breakpoints.js#134 but throws with `Services.prefs is undefined`. I imagine Services.prefs is unavailable in workers?

This probably means event breakpoints are broken for worker targets at the moment.

Note that another condition from the same file breaks on load `"InvokeEvent" in win` because `win` is also undefined in worker context. 
Edit: I am not sure which event breakpoints are actually supported for worker targets however.

Back to Bug 1890759 Comment 0