]> khamidou — GitHub mirrors - electron.git/commit
Ensure calling webview.send will not block the renderer
authorPaul Betts <paul@paulbetts.org>
Wed, 25 Nov 2015 23:54:30 +0000 (15:54 -0800)
committerPaul Betts <paul@paulbetts.org>
Wed, 25 Nov 2015 23:54:30 +0000 (15:54 -0800)
commit789380dfad09ca59950bb8228f3edb3ac5dc039d
treef9676eed0c73ea46198b9b73df3acc53cea4fe4a
parentbf5e9e4f4d19b05cf2fed73b7efa24aa26a6c4c8
Ensure calling webview.send will not block the renderer

When the browser process is busy, calling webview.send (a method that appears
on its face to be non-blocking) will actually block, because most webview methods
are remoted to a guest view instance in the browser. Instead, define a few methods
which will instead send its call over an async IPC message.
atom/browser/lib/rpc-server.coffee
atom/renderer/lib/web-view/web-view.coffee