Closed
Bug 1299677
Opened 8 years ago
Closed 2 years ago
bitmasksForCategory for CATEGORY_MASK is using a string sort on Numbers
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect, P3)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(firefox51 affected)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
firefox51 | --- | affected |
People
(Reporter: MattN, Unassigned)
References
()
Details
> If the category is mapped to by multiple masks, CATEGORY_MASK for that name must be called with an additional argument specifying the desired id (in ascending order). The code seems to be unintentionally using a string sort on the masks so while it may be "ascending order" it may not be the order expected (as I would expect a numeric sort to be used): [64, 128, 4].sort() => [128, 4, 64] https://dxr.mozilla.org/mozilla-central/rev/b3ec8a3373e8faca26c39e9ff577a2d4f8b6927a/devtools/client/performance/modules/categories.js#94 Note the `+mask` to cast to a Number from a String before sorting. This may not matter in practice since I only see one mask per category at the moment but I noticed it while looking for this pattern or problem.
Reporter | ||
Updated•8 years ago
|
Summary: bitmasksForCategory for [CATEGORY_MASK is using a string sort on Numbers → bitmasksForCategory for CATEGORY_MASK is using a string sort on Numbers
Updated•8 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 1•2 years ago
|
||
Now that we replaced the old performance panel by the Firefox Profiler (see Bug 1668219) we're closing bugs related to this. If you see similar issues on the new profiler, please file another bug, and we'll be happy to have a look.
Filter on MASSCLOSEOLDPERFTOOLBUGS.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•