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
perf: optimize url blocking on navigation (upstream #14945)
Throw immediately in Frame.GoToAsync when the destination URL is
blocked by blocklist/allowlist rules, instead of waiting for the
browser to fail the request. Saves a network round-trip and aligns
with upstream Puppeteer behavior.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: lib/PuppeteerSharp/IFrame.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,7 @@ public interface IFrame
243
243
/// - the `timeout` is exceeded during navigation.
244
244
/// - the remote server does not respond or is unreachable.
245
245
/// - the main resource failed to load.
246
+
/// - the URL is blocked by blocklist/allowlist rules.
246
247
///
247
248
/// <see cref="GoToAsync(string, int?, WaitUntilNavigation[])"/> will not throw an error when any valid HTTP status code is returned by the remote server,
248
249
/// including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling <see cref="IResponse.Status"/>
0 commit comments