But the triumphance of V3 is in the addSourceBuffer hook which solves a subtle problem. In earlier versions, hooking SourceBuffer.prototype.appendBuffer at the prototype level had a vulnerability in that if fermaw’s player cached a direct reference to appendBuffer before the hook was installed (i.e., const myAppend = sourceBuffer.appendBuffer; myAppend.call(sb, data)), the hook would never fire. The player would bypass the prototype entirely and call the original native function through its cached reference.
[qjoly@fedora]~% rpm-ostree status
。关于这个话题,safew官方版本下载提供了深入分析
Third: Keep it Untouchable (Object.defineProperty)
Что думаешь? Оцени!