Skip to content

network: Fix bad HAR data#9900

Merged
srawlins merged 4 commits into
flutter:masterfrom
srawlins:har-fix
Jul 21, 2026
Merged

network: Fix bad HAR data#9900
srawlins merged 4 commits into
flutter:masterfrom
srawlins:har-fix

Conversation

@srawlins

Copy link
Copy Markdown
Contributor

Fixes #8925

The text "error" was being encoded into an int field; should be -1 in such cases.

@srawlins
srawlins requested review from a team, bkonyi and kenzieschmoll as code owners July 18, 2026 15:46

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request ensures that exported response statuses in HAR files are parsed and serialized as integers instead of strings, updating the parsing logic, tests, and release notes accordingly. The feedback suggests refactoring the status value type-checking block in har_data_entry.dart to use a more idiomatic Dart 3 switch expression.

Comment thread packages/devtools_app/lib/src/screens/network/har_data_entry.dart Outdated
Comment thread packages/devtools_app/test/screens/network/har_network_test.dart

@kenzieschmoll kenzieschmoll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with one comment

@srawlins
srawlins merged commit cc4971d into flutter:master Jul 21, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HAR file downloaded from DevTools can not be loaded in Chrome DevTools

2 participants