We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a449a commit 7bc5c32Copy full SHA for 7bc5c32
src/model/http/har.ts
@@ -528,9 +528,14 @@ function cleanRawHarData(harContents: any) {
528
});
529
530
const pages = harContents?.log?.pages ?? [];
531
- pages.forEach((page: any) => {
+ pages.forEach((page: HarFormat.Page) => {
532
// FF doesn't give pages their (required) titles:
533
if (page.title === undefined) page.title = page.id;
534
+
535
+ // All timings fields are optional, but some sources provide 'null' values (instead of -1)
536
+ // to mark missing data, which isn't valid. Fortunately, we never use this data, so we can
537
+ // just drop it entirely:
538
+ page.pageTimings = {};
539
540
541
return harContents;
0 commit comments