Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/ipc/tests/JSWindowActor/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  browser_contentWindow.js

  Sprache: JAVA
 

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

"use strict";

const CONTENT_WINDOW_URL = "https://example.com/";

declTest("contentWindow null when inner window inactive", {
  matches: [CONTENT_WINDOW_URL + "*"],
  url: CONTENT_WINDOW_URL + "?1",

  async test(browser) {
    // If Fission is disabled, the pref is no-op.
    await SpecialPowers.pushPrefEnv({
      set: [["fission.bfcacheInParent"true]],
    });

    let parent = browser.browsingContext.currentWindowGlobal;
    let actorParent = parent.getActor("TestWindow");

    await actorParent.sendQuery("storeActor");

    let url = CONTENT_WINDOW_URL + "?2";
    let loaded = BrowserTestUtils.browserLoaded(browser, false, url);
    BrowserTestUtils.startLoadingURIString(browser, url);
    await loaded;

    let result = await actorParent.sendQuery("checkActor");

    is(result.status, "success""Should succeed when bfcache is enabled");
    ok(
      result.valueIsNull,
      "Should get a null contentWindow when inner window is inactive"
    );
  },
});

Messung V0.5 in Prozent
C=88 H=94 G=90

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.