From d258f3e0fdd1684f030d3dc66084c725904cc866 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Tue, 21 Jul 2026 09:02:22 +0000 Subject: [PATCH] fix autofill: stop filling when no visible password field on page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents autofill from filling app text inputs (e.g. R7 font selector) after login. Now tryFill() bails out immediately if no input[type=password] is visible — meaning we are no longer on a login form. Co-Authored-By: Claude Sonnet 4.6 --- universal-runtime/manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/universal-runtime/manager.py b/universal-runtime/manager.py index fc0de6e..e78d1b8 100644 --- a/universal-runtime/manager.py +++ b/universal-runtime/manager.py @@ -95,7 +95,7 @@ _AUTOFILL_CONTENT_JS = r""" for (const el of list) { if (isVisible(el)) return el; } - return list[0] || null; + return null; } function setNativeValue(el, v) { @@ -115,6 +115,8 @@ _AUTOFILL_CONTENT_JS = r""" function tryFill() { const p = findPassField(); + // No visible password field = not a login form; stop to avoid filling app inputs + if (!p) return; const u = findUserField(p); // Fill login FIRST so password-triggered re-render doesn't clear it if (CREDS.login && u) {