// In e10s mode, ContentCacheInChild tries to retrieve selected text and
// caret position when IMEContentObserver notifies IME of focus. At this time,
// we hit assertion in ContentIterator.
SimpleTest.expectAssertions(0, 6);
window.addEventListener("mousedown", function (aEvent) { aEvent.preventDefault(); });
function testSetFocus(aEventType, aCallback)
{ var description = "Setting focus from " + aEventType + " handler: ";
var movingFocus = false; button.addEventListener(aEventType,
function (event) {
movingFocus = true; input.focus();
event.preventDefault(); button.removeEventListener(aEventType, arguments.callee, true);
}, true);
synthesizeMouseAtCenter(button, {});
window.addEventListener("message", function (event) {
if (movingFocus) {
is(event.data, "input-value: blur",
description + " in the iframe should get blur");
is(input.value, "focus",
description + " in the parent should get focus");
} else {
is(event.data, "input-value: focus",
description + " in the iframe should keep having focus");
}
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.