Repository navigation
fix(cooperation): tolerate media progress while preserving action guards - #501
Merged
Merged
Conversation
iuyo5678
force-pushed
the
fix/video-cooperation-guard
branch
from
October 27, 2026 07:49
b10a11a to
d3b260d
Compare
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.
循环视频的进度更新会让同步和暂停操作反复被拒绝。本改动允许明确识别的播放进度继续变化,同时保留 PR #497 的业务状态保护:暂停按钮可正常使用,业务字段变化仍会在发送输入前被拦截。
--depends-on,并保护浏览器实际焦点所在区域;焦点不明确时继续严格检查整个页面。.form,自定义进度控件保留原始 DOM 的表单包含关系。因此role="none"、role="presentation"、display:contents和外部form关联都不会使业务字段被当成播放进度。归属未知时保持严格校验,归属变化本身也会使旧观察失效。<source>、currentSrc、srcObject和流轨道。焦点或媒体状态变化后刷新增量同步证据,拒绝操作后使旧上下文失效,并保留已完成导航的正常回执。验证:
git diff --check通过。真实浏览器回归位于
evals/browser/cases/regression/cooperation-video/,包含可重复运行的脚本、本地测试页面、合成 WebM 和运行说明。运行脚本检查实际解码帧增长、收到的按键和最终暂停状态;媒体换源后重新建立解码计数基线。未知媒体控件和不明确焦点继续采用保守校验。