Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/docshell/test/browser/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

SSL browser_crossGroupOpener.js   Interaktion und
PortierbarkeitJAVA

 
/* Any copyright is dedicated to the Public Domain.
   https://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

"use strict";

const TEST_PATH = getRootDirectory(gTestPath).replace(
  "chrome://mochitests/content",
  "https://example.com"
);

add_task(async function test_browsingContextWithNoOpenerHasCrossGroupOpener() {
  const onNewTab = BrowserTestUtils.waitForNewTab(gBrowser, TEST_PATH, true);
  const openerBrowsingContext = await SpecialPowers.spawn(
    gBrowser.selectedBrowser,
    [TEST_PATH],
    async function (testPath) {
      content.open(testPath, "_blank""noopener");
      return content.browsingContext;
    }
  );
  const newTab = await onNewTab;

  const browsingContext = newTab.linkedBrowser.browsingContext;
  Assert.equal(
    browsingContext.opener,
    null,
    "A tab opened with noopener shouldn't have an opener"
  );
  Assert.ok(
    browsingContext.crossGroupOpener,
    "A cross origin A tab opened with noopener should have a crossGroupOpener"
  );
  Assert.equal(
    browsingContext.crossGroupOpener,
    openerBrowsingContext,
    "The crossGroupOpener should be the same as the actual opener"
  );

  await BrowserTestUtils.removeTab(newTab);
});

Messung V0.5
C=94 H=100 G=96

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.40Angebot  Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.