]> khamidou — GitHub mirrors - electron.git/commit
Don't handle browser messages before document object is created
authorCheng Zhao <zcbenz@gmail.com>
Sat, 24 Jan 2015 02:33:01 +0000 (18:33 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 24 Jan 2015 02:33:01 +0000 (18:33 -0800)
commit0bcc9b7713d9f36cdb0237dc1cc7ae7c41285e9f
tree16b433652ae5622c2f181fe5991d7d1797f3be78
parent4ba3e101f631c19f082769f24386305a6f461cbf
Don't handle browser messages before document object is created

When we recevied messages from browser, we will try to transfer the
message to web page, and when we do that blink will create an empty
document when there is no document object yet, which will make our init
script run when window.location is still about:blank.
atom/renderer/atom_render_view_observer.cc
atom/renderer/atom_render_view_observer.h