mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
32 lines
890 B
HTML
32 lines
890 B
HTML
<html><head>
|
|
<title>Testcase bug 344164 - Hang when moving right in caret browsing with this testcase</title>
|
|
<script>
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
|
.getService(Components.interfaces.nsIPrefBranch);
|
|
prefs.setBoolPref("accessibility.browsewithcaret", true);
|
|
|
|
function keymove(i){
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
|
|
|
|
var ev = document.createEvent ('KeyEvents');
|
|
ev.initKeyEvent('keypress', true,true, window, false,false, false, false, 39, 0);
|
|
document.dispatchEvent(ev);
|
|
|
|
setTimeout(keymove,50,i);
|
|
}
|
|
setTimeout(keymove,500,0);
|
|
window.focus();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
text
|
|
<button>
|
|
<div>
|
|
ع
|
|
<input type="submit">
|
|
<map>ع</map>
|
|
</div>
|
|
</button>
|
|
</body></html>
|