diff options
Diffstat (limited to 'extensions/chrome-profile-bridge/browser-extension')
| -rw-r--r-- | extensions/chrome-profile-bridge/browser-extension/service_worker.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/chrome-profile-bridge/browser-extension/service_worker.js b/extensions/chrome-profile-bridge/browser-extension/service_worker.js index dc9f45d..85be0a2 100644 --- a/extensions/chrome-profile-bridge/browser-extension/service_worker.js +++ b/extensions/chrome-profile-bridge/browser-extension/service_worker.js @@ -241,7 +241,7 @@ async function agentWindowId() { // Create a fresh automation target for `sessionKey`: an inactive tab in the session's group's // window if it has a group (Chrome groups cannot span windows), else in the user's window. A new -// window only when Brave has none. When the tab goes in a pre-existing window, windowId stays unset. +// window only when the browser has none. When the tab goes in a pre-existing window, windowId stays unset. async function createAutomationTarget(sessionKey, groupTitle) { const existingGroup = groupTitle ? await findGroupRecordByTitle(groupTitle) : null; const windowId = existingGroup && typeof existingGroup.windowId === "number" ? existingGroup.windowId : await agentWindowId(); @@ -487,6 +487,7 @@ async function inputDebug(params) { // covered or on another Space. Measured 2026-11-14 in Brave: an inactive tab still takes trusted // CDP clicks, key presses, text and mouse moves, and screenshots render it live; only mouseWheel // hangs waiting for a frame that never comes, so chrome.scroll scrolls hidden pages by script. +// Clicks, text, key presses and screenshots measured the same in Chrome 157 on 2026-11-18. // A minimized window is untested, so input there still fails up front with an actionable error. async function pageVisibilityState(tabId) { try { @@ -1946,7 +1947,7 @@ async function dispatch(action, params) { const createParams = { url: params.url || "about:blank", active: foregroundRequested(params) }; if (existingGroup && typeof existingGroup.windowId === "number") createParams.windowId = existingGroup.windowId; // No group of this session yet: use the window of its automation tab if it has one, else the - // user's window. A window of its own only when Brave has no window open. + // user's window. A window of its own only when the browser has no window open. let ownWindow = false; if (createParams.windowId === undefined) { const home = await resolveOwnedAutomationTarget(sessionKeyOf(params)).catch(() => null); |
