code: function isSelfParent (win) {
    let page = win.MIP.viewer.page
    return page.isRootPage || /* istanbul ignore next */ page.isCrossOrigin
  }
docs: /*
  Tell if the page is rootPage - crossOrigin page is rootpage too
  @param {Object} win window