Skip to content

Commit 0611f27

Browse files
Connor ClarkDevtools-frontend LUCI CQ
authored andcommitted
Upstream some simple trace_engine package fixes
These were the only simple changes from the trace engine branch[1]. [1] main...paulirish:devtools-frontend:trace-engine-lib Bug: none Change-Id: I6faa74726725ef42f8b8488d7cc645a4136c2ed4 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6897347 Reviewed-by: Paul Irish <[email protected]> Auto-Submit: Connor Clark <[email protected]> Commit-Queue: Connor Clark <[email protected]> Commit-Queue: Paul Irish <[email protected]>
1 parent 500a03f commit 0611f27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

front_end/models/trace/ModelImpl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ export class Model extends EventTarget {
118118
metadata,
119119
resolveSourceMap: config?.resolveSourceMap,
120120
};
121-
if (window.location.href.includes('devtools/bundled') || window.location.search.includes('debugFrontend')) {
121+
if (!parseConfig.logger &&
122+
(window.location.href.includes('devtools/bundled') || window.location.search.includes('debugFrontend'))) {
122123
// Someone is debugging DevTools, enable the logger.
123124
const times: Record<string, number> = {};
124125
parseConfig.logger = {

front_end/models/trace/handlers/PageLoadMetricsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function storePageLoadMetricAgainstNavigationId(
159159
if (Types.Events.isLargestContentfulPaintCandidate(event)) {
160160
const candidateIndex = event.args.data?.candidateIndex;
161161
if (!candidateIndex) {
162-
throw new Error('Largest Contenful Paint unexpectedly had no candidateIndex.');
162+
throw new Error('Largest Contentful Paint unexpectedly had no candidateIndex.');
163163
}
164164
const lcpTime = Types.Timing.Micro(event.ts - navigation.ts);
165165
const lcp = {

0 commit comments

Comments
 (0)