Skip to content

Commit 9ddef45

Browse files
authored
Merge pull request #566 from AzureAD/oldalton/remove_stoploading_workaround
Remove WKWebView stopLoading in cancel
2 parents 8bd9ed5 + 55d442e commit 9ddef45

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

IdentityCore/src/webview/embeddedWebview/MSIDOAuth2EmbeddedWebviewController.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,6 @@ - (void)cancel
142142
NSError *error = MSIDCreateError(MSIDErrorDomain, MSIDErrorSessionCanceledProgrammatically, @"Authorization session was cancelled programatically.", nil, nil, nil, self.context.correlationId, nil);
143143

144144
[_telemetryEvent setIsCancelled:YES];
145-
146-
if ([self.webView.navigationDelegate isEqual:self])
147-
{
148-
/*
149-
There's an edge case scenario, where application cancels one of the requests and starts another one immediately after.
150-
We want to make sure that second request doesn't get first response, so we cancel loading of webview when cancel method is called
151-
*/
152-
[self.webView stopLoading];
153-
}
154-
155145
[self endWebAuthWithURL:nil error:error];
156146
}
157147

0 commit comments

Comments
 (0)