network overrides state leaks across toolboxes
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(2 files)
STRs:
- set script override on a file
- close and reopen toolbox
ER:
Override should no longer be applied, purple dot should not be displayed in the debugger.
AR:
Override is not applied but the debugger is still showing the purple icon
This is because:
- devtools/client/framework/reducers/network-overrides.js creates
initialReducerState
as a singleton shared by all toolboxes - we directly mutate
mutableOverrides
when updating the state
It was intended to make the state mutable here, but we should get rid of the initialReducerState
which leads to unintentionally leaking the overrides across toolboxes.
Assignee | ||
Comment 1•1 month ago
|
||
The current classname "override" is generic and hard to grep.
This will allow to use it in tests a bit more sanely
Updated•1 month ago
|
Assignee | ||
Comment 2•1 month ago
|
||
Depends on D233897
Modules such as devtools/client/framework/reducers/network-overrides.js are only
loaded once, making the initial state a singleton.
If we mutate this, it will therefore apply to all toolboxes until the browser is
closed.
Comment 4•1 month ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e57cb85ece9e
https://hg.mozilla.org/mozilla-central/rev/4c700f28e869
Description
•