Closed Bug 1612965 Opened 4 years ago Closed 4 years ago

Remove unused netmonitor.ws.time.format

Categories

(DevTools :: Netmonitor, task, P3)

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: Harald, Assigned: udaymewada1)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Follow up from bug 1612621.

I would like to work on it.

Hi Harald! I searched for the above bug and found that ' netmonitor.ws.time.format ' is found in two files.

* devtools/client/locales/en-US/netmonitor.properties
* dentools/client/netmonitor/src/components/websockets/FrameListColumntime.js

In the first one defined the format in which "netmonitor.ws.time.format" is storing the time.

netmonitor.ws.time.format=%1$S.%2$S

In the second file

formatTime(highResTimeStamp) {
    const timeStamp = Math.floor(highResTimeStamp / 1000);
    const hoursMinutesSeconds = dateTimeFormat.format(new Date(timeStamp));
    return L10N.getFormatStr(
      "netmonitor.ws.time.format",
      hoursMinutesSeconds,
      String(timeStamp % 1000).padStart(3, "0")
    );
  }

I guess above methodformatTime() taking highResTimeStamp as parameter which is in milliseconds. So it converts first into seconds and so on.
Do you have any recommendations to where I can start looking for solving it?

Hi Uday,

the second code path was removed in bug 1612621 (just landed yesterday, probably after you checked out mc), only the l10n file is left: https://searchfox.org/mozilla-central/search?q=netmonitor.ws.time.format&case=false&regexp=false&path=

Flags: needinfo?(udaymewada1)
Assignee: nobody → udaymewada1
Status: NEW → ASSIGNED
Flags: needinfo?(udaymewada1)

sir, I thought this bug is resolved but still showing assigned to me!

Flags: needinfo?(hkirschner)

I just out the patch into the queue for landing. You can do this yourself as well via phabricator, see: https://moz-conduit.readthedocs.io/en/latest/walkthrough.html#landing-the-changes

Flags: needinfo?(hkirschner)
Pushed by hkirschner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07950851001a
Removed unused 'netmonitor.ws.time.format'. r=Harald
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: