Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  browser_bug673467.js

  Sprache: JAVA
 

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


// Test for bug 673467.  In a new tab, load a page which inserts a new iframe
// before the load and then sets its location during the load.  This should
// create just one SHEntry.

var doc =
  "data:text/html,<html><body onload='load()'>" +
  "<script>" +
  "  var iframe = document.createElement('iframe');" +
  "  iframe.id = 'iframe';" +
  "  document.documentElement.appendChild(iframe);" +
  "  function load() {" +
  "    iframe.src = 'data:text/html,Hello!';" +
  "  }" +
  "</script>" +
  "</body></html>";

function test() {
  waitForExplicitFinish();

  let taskFinished;

  let tab = BrowserTestUtils.addTab(gBrowser, doc, {}, tab => {
    taskFinished = ContentTask.spawn(tab.linkedBrowser, null, () => {
      return new Promise(resolve => {
        addEventListener(
          "load",
          function () {
            // The main page has loaded.  Now wait for the iframe to load.
            let iframe = content.document.getElementById("iframe");
            iframe.addEventListener(
              "load",
              function listener() {
                // Wait for the iframe to load the new document, not about:blank.
                if (!iframe.src) {
                  return;
                }

                iframe.removeEventListener("load", listener, true);
                let shistory = content.docShell.QueryInterface(
                  Ci.nsIWebNavigation
                ).sessionHistory;

                Assert.equal(shistory.count, 1"shistory count should be 1.");
                resolve();
              },
              true
            );
          },
          true
        );
      });
    });
  });

  taskFinished.then(() => {
    gBrowser.removeTab(tab);
    finish();
  });
}

Messung V0.5 in Prozent
C=95 H=93 G=93

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

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik