ok(!controller.input?.popupOpen, `Initially no input popup`);
SpecialPowers.wrap(document).notifyUserGestureActivation();
try {
inp.showPicker();
} catch (e) {
if (e.name == "SecurityError" && isXOrigin) {
ok(true, "showPicker was blocked in xorigin document");
return;
}
throw e;
}
is(isXOrigin, false, "showPicker should be blocked in xorigin document");
await SimpleTest.promiseWaitForCondition(
() => controller.input?.popupOpen,
`input[type=${aType}] popup was not opened`
);
ok(controller.input?.popupOpen, `input[type=${aType}] popup open`);
// focus a different element
synthesizeMouseAtCenter(document.getElementById("inp-blur"), {});
await SimpleTest.promiseWaitForCondition(
() => !controller.input?.popupOpen,
`input[type=${aType}] popup was closed`
);
}
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.