Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/security/test/https-first/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 3 kB image not shown  

Quellcode-Bibliothek browser_DOMDocElementInserted.js   Sprache: unbekannt

 
// Tests that the DOMDocElementInserted event is visible on the frame
add_task(async function () {
  let tab = BrowserTestUtils.addTab(gBrowser);
  let uri = "data:text/html;charset=utf-8,<html/>";

  // Register synchronously before starting the load to avoid race condition
  let eventPromise = BrowserTestUtils.waitForContentEvent(
    tab.linkedBrowser,
    "DOMDocElementInserted",
    true
  );

  BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, uri);
  await eventPromise;

  let loadedURI = await SpecialPowers.spawn(tab.linkedBrowser, [], function () {
    return content.document.documentURI;
  });
  is(loadedURI, uri, "Should have seen the event for the right URI");

  gBrowser.removeTab(tab);
});

Messung V0.5 in Prozent
C=96 H=100 G=97

[0.30QuellennavigatorsProjekt 2026-08-27]