"Shadow tree" DOM nodes are being accidentally exposed to JavaScript
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Aug 2009 23:25:57 +0000 (23:25 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Aug 2009 23:25:57 +0000 (23:25 +0000)
commite6ab13bd7f92d8b6a2f508f9dee66af00d3bc62a
tree1b9793432c8d734d1bf2f5077c28d4f41a3496fd
parent72ff8d2446f193d35a2ce43c10bfce0dedbfe8bc
"Shadow tree" DOM nodes are being accidentally exposed to JavaScript
https://bugs.webkit.org/show_bug.cgi?id=28086

Patch by Darin Adler <darin@apple.com> on 2009-08-07
Reviewed by Adele Peterson.

Rewrite tests that depend on selection inside <input> and <textarea> elements
from showing up with getSelection(), since does not match Firefox and needs to
change soon.

* editing/deleting/delete-ligature-002-expected.txt: Updated.
* editing/deleting/delete-ligature-002.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* editing/deleting/delete-ligature-003-expected.txt: Updated.
* editing/deleting/delete-ligature-003.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* editing/deleting/skip-virama-001-expected.txt: Updated.
* editing/deleting/skip-virama-001.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* editing/input/textarea-arrow-navigation-expected.txt: Moved to fast/forms.
* editing/input/textarea-arrow-navigation.html: Ditto.

* editing/inserting/insert-thai-characters-001-expected.txt: Updated.
* editing/inserting/insert-thai-characters-001.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* editing/selection/5213963-expected.txt: Added. This is now a text-only test.
* editing/selection/5213963.html: Added a call to dumpAsText(). Changed selection
testing to use selectionEnd instead of getSelection().type.

* editing/selection/find-in-text-control-expected.txt: Updated.
* editing/selection/find-in-text-control.html: Changed test to distinguish the
different text controls. Made it use activeElement to find out if the selection
is inside a control.

* editing/selection/move-begin-end-expected.txt: Updated.
* editing/selection/move-begin-end.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* editing/text-iterator/thai-cursor-movement-expected.txt: Updated.
* editing/text-iterator/thai-cursor-movement.html: Changed to use a contenteditable
<div> element instead of a <textarea> element.

* fast/forms/textarea-arrow-navigation-expected.txt: Moved from editing/input since
this is a <textarea> test, not a general editing test.
* fast/forms/textarea-arrow-navigation.html: Ditto.
Changed to use eventSender instead of the editing machinery to test the down arrow.

* platform/mac/editing/selection/5213963-expected.checksum: Removed.
This is now a text-only test.
* platform/mac/editing/selection/5213963-expected.png: Ditto.
* platform/mac/editing/selection/5213963-expected.txt: Ditto.
* platform/qt/editing/selection/5213963-expected.txt: Ditto.
* platform/win/editing/selection/5213963-expected.txt: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@46926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-ligature-002-expected.txt
LayoutTests/editing/deleting/delete-ligature-002.html
LayoutTests/editing/deleting/delete-ligature-003-expected.txt
LayoutTests/editing/deleting/delete-ligature-003.html
LayoutTests/editing/deleting/skip-virama-001-expected.txt
LayoutTests/editing/deleting/skip-virama-001.html
LayoutTests/editing/input/textarea-arrow-navigation-expected.txt [deleted file]
LayoutTests/editing/inserting/insert-thai-characters-001-expected.txt
LayoutTests/editing/inserting/insert-thai-characters-001.html
LayoutTests/editing/selection/5213963-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/5213963.html
LayoutTests/editing/selection/find-in-text-control-expected.txt
LayoutTests/editing/selection/find-in-text-control.html
LayoutTests/editing/selection/move-begin-end-expected.txt
LayoutTests/editing/selection/move-begin-end.html
LayoutTests/editing/text-iterator/thai-cursor-movement-expected.txt
LayoutTests/editing/text-iterator/thai-cursor-movement.html
LayoutTests/fast/forms/textarea-arrow-navigation-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/textarea-arrow-navigation.html [moved from LayoutTests/editing/input/textarea-arrow-navigation.html with 72% similarity]
LayoutTests/platform/mac/editing/selection/5213963-expected.checksum [deleted file]
LayoutTests/platform/mac/editing/selection/5213963-expected.png [deleted file]
LayoutTests/platform/mac/editing/selection/5213963-expected.txt [deleted file]
LayoutTests/platform/qt/editing/selection/5213963-expected.txt [deleted file]
LayoutTests/platform/win/editing/selection/5213963-expected.txt [deleted file]