summaryrefslogtreecommitdiffstats
path: root/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/frame-script.js
blob: 7ac5c941cffba916d3f7d917ed70f0880369ac2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * @fileoverview Defines the environment for frame scripts.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

"use strict";

module.exports = {
  globals: {
    // dom/chrome-webidl/MessageManager.webidl

    // MessageManagerGlobal
    dump: false,
    atob: false,
    btoa: false,

    // MessageListenerManagerMixin
    addMessageListener: false,
    removeMessageListener: false,
    addWeakMessageListener: false,
    removeWeakMessageListener: false,

    // MessageSenderMixin
    sendAsyncMessage: false,
    processMessageManager: false,
    remoteType: false,

    // SyncMessageSenderMixin
    sendSyncMessage: false,

    // ContentFrameMessageManager
    content: false,
    docShell: false,
    tabEventTarget: false,
  },
};