fix(bsk): keep controlled tabs progressing in background | 支持受控标签页在后台持续执行 - #249
Merged
Merged
Conversation
Collaborator
Author
修复:受限后台页的导航恢复与连续跳转
|
Ljy-0827
force-pushed
the
fix/background-tab-execution
branch
from
September 15, 2026 11:19
e8f4d94 to
47a4811
Compare
Ljy-0827
marked this pull request as ready for review
September 15, 2026 11:24
Ljy-0827
force-pushed
the
fix/background-tab-execution
branch
from
September 16, 2026 03:05
47a4811 to
bd603e4
Compare
Ljy-0827
force-pushed
the
fix/background-tab-execution
branch
from
September 17, 2026 07:37
bd603e4 to
d3f9e91
Compare
Collaborator
Author
补充修复1. 导航取消后不再永久废弃当前页面原先把“请求跳转”直接当作“新文档已替换旧文档”。如果跳转随后取消,当前页面仍存在,但其加载事件已被忽略,导致等待超时。
2. 恢复借用后的默认目标兼容性借用成功后恢复原有的选中借入标签行为,使随后省略 tab_id 的命令仍操作该页面;同时建立后台执行策略,支持页面之后进入后台继续执行。 3. 创建失败时独立回收资源释放控制关系与关闭标签分别尝试:
|
Ljy-0827
removed this pull request from stack #251
September 17, 2026 08:03
Collaborator
|
F2 修复已提交:#280,目标分支是本 PR 的 改动仅涉及导航等待缓存及对应回归测试:当前文档一旦达到本次等待条件,就保留该生命周期事件,避免被后续 paint 等事件覆盖;后继文档提交时仍清空缓存,原有取消核对和文档身份检查保持不变。 验证结果:新增的三个进度保留用例在原代码上均超时,修复后通过;完整扩展测试 1808 项通过,lint、类型检查和构建通过。本机 Chrome 153.0.8010.50 中,HTTP 204 + 持续 fetch 的 6 个 F2 场景全部在约 1.4 秒返回 load,包括默认 30 秒超时用例;真实后继文档提交的对照也通过。浏览器验证覆盖实际导航函数与真实 CDP 事件,未覆盖完整 CLI/扩展传输链路。 可以先将 #280 合入本分支,再继续本 PR 的最终合并。F1 仍属于未取得真实 Chrome 复现证据的风险,本次修复未扩展到该问题。 |
…progress fix(navigation): preserve readiness across cancelled redirects
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
BrowserSkill 在非活动标签页中处理任务时,页面可能已经完成文档和数据加载,但依赖可见性或 requestAnimationFrame 的初始化仍被阻塞。用户手动选中标签后,页面才继续更新,导致自动化无法获得有效观察。
修改
Emulation.setFocusEmulationEnabled推进页面执行,不通过选中标签或聚焦窗口恢复页面。about:blank,策略生效后再导航,避免初始脚本因 hidden 跳过初始化。--tab-id。Related to #230