Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/chrome-webidl/     Datei vom 27.6.2026 mit Größe 408 B image not shown  

SSL PrintingSelectionChild.sys.mjs  Interaktion und
PortierbarkeitC


/* 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/. */


export class PrintingSelectionChild extends JSWindowActorChild {
  receiveMessage(message) {
    switch (message.name) {
      case "PrintingSelection:HasSelection":
        return this.hasSelection();
    }

    return undefined;
  }

  hasSelection() {
    let selection = this.browsingContext.associatedWindow?.getSelection();
    return selection && selection.type == "Range";
  }
}

Messung
CHZG
939610096

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.352Angebot  ¤

*Eine klare Vorstellung vom Zielzustand