Use Intl.ListFormat for netmonitor waterfall tooltip
Categories
(DevTools :: Netmonitor, task)
Tracking
(firefox139 fixed)
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: eemeli, Assigned: eemeli)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Currently, we're requiring localisers to specify a list item delimiter specifically for this string, including an escaped trailing space for many locales. We should rather use Intl.ListFormat
, which already has the required data.
Assignee | ||
Comment 1•3 months ago
|
||
I put together a small patch for this, but I can't find a way to verify it -- is the devtools/client/netmonitor/src/components/request-list/RequestListColumnWaterfall.js
component actually used any more, or has it been replaced by the new profiler?
Comment 2•3 months ago
|
||
Hello eemeli, thanks for looking into this
There's actually a typo in this component that prevents the code you're modifying to be reached.
Applying the following diff, I can see that the localized string is being hit, and hovering the timing bar does show the result of timingTooltip
(see screenshot)
diff --git a/devtools/client/netmonitor/src/components/request-list/RequestListColumnWaterfall.js b/devtools/client/netmonitor/src/components/request-list/RequestListColumnWaterfall.js
--- a/devtools/client/netmonitor/src/components/request-list/RequestListColumnWaterfall.js
+++ b/devtools/client/netmonitor/src/components/request-list/RequestListColumnWaterfall.js
@@ -183,7 +183,7 @@ module.exports = class RequestListColumn
return dom.td(
{
className: "requests-list-column requests-list-waterfall",
- onMouseOver: this.handeMouseOver,
+ onMouseOver: this.handleMouseOver,
},
div(
{
Let us know if you have any other question
Assignee | ||
Comment 3•3 months ago
|
||
Assignee | ||
Comment 4•3 months ago
|
||
Ah, that does explain things. With that (now included in the patch) I could see my change working locally.
Comment 6•3 months ago
|
||
bugherder |
Updated•3 months ago
|
Description
•