Skip to content

【BUG】脚本编辑器主区域空白:TypeError faviconOPFSControl + 存储引擎迁移失败 #1710

Description

@zhangweildlh

环境

  • 浏览器:360Chromex(Chromium 132.0.6805.0 / QIHU 360EE)
  • 扩展:脚本猫 Beta(ScriptCat)
  • 系统:Windows 11

复现步骤

  1. 打开脚本猫选项页 chrome-extension://<id>/src/options.html#/
  2. 点击任意脚本的「编辑」,进入 options.html#/script/editor/<uuid>

现象

  • 编辑器主区域完全空白:容器内 <div class="relative min-h-0 flex-1"></div> 无任何内容(无 CodeMirror / Monaco 实例),innerText 为空。
  • 设置页出现「数据迁移 → 重试迁移储存引擎」入口,提示存储引擎迁移可能未完成。

控制台错误

  • TypeError: Cannot read properties of undefined (reading 'faviconOPFSControl') @ chunk.js:749:5087
  • chrome.storage.session.get 返回 lastError

影响

UI 方式完全无法编辑 / 查看脚本代码,严重影响日常使用(例如无法手动补 @updateURL 安装源)。

建议

  • 排查 faviconOPFSControl 的初始化时序(疑似 OPFS 存储引擎迁移未完成即被调用);
  • 编辑器主区域增加加载失败的兜底提示,避免静默白屏。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions