Bug 839718: updated isWindowPrivate implementation