Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/plugins/test/mochitest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  browser_blockallplugins.js

  Sprache: JAVA
 

var gTestRoot = getRootDirectory(gTestPath).replace(
  "chrome://mochitests/content/",
  "http://127.0.0.1:8888/"
);

add_task(async function () {
  registerCleanupFunction(function () {
    gBrowser.removeCurrentTab();
    window.focus();
  });
});

add_task(async function () {
  let pluginTab = (gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser));
  await BrowserTestUtils.loadURIString({
    browser: pluginTab.linkedBrowser,
    uriString: gTestRoot + "block_all_plugins.html",
  });
  await SpecialPowers.spawn(gBrowser.selectedBrowser, [], async function () {
    let doc = content.document;

    let objectElt = doc.getElementById("object");
    Assert.ok(!!objectElt, "object should exist");
    Assert.ok(
      objectElt instanceof Ci.nsIObjectLoadingContent,
      "object should be an nsIObjectLoadingContent"
    );
    Assert.equal(
      objectElt.displayedType,
      Ci.nsIObjectLoadingContent.TYPE_FALLBACK,
      "object should be blocked"
    );

    let embedElt = doc.getElementById("embed");
    Assert.ok(!!embedElt, "embed should exist");
    Assert.ok(
      embedElt instanceof Ci.nsIObjectLoadingContent,
      "embed should be an nsIObjectLoadingContent"
    );
    Assert.equal(
      embedElt.displayedType,
      Ci.nsIObjectLoadingContent.TYPE_FALLBACK,
      "embed should be blocked"
    );
  });
});

Messung V0.5 in Prozent
C=99 H=100 G=99

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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