diff options
Diffstat (limited to 'devtools/server/actors/utils')
-rw-r--r-- | devtools/server/actors/utils/event-breakpoints.js | 4 | ||||
-rw-r--r-- | devtools/server/actors/utils/inactive-property-helper.js | 2 | ||||
-rw-r--r-- | devtools/server/actors/utils/sources-manager.js | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/devtools/server/actors/utils/event-breakpoints.js b/devtools/server/actors/utils/event-breakpoints.js index 8fbefec804..eddd986e87 100644 --- a/devtools/server/actors/utils/event-breakpoints.js +++ b/devtools/server/actors/utils/event-breakpoints.js @@ -200,6 +200,10 @@ const AVAILABLE_BREAKPOINTS = [ items: [ generalEvent("keyboard", "beforeinput"), generalEvent("keyboard", "input"), + generalEvent("keyboard", "textInput", () => + // Services.prefs isn't available on worker targets + Services.prefs?.getBoolPref("dom.events.textevent.enabled") + ), generalEvent("keyboard", "keydown"), generalEvent("keyboard", "keyup"), generalEvent("keyboard", "keypress"), diff --git a/devtools/server/actors/utils/inactive-property-helper.js b/devtools/server/actors/utils/inactive-property-helper.js index 3f6e748167..9f7a685f75 100644 --- a/devtools/server/actors/utils/inactive-property-helper.js +++ b/devtools/server/actors/utils/inactive-property-helper.js @@ -88,10 +88,10 @@ const HIGHLIGHT_PSEUDO_ELEMENTS_STYLING_SPEC_URL = const HIGHLIGHT_PSEUDO_ELEMENTS = [ "::highlight", "::selection", + "::target-text", // Below are properties not yet implemented in Firefox (Bug 1694053) "::grammar-error", "::spelling-error", - "::target-text", ]; const REGEXP_HIGHLIGHT_PSEUDO_ELEMENTS = new RegExp( `${HIGHLIGHT_PSEUDO_ELEMENTS.join("|")}` diff --git a/devtools/server/actors/utils/sources-manager.js b/devtools/server/actors/utils/sources-manager.js index fda37a3184..981a7c8213 100644 --- a/devtools/server/actors/utils/sources-manager.js +++ b/devtools/server/actors/utils/sources-manager.js @@ -101,7 +101,8 @@ class SourcesManager extends EventEmitter { this._thread.threadLifetimePool.manage(actor); this._sourceActors.set(source, actor); - if (this._sourcesByInternalSourceId && source.id) { + // source.id can be 0 for WASM sources + if (this._sourcesByInternalSourceId && Number.isInteger(source.id)) { this._sourcesByInternalSourceId.set(source.id, source); } @@ -157,7 +158,8 @@ class SourcesManager extends EventEmitter { if (!this._sourcesByInternalSourceId) { this._sourcesByInternalSourceId = new Map(); for (const source of this._thread.dbg.findSources()) { - if (source.id) { + // source.id can be 0 for WASM sources + if (Number.isInteger(source.id)) { this._sourcesByInternalSourceId.set(source.id, source); } } |