cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.

Home Page:https://cypress.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tylerccarson opened this issue · comments

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

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

@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.