Page warnings log their line only, never words or source (M-11)

A document can forge both a console message and its source (KaTeX's
\errmessage, data: scripts, sourceURL, encoded paths), so the display
handler logs a line number and nothing the page wrote. The page's own
diagnostics reach the app over elyQuery: a missed reveal sends its
line; the visual failure and diagram lines already did. A test calls
the real handler and checks the captured log.

Round 5 found only the missing test; it is added and mutation-checked,
with no sixth review under the five-round cap. M-15 is new: the print
page runs a document's scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 13:02:06 -04:00
1 parent 4a2dcbb222
commit c5cb153f72
13 files changed
+101 -30

No files matched your search

+2 -1
View File
@@ -71,10 +71,11 @@
- [x] M-08 页面重载后悬着的渲染回调永不完成,导出既不成功也不报错 — 页面失败后挂起与新到的渲染都以错误结束,载入成功才恢复(审查 2 轮)
- [x] M-09 导出的保存面板出错被当作取消 — 面板出错走 panel_failed,取消只记日志(审查 1 轮)
- [x] M-10 关闭查找框只清当前标签的高亮 — 关闭查找框对每个标签的页面清除高亮(审查 1 轮)
- [ ] M-11 页面把搜索词写进应用日志
- [x] M-11 页面把搜索词写进应用日志 — 控制台的文字与来源都可由文档伪造,只记行号;页面自己的诊断经 elyQuery;R1 前缀可伪造、R2 data 来源、R3 sourceURL、R4 编码路径与目录、R5 缺回归测试:已补并经变异核对(五轮上限,未再审)
- [ ] M-12 浏览器创建完成前 `WebView` 已释放,浏览器泄漏
- [ ] M-13 编辑器构建失败时页面空白且不上报
- [ ] M-14 `render_pdf` 在界面线程内嵌图片并写文件
- [ ] M-15 打印与导出 PDF 的暂存页执行文档里的脚本
- [ ] G-01 打开“文件历史”或“逐行追溯”后,中间区不再响应任何别的选择
- [ ] G-02 进行中操作读取失败被吞掉;`git am` 冲突无提示条无错误
- [ ] G-03 新建的空仓库在“仓库”页显示两段 Git 致命错误(引用日志、LFS)