Closed Bug 1811130 Opened 2 years ago Closed 2 years ago

Target.setDiscoverTargets should not emit targetCreated events when ran if discover is false

Categories

(Remote Protocol :: CDP, defect, P5)

Firefox 111
defect

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: canadahonk, Assigned: canadahonk)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce:

Call Target.setDiscoverTargets({ discover: false }) in the CDP WebSocket.

Actual results:

Target.targetCreated events are emitted.

Expected results:

Target.targetCreated events should not be emitted when discover is false. Ensured behavior with Chromium.

To clarify: the events should not be emitted for all valid targets when it is called.

Summary: Target.setDiscoverTargets should not emit targetCreated events when discover is false → Target.setDiscoverTargets should not emit targetCreated events when ran if discover is false

Target.setDiscoverTargets should only emit targetCreated events when ran
with discover as true. Ensured this behavior is also matched in
Chromium. A new test is likely unneeded as this seemed like an oversight
with no regression likely possible.

Depends on D167209

Assignee: nobody → oj
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: -- → S3
Priority: -- → P5
Pushed by oj@oojmed.com: https://hg.mozilla.org/integration/autoland/rev/19de95401f39 [cdp] Fix Target.setDiscoverTargets emitting targetCreated events with discover false r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: