Closed
Bug 926479
Opened 11 years ago
Closed 11 years ago
Replace className comparisons with classList.contains in SideMenuWidget.jsm
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 27
People
(Reporter: jaws, Assigned: rtnpro)
Details
(Whiteboard: [good first bug][mentor=jaws][lang=js])
Attachments
(1 file)
1.06 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #926477 +++
+++ This bug was initially created as a clone of Bug #926471 +++
See the following search for each instance of this: http://mxr.mozilla.org/mozilla-central/search?string=.className+%3D%3D&find=SideMenuWidget.jsm&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central
If someone adds a new className to the element, these checks will fail. They should instead be using .classList.contains().
I'd love to work on it. I saw the code here http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/widgets/SideMenuWidget.jsm#170 and the fix looks trivial. However, I'd like to setup my devel environment first and test the fix that I have thought of.
Thanks :)
Reporter | ||
Comment 2•11 years ago
|
||
Great! After you get a patch written and tested, then you can attach the patch to this bug and set the review flag to '?' and put in :robcee as the reviewer.
Assignee: nobody → rtnpro
Status: NEW → ASSIGNED
Attachment #816830 -
Flags: review?(jaws)
Attachment #816830 -
Flags: review?(jaws) → review?(rcampbell)
Updated•11 years ago
|
Attachment #816830 -
Flags: review?(rcampbell) → review+
Reporter | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [good first bug][mentor=jaws][lang=js] → [good first bug][mentor=jaws][lang=js][fixed-in-fx-team]
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][mentor=jaws][lang=js][fixed-in-fx-team] → [good first bug][mentor=jaws][lang=js]
Target Milestone: --- → Firefox 27
Reporter | ||
Comment 6•11 years ago
|
||
Congratulations on your first patch!
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•