We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f47baf commit ec20f54Copy full SHA for ec20f54
lib/PuppeteerSharp/Bidi/BidiPage.cs
@@ -139,7 +139,10 @@ public override Task EmulateIdleStateAsync(EmulateIdleOverrides idleOverrides =
139
/// <inheritdoc />
140
public override async Task<IResponse> ReloadAsync(NavigationOptions options)
141
{
142
- var waitForNavigationTask = WaitForNavigationAsync(options);
+ var navOptions = options == null
143
+ ? new NavigationOptions { IgnoreSameDocumentNavigation = true }
144
+ : options with { IgnoreSameDocumentNavigation = true };
145
+ var waitForNavigationTask = WaitForNavigationAsync(navOptions);
146
var navigationTask = BidiMainFrame.BrowsingContext.ReloadAsync();
147
148
try
0 commit comments