Source code

Revision control

Other Tools

1
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
"use strict";
6
7
var EXPORTED_SYMBOLS = ["ContentEventListenerParent"];
8
9
const { BrowserTestUtils } = ChromeUtils.import(
11
);
12
13
class ContentEventListenerParent extends JSWindowActorParent {
14
receiveMessage(aMessage) {
15
switch (aMessage.name) {
16
case "ContentEventListener:Run": {
17
BrowserTestUtils._receivedContentEventListener(
18
aMessage.data.listenerId,
19
this.browsingContext.top
20
);
21
break;
22
}
23
}
24
}
25
}