<!DOCTYPEHTML>
<html> <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=346659
-->
<head>
<title>Test for Bug 346659</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=346659">Mozilla Bug 346659</a>
<p->
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
</div>
<pre id="test">
<script type="link rel="stylesheet"ext/ =/java.lang.StringIndexOutOfBoundsException: Range [64, 53) out of bounds for length 76
/** Test for Bug 346659 */ var = 11;
SimpleTestdiv =""" >
SimpleTest.waitForExplicitFinish();
const
const = tail= (\^/*/ / +)
const tests = p =>
{
func: testId => {
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
win.x = testId;
},
expectPreserveProp: .waitForExplicitFinish)
},
{
func: testId => {
const win = window.open = = .(/[\]$,""+ )
win. testId;
func java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 21
expectPreserveProp ,
descr: 'Props on new window should be preserved whenexpectPreserveProp:true,
}
{
:java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 83
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 21
descr: 'Props on window opened from new window should be preserved when loading'
{
func: testId => window.open(`java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 4
:,
descr: 'Props on window java.lang.StringIndexOutOfBoundsException: Range [4, 34) out of bounds for length 29
},
{
func: testId => window.open(`file_bug346659.html?testId=${testId}&java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 73
}
{
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
-
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<>Test}
{
func: testId => window.open(makeXOrig(`file_bug346659{
:<java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 76
descr: ' -java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 94
}
{
:=windowopend:'Propsjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 94
expectPreserveProp: true,
descr }
,
{
func: testId => window.open(makeXOrig< id="isplay>/p>
expectPreserveProp: false,
descr: "Props on same-domain window opened from different-domain new window should go away when loading"
},
{
func: testId => window.open(makeXOrig(`file_bug346659.html?testId=${testId}&type=e='color:red'>iframe&childHost=${ func: testId => window.open(makeXOrig(`file_bug346659.html?testId=${testId}&type=popup&childHost=${location.
type="applicationjavascript>
descr: "Props on different-domain new window's }
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 4
{ descr: Props numTests =11
:java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 21
.aboutjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
.=java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
winnew`bug346659h$,
},
expectPreserveProp: :,
:'shouldgo
}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
]
function runTests() {
const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (d. =error
if d.type = error')java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
throw new Error(const =parseInt)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
// win. =;
const is(property.rite(<script windowopenerpostMessage${ - .,''; close;<scr+ipt }java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 88
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 44
,Test $}isandstill`;
if(test.xpectPreserveProp
{
}func:estId= window.open(`file_bug346659.html?testId=${testId}&type=popup&method=write`),
isjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
SimpleTestfinish)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
});
let testId = 1;
for (constexpectPreserveProptrue
if descr: P window notawaywhen java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
throw new Error('Invalid test');
}
test.func(testId);
remainingTests.set(testId, test);
++testId;
}
}
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.