mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
497 B
JavaScript
17 lines
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);
|
|
});
|