Closed Bug 1832567 Opened 2 years ago Closed 2 years ago

(really) Clear breakpoints reducer on each target/thread removal

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files)

Similarly to bug 1814177, the breakpoints reducer already tries to clear itself on thread removal, unfortunately this code doesn't work because source.thread is no longer defined since we moved to breakpoint per URL.

Unfortunately, breakpoints aren't bound to a particular thread.
Instead they are bound to the source were the breakpoint is set.
Also sources aren't bound to a particular thread, this is especially true
when we are against an original source which may be used in distinct threads.

So let's use the sources list dispatched on REMOVE_THREAD to identify
the breakpoint to remove when a thread is removed.

This attribute has been removed since we moved to breakpoints per URL.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

Actions are dispatched synchronously by default, unless we dispatch an thunk action,
which may be asynchronous (but not always); or for action using "promise" attribute
which is made asynchronous by a middleware.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/75e719602096 [devtools] Clear breakpoints correctly on thread removal. r=devtools-reviewers,bomsy https://hg.mozilla.org/integration/autoland/rev/14df400dba55 [devtools] Stop using source.thread which no longer exists. r=devtools-reviewers,bomsy https://hg.mozilla.org/integration/autoland/rev/21cb9d7c0aa8 [devtools] Avoid using await for synchronous actions. r=devtools-reviewers,bomsy
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: