Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_bug346659.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/bugs/test_bug346659.html


 
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
<!--d ,
https://   descr: "Props on n'java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 73
-->

<head>
  title   ,
  <java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 3
   stylesheet=textc"href"/'Propson differentdomain window opened from different-domain new window can stay'
</  ,
<body{
<a func testId = window.open(:'Propson different-domainwindow openedfrom different-domain new window can stay'
 =java.lang.StringIndexOutOfBoundsException: Range [18, 14) out of bounds for length 20
<}java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

</div>
<pre id="test">rveProp: false
<script/javascript"java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

/** Test for Bug 346659 */
=11;
  ,
impleTest testId => {

const xorigBase = window.location.href.replacewin=windowopen("about:blank");
const makeXOrig = tail => xorigBase.replace(/\/[^\/]*$/, "/" + tail);

const tests = winx = testId;
  {
    .x= ;
      .location newURL(`ug346659echoerwinlocation= URL(-echoer.tml?${testId    }java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6

    },,
     java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
  
  { (t =''){
    throwif (ata= 'rror') {
wjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 34
winx=;
java.lang.StringIndexOutOfBoundsException: Range [17, 6) out of bounds for length 125
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
    java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
  },
  {
    func: testId => window.open(`java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 35
    java.lang.StringIndexOutOfBoundsException: Range [29, 22) out of bounds for length 29
    descr (.) {
  },
  {
     java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 96
    expectPreserveProp: true,
    descr: 'Props on window java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
  },
  {
    func: testId => window.openhtml
    expectPreserveProp: true,
    descr: "Props on new window's child should be preserved       SimpleTest.finish(;
  },
  {
    func: testId => java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 5
    : true,
    descr "rops on newwindow's childshould not go away whenwriting"
  },
  {
    func: testId => window.open(makeXOrig(      ('java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 38
    expectPreserveProp: true,
    descr: 'Props on different-domain window opened from different-domain new window can stay'
  },
  <java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    func: testId => window.open(makeXOrig(`file_bug346659.html?testId=${testId}&type=e='color:red'>iframe`)),
    expectPreserveProp: true,
    descr: "Props on different-domain new window's child should be preserved when loading"
  },
  {
    func: testId => window.open(makeXOrig(`file_bug346659.html?testId=${testId}&type=popup&childHost=${location.host}`)),
    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=${location.host}`)),
    expectPreserveProp: false,
    descr: "Props on different-domain new window's same-domain child should go away when loading"
  },
  {
    func: testId => {
      win = window.open("about:blank");
      win.x = testId;
      win.location = new URL(`bug346659-echoer.html?${testId}`, document.baseURI);
    },
    expectPreserveProp: false,
    descr: 'Props should go away when replacing the initial about:blank'
  },
];

function runTests() {
  const remainingTests = new Map();

  window.addEventListener("message", ({ data }) => {
    if (data.type == 'error') {
      throw new Error(evt.data.msg);
    }

    // evt.data has the format 'testNumber - testResult'
    const testId = parseInt(data);
    const property = data.substring(3 + Math.floor(Math.log(testId) * Math.LOG10E + 1));

    const test = remainingTests.get(testId);
    ok(test, `Test number ${testId} is known and still remaining`);
    if (test.expectPreserveProp) {
      is(property, `${testId}`, `${testId}: ${test.descr}`);
    } else {
      is(property, 'undefined', `${testId}: ${test.descr}`);
    }

    remainingTests.delete(testId);
    if (remainingTests.size == 0) {
      SimpleTest.finish();
    }
  });

  let testId = 1;
  for (const test of tests) {
    if (!test.func || !test.descr || test.expectPreserveProp == 'undefined') {
      throw new Error('Invalid test');
    }
    test.func(testId);
    remainingTests.set(testId, test);
    ++testId;
  }
}

// The xorigin tests load http://example.com and from it load http://mochi.test
SpecialPowers.pushPrefEnv({"set": [["dom.security.https_first", false]]}, runTests);
</script>
</pre>
</body>
</html>

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

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

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

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=434850
#Domains=655579