Re: TabChild visibility

2017-09-20 Thread Boris Zbarsky
On 9/20/17 3:18 PM, Mike Conley wrote: it appears to be possible to have a non-visible but active DocShell (despite the documentation [4]). The documentation is kinda wrong. A simple example of an active but non-visible docshell is a display:none iframe in the currently selected tab. I shou

Re: TabChild visibility

2017-09-20 Thread Ben Kelly
FWIW, our nsIDocument::VisibilityState() is updated when the docshell goes active: http://searchfox.org/mozilla-central/source/dom/base/nsIDocument.h#2855 http://searchfox.org/mozilla-central/source/dom/base/nsDocument.cpp#12504 http://searchfox.org/mozilla-central/source/dom/base/nsDocument.cpp#1

TabChild visibility

2017-09-20 Thread Mike Conley
Hello dev-platform, TL;DR: TabChild's don't seem to care about the nsIBaseWindow visibility attribute that they implement. In fact, they often lie about it. What should we do about that? What's the best way to detect and tell the TabChild that it's visible or invisible? Also, what's the differen