You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
document.hidden is incorrect if window created but not shown #2826
Currently, document.hidden is set as false if a new BrowserWindow is created with show: false.
The value is set properly once the window is shown and subsequently hidden again.
$ electron testcase.js
[76450:0918/002034:INFO:renderer_main.cc(200)] Renderer process started
[76448:0918/002034:INFO:CONSOLE(2)] "hidden: false", source: (2)
Activity
zcbenz commentedon Sep 21, 2015
Seems that we need to call
WebContents::WasHiddento makedocument.hiddenbehave correctly.jasisk commentedon Sep 24, 2015
👍 thanks @deepak1556 and @zcbenz!