function initControl1() {
SpecialPowers.wrap($("i1")).mozSetFileArray([domFile]);
}
function initControl2() {
SpecialPowers.wrap($("i2")).mozSetFileArray([domFile]);
}
// Check that we can't just set the value
try {
$("i1").value = fullPath;
is(0, 1, "Should have thrown exception on set!");
} catch(e) {
is($("i1").value, "", "Shouldn't have value here");
}
initControl1();
initControl2();
is($("i1").value, 'C:\\fakepath\\' + leafName, "Leaking full value?");
is($("i2").value, 'C:\\fakepath\\' + leafName, "Leaking full value?");
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.