Closed
Bug 1717979
Opened 5 years ago
Closed 5 years ago
DevTools watch methods should throw when provided with unknown resource/target types
Categories
(DevTools :: Framework, task, P3)
DevTools
Framework
Tracking
(firefox91 fixed)
RESOLVED
FIXED
91 Branch
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The following destroy code was failing to unwatch REFLOW resources properly because it used ResourceCommand.REFLOW instead of ResourceCommand.TYPES.REFLOW.
untrackReflowsInSelection() {
this.commands.resourceCommand.unwatchResources(
[this.commands.resourceCommand.REFLOW],
{
onAvailable: this.onReflowInSelection,
}
);
},
This kind of mistake could be prevented at framework level by validating the types passed to watch/unwatch methods.
Updated•5 years ago
|
Blocks: devtools-debtools
| Assignee | ||
Comment 1•5 years ago
|
||
Depends on D118669
Updated•5 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d248b995cc49
[devtools] watch/unwatch APIs should throw when provided with invalid types r=ochameau
Comment 3•5 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox91:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•