testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Hammerhead injection is failing after Safari 26 update

Open margaritluch opened this issue 3 months ago • 3 comments

What is your Scenario?

Our testcafe tests have stopped working on safari after we updated it to version 26. We can see from console logs that the reason is that Hammerhead injection is failing. We have the latest version of TestCafe and the latest version of Hammerhead. Are there any workarounds for this issue?

What is the Current behavior?

When running the test on Safari 26 we just get a blank white page. In the console we can read that Hammerhead failed to inject some scriopts into Safari

What is the Expected behavior?

Tests should run without problem on all browsers on the device.

What is the public URL of the test page? (attach your complete example)

norlysplay.dk

What is your TestCafe test code?

We haven't changed anything in the test code. The only thing we have changed is that we have updated the Safari version.

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

TestCafe version

3.7.2

Node.js version

No response

Command-line arguments

testcafe safari --hostname localhost ./Tests/stripe.testcafe/stripe-general.js -T "StripeTest_ClickOnLiveFilmAsset_LiveTvStreamStarts" --user=stofa --browser=safari --os=mac --payscheme=ccb

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

margaritluch avatar Sep 24 '25 08:09 margaritluch

We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.

github-actions[bot] avatar Sep 26 '25 14:09 github-actions[bot]

same issue occurs on firefox after update to version 144- blank page and error in console: Uncaught TypeError: can't access property "utils", window['%hammerhead%'] is undefined

wombatka avatar Oct 15 '25 03:10 wombatka

Hi Wombatka, I was able to reproduce the issue in Firefox. It might, however, be a different case from the one seen in Safari, even though the symptoms look similar. I’ll make this ticket the main reference for tracking the Firefox 144 hammerhead injection problem.

Bayheck avatar Oct 17 '25 15:10 Bayheck