Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2772723006: Do not suppress HTTP Authenticaiton in WebController. (Closed)
Patch Set: Updated comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/tabs/tab.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index ef374666ca2d13cdd74fe36863d5251e548d556c..4f586b25a365809c32a46dcda2b3a0da7f966b93 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -2638,6 +2638,15 @@ class BrowserBookmarkModelBridge : public bookmarks::BookmarkModelObserver {
proposedCredential:(NSURLCredential*)proposedCredential
completionHandler:(void (^)(NSString* username,
NSString* password))handler {
+ Tab* tab = LegacyTabHelper::GetTabForWebState(webState);
+ if ([tab isPrerenderTab]) {
+ [tab discardPrerender];
+ if (handler) {
+ handler(nil, nil);
+ }
+ return;
+ }
+
[self.dialogPresenter runAuthDialogForProtectionSpace:protectionSpace
proposedCredential:proposedCredential
webState:webState
« no previous file with comments | « ios/chrome/browser/tabs/tab.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698