summaryrefslogtreecommitdiffstats
path: root/docshell/test/browser/Bug1622420Child.sys.mjs
blob: c5520d59434336c1eae30416e053e04bd5fb13dd (plain)
1
2
3
4
5
6
7
8
9
export class Bug1622420Child extends JSWindowActorChild {
  receiveMessage(msg) {
    switch (msg.name) {
      case "hasWindowContextForTopBC":
        return !!this.browsingContext.top.currentWindowContext;
    }
    return null;
  }
}