exposeFunction(name, func) {
    this.exposedFunctions_.push({name, func});
    return Promise.all(this.windows().map(window => window.exposeFunction(name, func)));
  }
@param {string} name
@param {function} func
@return {!Promise}