mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
moebius#158: The Performance Resource Timing (added support for "workerStart")
https://github.com/MoonchildProductions/moebius/pull/158
This commit is contained in:
@@ -778,8 +778,8 @@ WebConsoleActor.prototype =
|
||||
}
|
||||
|
||||
// See `window` definition. It isn't always a DOM Window.
|
||||
let requestStartTime = this.window && this.window.performance ?
|
||||
this.window.performance.timing.requestStart : 0;
|
||||
let winStartTime = this.window && this.window.performance ?
|
||||
this.window.performance.timing.navigationStart : 0;
|
||||
|
||||
let cache = this.consoleAPIListener
|
||||
.getCachedMessages(!this.parentActor.isRootActor);
|
||||
@@ -787,7 +787,7 @@ WebConsoleActor.prototype =
|
||||
// Filter out messages that came from a ServiceWorker but happened
|
||||
// before the page was requested.
|
||||
if (aMessage.innerID === "ServiceWorker" &&
|
||||
requestStartTime > aMessage.timeStamp) {
|
||||
winStartTime > aMessage.timeStamp) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user