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

fix: ignore favicon requests in page.spec event handler tests #8208

Merged
merged 1 commit into from Apr 7, 2022

Conversation

juliandescottes
Copy link
Contributor

Fixes #6020

Favicon requests are automatically triggered when loading empty.html (except on chrome headless) and make the tests fail intermittently.

In this patch, I define a custom response handler which ignores specifically the favicon requests. I prefer this rather than "only consider requests to empty.html" because it feels more conservative, and should not hide potential future regressions.

Alternatively, we could use a different test page than empty.html, eg called no-favicon.html which would simply contain

<link rel="icon" href="data:,">

Let me know which approach you prefer.

@juliandescottes
Copy link
Contributor Author

cc @OrKoN for review :)

Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@OrKoN OrKoN enabled auto-merge (squash) April 7, 2022 13:12
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.

Issue with event handlers test in FF
2 participants