Closed
Bug 926477
Opened 10 years ago
Closed 9 years ago
Replace className comparisons with classList.contains in browser-places.js
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 29
People
(Reporter: jaws, Assigned: waldion)
Details
(Whiteboard: [good first bug][mentor=jaws][lang=js])
Attachments
(1 file, 1 obsolete file)
1.33 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
+++ 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=browser-places.js&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().
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → waldion
Status: NEW → ASSIGNED
Fixed the bug, running the tests now.
Flags: needinfo?(waldion)
The fix is included in the patch uploaded by betschart.ma@gmail.com (for bug 926487)
Attachment #8344187 -
Flags: review?(jaws)
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8344187 [details] [diff] [review] Replace className comparisons Review of attachment 8344187 [details] [diff] [review]: ----------------------------------------------------------------- Can you please add a patch summary of: "Bug 926477: Replace className comparisons with classList.contains in browser-places.js. r=jaws" and reupload? ::: browser/base/content/browser-places.js @@ +102,5 @@ > this.cancelButtonOnCommand(); > break; > case KeyEvent.DOM_VK_RETURN: > + if (aEvent.target.classList.contains("expander-up") || > + aEvent.target.classList.contains("expander-down") || This looks good, but an extra space got added in the beginning of this line.
Attachment #8344187 -
Flags: review?(jaws) → review+
Attachment #8345311 -
Flags: review?(jaws)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8345311 [details] [diff] [review] 926477.patch Review of attachment 8345311 [details] [diff] [review]: ----------------------------------------------------------------- This looks good. I had to fix the commit message as all of the patch details got pulled in to the summary somehow. I've pushed this to the fx-team repository. If all goes as planned, it should be merged to mozilla-central in a day or two, and then the following day the changes will appear in the Nightly build of Firefox. Congratulations on your first patch! :) https://hg.mozilla.org/integration/fx-team/rev/764e877917a4
Attachment #8345311 -
Flags: review?(jaws) → review+
Reporter | ||
Updated•9 years ago
|
Attachment #8344187 -
Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/764e877917a4
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
You need to log in
before you can comment on or make changes to this bug.
Description
•