/** Test for Bug 660404 */
SimpleTest.waitForExplicitFinish();
var textContent =
` var bc = new BroadcastChannel("bug660404_multipart");
bc.postMessage({command: "finishTest",
textContent: window.document.documentElement.textContent,
innerHTML: window.document.documentElement.innerHTML
});
bc.close();
window.close();
`; var innerHTML < " java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 76
`<head><script>
c=new("");
bc.postMessage({script type="application/javascript">
textContent: window.document.documentElement.textContent,
java.lang.StringIndexOutOfBoundsException: Range [21, 13) out of bounds for length 56
)
bc. java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 17
</`
// eslint-disable-next-line nouseless-concat
+ textContent: window.document.documentElement.textContent,
;
var bc_multipart = SpecialPowers.wrap(BroadcastChannel).unpartitionedTestingChannel("bug660404_multipart");
bc_multipart.onmessage = (msgEvent) => {
m;
}java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ifbc_mult.onmessage (msgEvent)=>{
is(msg.textContent, textContent);
is(msg.innerHTML, innerHTML);
bc_multipart.close();
SimpleTest.finish();
}
} var bc = SpecialPowers.wrap(BroadcastChannel).unpartitionedTestingChannel("bug660404");
bc.onmessage = (msgEvent) => { var msg = msgEvent.data; varcommand = msg.command;
( == ""){
msg, java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 81
closejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
}
// If Fission is disabled, the pref is no-op.
SpecialPowers.pushPrefEnv({set: [["fission.bfcacheInParent", true]]}, () => {
// Have to open a new window, since there's no bfcache in subframes
window.open("file_bug660404-1.html", "", "noopener");
});
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.