简体   繁体   English

关于iOS10 JavaScript和UIWebview界面

[英]About iOS10 JavaScript & UIWebview interface

今天早上,突然发现我们的用户在断点处发现iPhone的iOS 10后突然说应用程序崩溃,注入的JSContext对象中出现JavaScript和UIWebview接口问题,无法执行代理方法,并直接崩溃到堆栈区域,导致我无法修改就行了。

EDIT: The following original comment is not helpful. 编辑:以下原始评论没有帮助。 My use of window.webkit.messagehandlers in UIWebView is an unsupported hack (to match the API of WKWebView), so no surprise that broke, and the overflow crash when attaching Safari is reportedly not happening to other devs who are on Safari 10 (I haven't updated yet) 我在UIWebView中使用window.webkit.messagehandlers是不受支持的黑客(与WKWebView的API匹配),因此毫不奇怪,并且在使用Safari 10的其他开发人员上,附加Safari时的溢出崩溃据称没有发生(我尚未更新)

-- Original Comment -- -原始评论-

Seeing the same bug on iOS 10, filing to Apple now. 在iOS 10上看到相同的错误,现在向苹果提交。 Problem #1, adding callbacks to window.webkit.messagehandlers: this object now only allows for a single callback function added, it used to allow multiple, ie messagehandlers.doOneThing, messagehandlers.doAnother. 问题#1,向window.webkit.messagehandlers中添加回调:该对象现在仅允许添加一个回调函数,它用于允许多个回调函数,即messagehandlers.doOneThing,messagehandlers.doAnother。 Problem #2, seeing crashes: first an EXC_BREAKPOINT on WTF::CrashOnOverflow::overflowed() then a crash * thread #10: tid = 0x81c29d, 0x0dfb3d1d JavaScriptCore`JSC::DFG::SpeculativeJIT::speculate(JSC::DFG::Node*, JSC::DFG::Edge) + 1197, name = 'WebThread', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0) * frame #0: 0x0dfb3d1d JavaScriptCore`JSC::DFG::SpeculativeJIT::speculate(JSC::DFG::Node*, JSC::DFG::Edge) + 1197 问题2,看到崩溃:首先在WTF :: CrashOnOverflow :: overflowed()上执行EXC_BREAKPOINT,然后崩溃* thread #10: tid = 0x81c29d, 0x0dfb3d1d JavaScriptCore`JSC::DFG::SpeculativeJIT::speculate(JSC::DFG::Node*, JSC::DFG::Edge) + 1197, name = 'WebThread', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0) * frame #0: 0x0dfb3d1d JavaScriptCore`JSC::DFG::SpeculativeJIT::speculate(JSC::DFG::Node*, JSC::DFG::Edge) + 1197

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM