You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wf test: preserve compatibility with WebKit engines without AbortSignal.any() #335
PR #334 introduces an unconditional use of AbortSignal.any() whenever wf test receives a cancellation signal (js/developer/environment/runtime.mjs, line 210 at commit 04779d9b259a22e13ea9cc2bad3c07052db94504). The terminal always supplies that signal.
AbortSignal.any() was introduced in Safari/WebKit 17.4, while WebFront supports WKWebView on macOS 13.3 and later. Installations with an earlier WebKit engine therefore fail immediately with:
TypeError: AbortSignal.any is not a function
The call occurs before the command's try block, so no structured test report is produced and the timeout created immediately beforehand is not cleared by finally.
Reproduction
Run the environment on a WebKit engine predating Safari 17.4, or simulate its missing API by setting AbortSignal.any = undefined in an isolated test.
Invoke wf test through the terminal, which provides a cancellation signal.
Observe the TypeError before any project read or spec execution.
The missing-API case was reproduced against the command's implementation at 04779d9.
Expected behavior
Compose cancellation and timeout signals with a compatible fallback when AbortSignal.any is unavailable. Both Ctrl+C and the command deadline must retain their documented exit codes and structured reports. Add regression coverage with AbortSignal.any unavailable.
Activity
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Fix wf test WebKit compatibility and remove redundant CI work [#335]
Merge pull request #345 from ambroise-leclerc/335-compatible-test-can…