var windowWidth = window.innerWidth - 25; variframe; iframe = document.createElement("iframe"); iframe.id = "test-iframe"; iframe.height = "10px"; iframe.width = windowWidth + "px"; iframe.style.visibility = "hidden"; iframe.src = this.url;
// Here is where the magic happens... add a listener to the
// frame's onload event - it will call handleEvent iframe.addEventListener("load", this, true);
// append to the end of the page
window.document.body.appendChild(iframe);
};
RemoteCanvas.prototype.handleEvent = function() {
// Look back up the iframe by id var ldrFrame = document.getElementById("test-iframe");
// Get a reference to the window object you need for the
// SpecialPowers.snapshotRect method var remoteWindow = ldrFrame.contentWindow;
function checkFirst()
{
first = canvas.toDataURL();
remoteCanvas.reload(checkForceReload, true);
}
function checkForceReload()
{
second = canvas.toDataURL();
ok(first != second, "We got the wrong image.");
remoteCanvas.reload(checkLazyReload, false);
}
function checkLazyReload()
{
third = canvas.toDataURL();
ok(second != third, "We got the wrong image.");
SimpleTest.finish();
}
var remoteCanvas = new RemoteCanvas();
remoteCanvas.load(checkFirst);
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.23Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-04-27)
¤
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.