DevExpress / testcafe-hammerhead

A powerful web-proxy used as a core for the TestCafe testing framework. :hammer: :smiley:
https://testcafe.io
MIT License
171 stars 160 forks source link

Hammerhead tries to make a request to `https://javascript:;` type urls. #2965

Closed Ghxst closed 6 months ago

Ghxst commented 1 year ago

What is your Scenario?

Hammerhead will try to make fetch requests to URLs that contain the javascript protocol.

What is the Current behavior?

Instead of parsing and handling the JS properly a fetch will be made.

What is the Expected behavior?

These type of protocols should be handled properly, I am assuming?

What is your public website URL? (or attach your complete example)

https://www.delta.com/login/loginPage

What is your TestCafe test code?

node node_modules/gulp/bin/gulp multi-window-https-playground

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. clone testcafe-hammerhead
  2. run node node_modules/gulp/bin/gulp multi-window-https-playground
  3. proxy https://www.delta.com/login/loginPage
  4. check network log and you will see a fetch to https://javascript:;

TestCafe version

n/a

Node.js version

No response

Command-line arguments

node node_modules/gulp/bin/gulp multi-window-https-playground

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

AlexKamaev commented 1 year ago

Thank you for sharing the example. I managed to reproduce the issue. We'll update the thread once we have any results.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.

github-actions[bot] commented 6 months ago

We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.