webextension-inspected-window.js (950B)
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 5 "use strict"; 6 7 const { 8 webExtensionInspectedWindowSpec, 9 } = require("resource://devtools/shared/specs/addon/webextension-inspected-window.js"); 10 11 const { 12 FrontClassWithSpec, 13 registerFront, 14 } = require("resource://devtools/shared/protocol.js"); 15 16 /** 17 * The corresponding Front object for the WebExtensionInspectedWindowActor. 18 */ 19 class WebExtensionInspectedWindowFront extends FrontClassWithSpec( 20 webExtensionInspectedWindowSpec 21 ) { 22 constructor(client, targetFront, parentFront) { 23 super(client, targetFront, parentFront); 24 25 // Attribute name from which to retrieve the actorID out of the target actor's form 26 this.formAttributeName = "webExtensionInspectedWindowActor"; 27 } 28 } 29 30 registerFront(WebExtensionInspectedWindowFront);