Closed
Bug 1757816
Opened 3 years ago
Closed 3 years ago
Inspector EditingSession:getPropertyIndex ignores rule argument and always uses the first rule
Categories
(DevTools :: Inspector: Rules, defect, P3)
DevTools
Inspector: Rules
Tracking
(firefox100 fixed)
RESOLVED
FIXED
100 Branch
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: jdescottes, Assigned: saihemanth9019)
Details
Attachments
(1 file)
The following method:
getPropertyIndex: function(name, rule = this._rules[0]) {
const elementStyleRule = this._rules[0];
if (!elementStyleRule.declarations.length) {
return -1;
}
return elementStyleRule.declarations.findIndex(p => p.name === name);
},
is obviously wrong and ignores its rule
argument
elementStyleRule
should be dropped and we should use rule
instead. Hopefully this doesn't break any assumption.
Reporter | ||
Comment 1•3 years ago
|
||
Hi Sai!
This is a small issue I spotted while reviewing your patch for Bug 1717176. Would you be interested in trying to fix this?
Flags: needinfo?(saihemanth9019)
Assignee | ||
Comment 2•3 years ago
|
||
Thanks Julian, I can take this up. I'll send a patch in a short while.
Flags: needinfo?(saihemanth9019)
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → saihemanth9019
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/902ab4b1756d
Use rule parameter in inspector EditingSession:getPropertyIndex. r=jdescottes
Reporter | ||
Comment 5•3 years ago
|
||
Thanks for picking this up quickly :)
Comment 6•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox100:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•