bug 834961: require("window/utils").onFocus returns a promise