Closed Bug 926479 Opened 11 years ago Closed 11 years ago

Replace className comparisons with classList.contains in SideMenuWidget.jsm

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 27

People

(Reporter: jaws, Assigned: rtnpro)

Details

(Whiteboard: [good first bug][mentor=jaws][lang=js])

Attachments

(1 file)

+++ 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 :)
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) → review?(rcampbell)
Attachment #816830 - Flags: review?(rcampbell) → review+
Keywords: checkin-needed
Whiteboard: [good first bug][mentor=jaws][lang=js] → [good first bug][mentor=jaws][lang=js][fixed-in-fx-team]
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
Congratulations on your first patch!
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: