gecko-dev/docshell/test/browser/Bug1622420Child.jsm
2020-04-01 12:54:28 +00:00

12 lines
276 B
JavaScript

var EXPORTED_SYMBOLS = ["Bug1622420Child"];
class Bug1622420Child extends JSWindowActorChild {
receiveMessage(msg) {
switch (msg.name) {
case "hasWindowContextForTopBC":
return !!this.browsingContext.top.currentWindowContext;
}
return null;
}
}