content-script.js (847B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 "use strict"; 5 6 const { 7 Arg, 8 generateActorSpec, 9 } = require("resource://devtools/shared/protocol.js"); 10 11 const contentScriptTargetSpec = generateActorSpec({ 12 typeName: "contentScriptTarget", 13 14 methods: {}, 15 16 events: { 17 "resources-available-array": { 18 type: "resources-available-array", 19 array: Arg(0, "array:json"), 20 }, 21 "resources-destroyed-array": { 22 type: "resources-destroyed-array", 23 array: Arg(0, "array:json"), 24 }, 25 "resources-updated-array": { 26 type: "resources-updated-array", 27 array: Arg(0, "array:json"), 28 }, 29 }, 30 }); 31 32 exports.contentScriptTargetSpec = contentScriptTargetSpec;