mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures
This commit is contained in:
parent
0180ce818c
commit
eded800b4f
@ -193,18 +193,6 @@ HTMLAnchorElement::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
|
||||
}
|
||||
|
||||
static bool
|
||||
IsNodeInEditableRegion(nsINode* aNode)
|
||||
{
|
||||
while (aNode) {
|
||||
if (aNode->IsEditable()) {
|
||||
return true;
|
||||
}
|
||||
aNode = aNode->GetParent();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
HTMLAnchorElement::IsHTMLFocusable(bool aWithMouse,
|
||||
bool *aIsFocusable, int32_t *aTabIndex)
|
||||
@ -226,9 +214,7 @@ HTMLAnchorElement::IsHTMLFocusable(bool aWithMouse,
|
||||
}
|
||||
}
|
||||
|
||||
// Links that are in an editable region should never be focusable, even if
|
||||
// they are in a contenteditable="false" region.
|
||||
if (IsNodeInEditableRegion(this)) {
|
||||
if (IsEditable()) {
|
||||
if (aTabIndex) {
|
||||
*aTabIndex = -1;
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
<html class="reftest-wait">
|
||||
<body onload="start()">
|
||||
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
|
||||
<script>
|
||||
var div = document.querySelector("div");
|
||||
function start() {
|
||||
div.focus();
|
||||
}
|
||||
function done() {
|
||||
var sel = getSelection();
|
||||
// Set the caret right before "baz"
|
||||
sel.collapse(div.lastChild, 0);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
|
||||
<script>
|
||||
var div = document.querySelector("div");
|
||||
function start() {
|
||||
div.focus();
|
||||
}
|
||||
function done() {
|
||||
var sel = getSelection();
|
||||
sel.collapse(div, 0);
|
||||
// Press Right four times to set the caret right before "baz"
|
||||
for (var i = 0; i < 5; ++i) {
|
||||
synthesizeKey("VK_RIGHT", {});
|
||||
}
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,17 +0,0 @@
|
||||
<html class="reftest-wait">
|
||||
<body onload="start()">
|
||||
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><img src="image_rgrg-256x256.png" width="10" height="10"></div>bar</div>
|
||||
<script>
|
||||
var div = document.querySelector("div");
|
||||
function start() {
|
||||
div.focus();
|
||||
}
|
||||
function done() {
|
||||
var sel = getSelection();
|
||||
// Set the caret right before "bar"
|
||||
sel.collapse(div.lastChild, 0);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><img src="image_rgrg-256x256.png" width="10" height="10"></div>bar</div>
|
||||
<script>
|
||||
var div = document.querySelector("div");
|
||||
function start() {
|
||||
div.focus();
|
||||
}
|
||||
function done() {
|
||||
var sel = getSelection();
|
||||
sel.collapse(div, 0);
|
||||
// Press Right four times to set the caret right before "bar"
|
||||
for (var i = 0; i < 6; ++i) {
|
||||
synthesizeKey("VK_RIGHT", {});
|
||||
}
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -55,10 +55,6 @@ support-files =
|
||||
bug644768.html
|
||||
bug1061468.html
|
||||
bug1061468-ref.html
|
||||
bug1109968-1-ref.html
|
||||
bug1109968-1.html
|
||||
bug1109968-2-ref.html
|
||||
bug1109968-2.html
|
||||
|
||||
[test_preserve3d_sorting_hit_testing.html]
|
||||
[test_after_paint_pref.html]
|
||||
|
@ -109,8 +109,6 @@ var tests = [
|
||||
[ 'bug613807-1.html' , 'bug613807-1-ref.html' ] ,
|
||||
[ 'bug1082486-1.html', 'bug1082486-1-ref.html'] ,
|
||||
[ 'bug1082486-2.html', 'bug1082486-2-ref.html'] ,
|
||||
[ 'bug1109968-1.html', 'bug1109968-1-ref.html'] ,
|
||||
[ 'bug1109968-2.html', 'bug1109968-2-ref.html'] ,
|
||||
// The following test cases are all involving with one sending
|
||||
// synthesizeKey(), the other without. They ought to be failed
|
||||
// when touch caret preference on. Test them with preference off.
|
||||
|
Loading…
Reference in New Issue
Block a user