age.name) { case "UITour:SendPageCallback": this.sendPageEvent("Response", aMessage.data); break; case "UITour:SendPageNotification": this.sendPageEvent("Notification", aMessage.data); break; } } sendPageEvent(type, detail) { if (!UITourUtils.ensureTrustedOrigin(this.manager)) { return; } let win = this.contentWindow; let eventName = "mozUITour" + type; let event = new win.CustomEvent(eventName, { bubbles: true, detail: Cu.cloneInto(detail, win), }); win.document.dispatchEvent(event); } } PK