Skip to main content

Safari Technology Preview 257 fixes early WebDriver navigation replies

A new tab could satisfy a navigation wait with the wrong load event. Build 257 changes that behavior and corrects how BiDi traverses browser history.

A closed silver laptop on a gray desk next to a window.
TechKili illustration, generated with Cloudflare Workers AI
Share this article:
In this article

Safari Technology Preview 257 fixes a WebDriver timing problem that could make an automated test proceed before the page it requested had loaded. WebKit released build 257 on November 18 for macOS Golden Gate and macOS Tahoe. MacRumors covered the release the same day. For teams that open fresh tabs in browser tests or wait for load events, this build is an opportunity to check whether a failure came from WebKit’s automation layer.

Why a fresh tab could return too early

A new tab can still be finishing its initial blank page when an automation command sends it to a test URL. WebKit’s implementation notes describe cases where the initial blank page completed first and satisfied the wait for the requested navigation. The test could then inspect the tab and see about:blank while the destination was still loading. The fix ties the command’s wait to the navigation it started. The implementation also puts the relevant load notification before completion for commands that ask to wait for it.

There is a separate fix for browsingContext.traverseHistory in WebDriver BiDi, the bidirectional automation protocol. WebKit says the command now goes to the requested history entry and returns the appropriate errors. Under the W3C draft, a request that goes beyond the available history returns no such history entry. Test code can check for that outcome explicitly.

What to rerun in the preview

Start with a test that immediately navigates a new tab and inspects the destination. Check the final URL and an element unique to the destination page. If the test relies on a load event, check the order of that event and the command response as well. Then rerun an existing back-and-forward test together with its out-of-range case if your suite uses BiDi. Record the browser and driver versions so the result can be attributed to the right build.

Technology Preview can run alongside the installed Safari. For build 257, WebKit directs existing preview users to System Settings → General → Software Update. Keep a stable Safari run in your test matrix to see what users on that release experience. The Safari 27.3 beta covered separately by TechKili is a different release from Technology Preview 257.

Sources