mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
fix(vom): clean up pr
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Mirrors the borrow-confirmation message style (see
|
* Mirrors the borrow-confirmation message style (see
|
||||||
* `@/tools/borrow-confirmation`). The background asks a specific tab to
|
* `@/tools/borrow-confirmation`). The background asks a specific tab to
|
||||||
* enter "help mode" (render HelpRequestOverlay + hide the control mask);
|
* enter "help mode" (render HelpRequestOverlay + hide ControlOverlay);
|
||||||
* the content script acks display, then later reports Done / Cancel.
|
* the content script acks display, then later reports Done / Cancel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ async function rearmRecording(
|
|||||||
deps: RecordDeps,
|
deps: RecordDeps,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
// Do NOT toggle automation-bypass here: each retry used to increment the
|
// Do NOT toggle automation-bypass here: each retry used to increment the
|
||||||
// content-script counter, and a single stop decrement left the control mask
|
// content-script counter, and a single stop decrement left the ControlOverlay
|
||||||
// stuck with pointer-events:none (page usable, Interrupt dead). RecordOverlay
|
// stuck with pointer-events:none (page usable, Interrupt dead). RecordOverlay
|
||||||
// already hides the control chrome while activeRecord is set.
|
// already hides the control chrome while activeRecord is set.
|
||||||
for (let attempt = 0; attempt < RECORD_REARM_MAX_ATTEMPTS; attempt += 1) {
|
for (let attempt = 0; attempt < RECORD_REARM_MAX_ATTEMPTS; attempt += 1) {
|
||||||
@@ -561,9 +561,9 @@ export async function handleRecordStart(
|
|||||||
const target = await resolveTargetTab(manager, ctx, params.tab_id, deps.tabsApi);
|
const target = await resolveTargetTab(manager, ctx, params.tab_id, deps.tabsApi);
|
||||||
if (isRpcError(target)) return target;
|
if (isRpcError(target)) return target;
|
||||||
|
|
||||||
// Register the recording *before* navigate so the destination content script's
|
// Register the recording *before* navigate so content-script syncAgentOverlay
|
||||||
// overlay.ready flow can RECORD_QUERY → rearm → show RecordOverlay
|
// on the destination page can RECORD_QUERY → rearm → show RecordOverlay
|
||||||
// instead of flashing the control mask ("Agent 正在控制").
|
// instead of flashing ControlOverlay ("Agent 正在控制").
|
||||||
const requestId = makeRequestId(target.tabId);
|
const requestId = makeRequestId(target.tabId);
|
||||||
let resolveFinish!: (trace: Trace) => void;
|
let resolveFinish!: (trace: Trace) => void;
|
||||||
let rejectFinish!: (err: Error) => void;
|
let rejectFinish!: (err: Error) => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user