blob: d312fe8fe66df77ad1441cda0a17497759e3ad0f [file] [log] [blame]
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: fgei <fgei@gmail.com>
Date: Mon, 20 Feb 2023 07:10:30 +0000
Subject: [PATCH] Enable android autofill on http authentication dialog
---
.../chromium/chrome/browser/login/ChromeHttpAuthHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/login/ChromeHttpAuthHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/login/ChromeHttpAuthHandler.java
index 6f11d483fb695..2aa08a1baeaab 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/login/ChromeHttpAuthHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/login/ChromeHttpAuthHandler.java
@@ -108,7 +108,7 @@ public class ChromeHttpAuthHandler extends EmptyTabObserver implements LoginProm
String messageBody =
ChromeHttpAuthHandlerJni.get()
.getMessageBody(mNativeChromeHttpAuthHandler, ChromeHttpAuthHandler.this);
- mLoginPrompt = new LoginPrompt(activity, messageBody, null, this);
+ mLoginPrompt = new LoginPrompt(activity, messageBody, tab.getOriginalUrl(), this);
// In case the autofill data arrives before the prompt is created.
if (mAutofillUsername != null && mAutofillPassword != null) {
mLoginPrompt.onAutofillDataAvailable(mAutofillUsername, mAutofillPassword);