Bug 221660
Summary: | It is too easy to hit IPC throttling when calling -[WKWebView evaluateJavaScript:completionHandler:] | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jonathan Deutsch <jonathan> |
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | cdumez, ggaren, jonathan, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 14 | ||
Hardware: | Mac (Apple Silicon) | ||
OS: | macOS 11 |
Jonathan Deutsch
If you make too many JavaScript calls, you will hit:
2021-02-09 21:30:06.900010-0800 WebKitTester[66085:1768235] [IPC] 0x110c64160 - Connection::dispatchIncomingMessages: IPC throttling was triggered (has 13997 pending incoming messages, will only process 600 before yielding)
2021-02-09 21:30:06.903092-0800 WebKitTester[66085:1768235] [IPC] 0x110c64160 - Connection::dispatchIncomingMessages: first IPC message in queue is WebPageProxy_SetRenderTreeSize
2021-02-09 21:30:06.903403-0800 WebKitTester[66085:1768235] [IPC] 0x110c64160 - Connection::dispatchIncomingMessages: IPC throttling was triggered (has 13470 pending incoming messages, will only process 300 before yielding)
2021-02-09 21:30:06.903421-0800 WebKitTester[66085:1768235] [IPC] 0x110c64160 - Connection::dispatchIncomingMessages: first IPC message in queue is WebPage_RunJavaScriptInFrameInScriptWorldReply
It isn't clear what the problem is, but I had to develop my own concatenation and deferred call system to deal with this.
Apps like Tumult Hype [https://tumult.com/hype/] have deep integration between their data mode and web views. By limiting total calls, you make development less straight forward for apps like this.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/74423384>