text run at (152,250) width 4: " "
RenderTextField {INPUT} at (158,250) size 148x19 [color=#808080] [bgcolor=#FF0000] [border: (2px inset #808080)]
RenderBR {BR} at (308,264) size 0x0
-layer at (13,31) size 142x13 scrollWidth 357
+layer at (13,31) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#545454]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,54) size 142x13 scrollWidth 357
+layer at (13,54) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,77) size 142x13 scrollWidth 357
+layer at (13,77) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#545454]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,100) size 142x13 scrollWidth 357
+layer at (13,100) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#AB0000]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,123) size 142x13 scrollWidth 357
+layer at (13,123) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,146) size 142x13 scrollWidth 357
+layer at (13,146) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#ABABAB]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,169) size 142x13 scrollWidth 357
+layer at (13,169) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#545454]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,192) size 142x13 scrollWidth 357
+layer at (13,192) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#ABABAB]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,215) size 142x13 scrollWidth 357
+layer at (13,215) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#2C2C2C]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,238) size 142x13 scrollWidth 357
+layer at (13,238) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
RenderBlock {DIV} at (3,3) size 142x13
RenderText {#text} at (1,0) size 156x13
text run at (1,0) width 156: "This text field is not disabled"
-layer at (13,261) size 142x13 scrollWidth 357
+layer at (13,261) size 142x13 scrollWidth 356
RenderBlock {DIV} at (3,3) size 142x13 [color=#2C2C2C]
RenderText {#text} at (1,0) size 355x13
text run at (1,0) width 355: "The text in this disabled field should displayed as dimmed or grey"
--- /dev/null
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600
+ RenderBlock {P} at (0,0) size 800x36
+ RenderText {#text} at (0,0) size 104x18
+ text run at (0,0) width 104: "This is a test for "
+ RenderInline {I} at (0,0) size 773x36
+ RenderInline {A} at (0,0) size 356x18 [color=#0000EE]
+ RenderText {#text} at (104,0) size 356x18
+ text run at (104,0) width 356: "http://bugzilla.opendarwin.org/show_bug.cgi?id=10177"
+ RenderText {#text} at (460,0) size 773x36
+ text run at (460,0) width 4: " "
+ text run at (464,0) width 309: "REGRESSION: Successfully dragging text into a"
+ text run at (0,18) width 84: "disabled field"
+ RenderText {#text} at (84,18) size 4x18
+ text run at (84,18) width 4: "."
+ RenderBlock {HR} at (0,52) size 800x2 [border: (1px inset #000000)]
+ RenderBlock (anonymous) at (0,62) size 800x23
+ RenderTextField {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+ RenderText {#text} at (152,2) size 64x18
+ text run at (152,2) width 64: " dragging "
+ RenderInline {SPAN} at (0,0) size 49x18
+ RenderText {#text} at (216,2) size 49x18
+ text run at (216,2) width 49: "this text"
+ RenderText {#text} at (265,2) size 238x18
+ text run at (265,2) width 238: " into the text field should not succeed."
+ RenderText {#text} at (0,0) size 0x0
+ RenderText {#text} at (0,0) size 0x0
+layer at (5,67) size 142x13
+ RenderBlock {DIV} at (3,3) size 142x13 [color=#545454]
+selection start: position 0 of child 0 {#text} of child 7 {SPAN} of child 0 {BODY} of child 0 {HTML} of document
+selection end: position 9 of child 0 {#text} of child 7 {SPAN} of child 0 {BODY} of child 0 {HTML} of document
--- /dev/null
+<body style="margin: 0;">
+<p>
+ This is a test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=10177">http://bugzilla.opendarwin.org/show_bug.cgi?id=10177</a>
+ REGRESSION: Successfully dragging text into a disabled field</i>.
+</p>
+<hr>
+<input id="field" disabled>
+dragging <span id="text">this text</span> into the text field should not succeed.
+<script>
+function runTest() {
+ var text = document.getElementById("text");
+
+ window.getSelection().setBaseAndExtent(text, 0, text, 1);
+
+ if (!window.layoutTestController)
+ return;
+
+ layoutTestController.waitUntilDone();
+
+ var x = text.offsetLeft + text.offsetWidth / 2;
+ var y = text.offsetTop + text.offsetHeight / 2;
+
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ // Wait a moment so that the mouseDown will kick off a drag instead of starting a new selection.
+ eventSender.leapForward(1000);
+
+ // We will to go to great length to prove that we're dragging!
+ eventSender.mouseMoveTo(x + 400, y);
+
+ var field = document.getElementById("field");
+
+ x = field.offsetLeft + field.offsetWidth / 2;
+ y = field.offsetTop + field.offsetHeight / 2;
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseUp();
+ setTimeout('layoutTestController.notifyDone();', 5000);
+}
+
+runTest();
+</script>
+</body>