xxxily / h5player

This software supports all audio and video websites, such as TikTok, YouTube, Bilibili, TED, Instagram, Twitter, etc. Features include: variable playback speed, screen capture, video download, custom settings, and extensions, etc., providing you with a pleasant online audio and video playback experience.
https://h5player.anzz.top
GNU General Public License v3.0
3.09k stars 259 forks source link

[BUG] 全局设置页面的设置内容偶尔加载失败 #588

Open SineObama opened 11 months ago

SineObama commented 11 months ago
  1. 问题描述 从篡改猴菜单进入全局设置页面,有较大概率无法加载json设置内容,控制台错误提示pageWindow.jsonEditorundefined。刷新页面有概率恢复正常或重现问题。

  2. 出现上述问题的地址 全局设置页面: https://h5player.anzz.top/tools/json-editor/index.html?mode=tree&saveHandlerName=saveH5PlayerConfig&expandAll=true&json={}

  3. 你使用的浏览器与浏览器版本信息 360极速浏览器X 22.1.1073.64 内核 119.0.6045.160

  4. 其他附注信息

    • 控制台报错:
      Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'set')
      at init (userscript.html?name=HTML5%25E8%25A7%2586%25E9%25A2%2591%25E6%2592%25AD%25E6%2594%25BE%25E5%2599%25A8%25E5%25A2%259E%25E5%25BC%25BA%25E8%2584%259A%25E6%259C%25AC.user.js&id=484ad11b-e841-464d-a903-11086c9cd598:2107:27)
      at checkJSONEditor (userscript.html?name=HTML5%25E8%25A7%2586%25E9%25A2%2591%25E6%2592%25AD%25E6%2594%25BE%25E5%2599%25A8%25E5%25A2%259E%25E5%25BC%25BA%25E8%2584%259A%25E6%259C%25AC.user.js&id=484ad11b-e841-464d-a903-11086c9cd598:2136:5)
      at initUiConfigManager (userscript.html?name=HTML5%25E8%25A7%2586%25E9%25A2%2591%25E6%2592%25AD%25E6%2594%25BE%25E5%2599%25A8%25E5%25A2%259E%25E5%25BC%25BA%25E8%2584%259A%25E6%259C%25AC.user.js&id=484ad11b-e841-464d-a903-11086c9cd598:2145:3)
    • 已尝试禁用了其他所有浏览器插件。
    • 发现在F12中禁用网络缓存时不会出现问题,启用缓存就有概率出现。出现过正常和异常时,加载的2个js均显示为“内存缓存”状态。(甚至对比了js、html文件内容也是一致的)
    • 对比了控制台日志顺序(包括debug级别),正常和异常时也有日志顺序一致的时候。
      content: normal start event processing for lqhk1peg.d (1 to run)
      VM732 content.js:54 env: run "HTML5视频播放器增强脚本" ASAP -> document-start
      VM732 content.js:53 env: inject "HTML5视频播放器增强脚本" now
      userscript.html?name=HTML5%25E8%25A7%2586%25E9%25A2%2591%25E6%2592%25AD%25E6%2594%25BE%25E5%2599%25A8%25E5%25A2%259E%25E5%25BC%25BA%25E8%2584%259A%25E6%259C%25AC.user.js&id=484ad11b-e841-464d-a903-11086c9cd598:2 SCRIPT RUN TIME[HTML5视频播放器增强脚本]: 7.352783203125 ms
      VM732 content.js:73 content: DOMContentLoaded
      index.html:1 [Violation] Listener added for a synchronous 'DOMNodeInsertedIntoDocument' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
      VM732 content.js:73 content: load
SineObama commented 9 months ago

今天更新到4.0版本,看起来基本不会出现这个问题了。