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

Requests from Firefox Extension always delayed 500ms due to timeout in proxy server #29520

Open
tylerccarson opened this issue May 14, 2024 · 3 comments
Assignees
Labels
browser: firefox Reproducible Can be reproduced stage: needs investigating Someone from Cypress needs to look at this

Comments

@tylerccarson
Copy link

tylerccarson commented May 14, 2024

Current behavior

There's an artificial 500ms delay to every HTTP request issued from the background page on a Firefox Extension. For whatever reason, this issue does not seem to come up for Chrome Extensions.

cypress:proxy:http:util:prerequests Never received pre-request or url without pre-request for request POST-http://localhost:8000/api/rest/vault/sync_down after waiting 500ms. Continuing without one. +546ms

Desired behavior

No response

Test code to reproduce

Repo to demonstrate: https://github.com/tylerccarson/cy-firefox-ext-prerequest-delay.

Start the local server npm run cypress:server, and then run Cypress in interactive mode in another process. You will see that the Chrome test passes, while if fails in Firefox.

Cypress Version

13.9.0

Node version

20.12.2

Operating System

macOS 14.5

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label May 15, 2024
@jennifer-shehane
Copy link
Member

@tylerccarson Could you provide some information on how we could recreate this situation?

@tylerccarson
Copy link
Author

@tylerccarson Could you provide some information on how we could recreate this situation?

@jennifer-shehane I've just uploaded a demo repo that demonstrates the failing case in Firefox and the passing case in Chrome. Please let me know how else I can assist if needed.

@jennifer-shehane
Copy link
Member

@tylerccarson Thanks for the reproducible example. I do see this behavior when I run this.

@jennifer-shehane jennifer-shehane added the Reproducible Can be reproduced label May 16, 2024
@jennifer-shehane jennifer-shehane self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: firefox Reproducible Can be reproduced stage: needs investigating Someone from Cypress needs to look at this
Projects
None yet
Development

No branches or pull requests

2 participants