Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(network): handle invalid NetworkRequests #6157

Merged
merged 4 commits into from
Oct 2, 2018
Merged

Conversation

exterkamp
Copy link
Member

Summary
Adds isValid property to a NetworkRequest and ignores invalid requests when making the list of records to surface to rest of application.

Related Issues/PRs
fixes: #6145

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

LGTM % one more isValid check! 💯

lighthouse-core/lib/network-recorder.js Show resolved Hide resolved
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM!

@brendankenny
Copy link
Member

@exterkamp should we add this to our smoke tests? Would it be easy to add the @font-face thing to https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html? The expectations shouldn't need to be updated, the test would just be that the run completes and the results still come back as expected before.

@brendankenny brendankenny merged commit 9bfcf91 into master Oct 2, 2018
@brendankenny brendankenny deleted the bug/invalid_url branch October 2, 2018 23:17
@brendankenny
Copy link
Member

we'll punt on the smoke test to a future change (pending getting it to work in a non-complicated way :)

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.

DevTools Error: Failed to construct 'URL': Invalid URL
3 participants