Skip to content

fix(route): do not wait for the reply of a route action - #2073

Merged
Yury Semikhatsky (yury-s) merged 3 commits into
microsoft:mainfrom
yury-s:fix-2068
Nov 24, 2026
Merged

Yury Semikhatsky (yury-s) merged 3 commits into
microsoft:mainfrom
yury-s:fix-2068

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Route.resume(), abort(), fulfill() and the fallback continue send their message and do not wait for the reply, as in 1.65. Waiting dispatched the next route event on the same stack, and a burst of requests overflowed it.
  • The checks whose error came with the reply run in the client: the protocol of a URL override, and a redirect status in fulfill() on WebKit.

Fixes #2068

params.fetchResponseUid = fetchResponseUid;
raceWithTargetClose(sendMessageAsync("fulfill", params));
// java: the check of wkInterceptableRequest.ts.
if (context != null && context.browser() != null && "webkit".equals(context.browser().browserName)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have the same limitation in other browsers as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, only WebKit: the driver throws this in wkInterceptableRequest.ts only, and Chromium and Firefox do fulfill with a redirect status (RO-032 runs there, RO-033 is WebKit-only). The check moved to the client because the reply that carried the error is no longer awaited.

@yury-s
Yury Semikhatsky (yury-s) merged commit 6fe1837 into microsoft:main Nov 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: StackOverflowError when a page makes thousands of requests under a route

2 participants