Skip to content

Commit

Permalink
修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Mar 4, 2022
1 parent 0155607 commit 4545146
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions assets/ztest_chrome_bug_AudioWorkletNode.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
elem.prepend(div);
console.log(msg);
};
log('【被audioWorklet搞崩浏览器】已知Chrome 90 80容易崩(100%崩),<span style="color:#0b1">老版本Chrome 60 70测的不会崩,FireFox不会崩</span>。Chrome崩溃要点:suspended状态下的AudioContext,在audioWorklet.addModule+构造AudioWorkletNode未完成时,同时进行resume调用,在恢复到running状态那一刻,浏览器崩溃了 错误代码:STATUS_ACCESS_VIOLATION',"#f90");
log('【被audioWorklet搞崩浏览器】发现Chrome 90 80容易崩(100%崩?),<span style="color:#0b1">老版本Chrome 60 70测的不会崩,FireFox不会崩</span>。Chrome崩溃要点:suspended状态下的AudioContext,在audioWorklet.addModule+构造AudioWorkletNode未完成时,同时进行resume调用,在恢复到running状态那一刻,浏览器崩溃了 错误代码:STATUS_ACCESS_VIOLATION',"#f90");
log("请打开控制台进行观摩,不然崩溃后看不到页面内容");
log("代码开始执行...");
</script>
Expand Down Expand Up @@ -88,7 +88,12 @@
});
});

log("请随便点击一下页面,激活AudioContext","red;font-size:30px");
if(ctx.state=="running"){
log("state已是running,这次应该不会崩,刷新一下页面看看state=suspended时容易崩",2);
}else{
log("state是"+ctx.state+",感觉这次要崩","#fa0");
}
log("请随便点击一下页面,"+(ctx.state=="running"?"AudioContext已是running状态,应该不会崩":"激活AudioContext,感觉要崩"),"red;font-size:30px");
</script>

</body>
Expand Down

0 comments on commit 4545146

Please sign in to comment.