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 161 forks source link

fix: Handling of native dialogs inconsistent with handling in Firefox (closes #6815) #2980

Closed PavelMor25 closed 9 months ago

PavelMor25 commented 9 months ago

When adding the onbeforeunload event to a page, inside of which there is e.preventDefault() and e.returnResult with an empty string, Hammerhead overrides the prevented property, causing the native dialog not to be recorded in the TestCafe session storage.