Closed Bug 1916651 Opened 2 years ago Closed 2 years ago

Timings for data URL events is incorrect

Categories

(Remote Protocol :: WebDriver BiDi, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1916685

People

(Reporter: jdescottes, Unassigned)

Details

There is an issue in the way we generate the timings for our data channel events:
https://searchfox.org/mozilla-central/rev/82ce14a9dc278584b868b2b9c252ba0871a7782b/remote/shared/NetworkRequest.sys.mjs#59-75

this.#timedChannel =
  this.#channel instanceof Ci.nsITimedChannel
    ? this.#channel.QueryInterface(Ci.nsITimedChannel)
    : {
        redirectCount: 0,
        channelCreationTime: currentTime,
        redirectStartTime: 0,
        redirectEndTime: 0,
        domainLookupStartTime: currentTime,
        domainLookupEndTime: currentTime,
        connectStartTime: currentTime,
        connectEndTime: currentTime,
        secureConnectionStartTime: currentTime,
        requestStartTime: currentTime,
        responseStartTime: currentTime,
        responseEndTime: currentTime,
      };

Here we use Date.now(), however the timings should be high definition timestamps so there is an offset of 1000.

I will fix this together with 1916685

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1916685
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.