зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
497 B
JavaScript
17 строки
497 B
JavaScript
|
function focusReceived() {
|
||
|
sendAsyncMessage("Test:E10SFocusReceived");
|
||
|
}
|
||
|
|
||
|
function blurReceived() {
|
||
|
sendAsyncMessage("Test:E10SBlurReceived");
|
||
|
}
|
||
|
|
||
|
addEventListener("focus", focusReceived, true);
|
||
|
addEventListener("blur", blurReceived, true);
|
||
|
|
||
|
addMessageListener("Test:E10SFocusTestFinished", function testFinished() {
|
||
|
removeEventListener("focus", focusReceived, true);
|
||
|
removeEventListener("blur", blurReceived, true);
|
||
|
removeMessageListener("Test:E10SFocusTestFinished", testFinished);
|
||
|
});
|