Reviewed by Maciej.
Test for: <rdar://problem/
4680207> REGRESSION: select-all should fire onSelect event for text fields and textareas (9518)
http://bugzilla.opendarwin.org/show_bug.cgi?id=9518
* fast/forms/onselect-selectall-expected.txt: Added.
* fast/forms/onselect-selectall.html: Added.
WebCore:
Reviewed by Maciej.
- Fix for <rdar://problem/
4680207> REGRESSION: select-all should fire onSelect event for text fields and textareas (9518)
http://bugzilla.opendarwin.org/show_bug.cgi?id=9518
Test: fast/forms/onselect-selectall.html
* page/Frame.cpp: (WebCore::Frame::selectAll): Call notifyRendererOfSelectionChange with userTriggered = true so that onSelect will fire.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15886
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-15 Adele Peterson <adele@apple.com>
+
+ Reviewed by Maciej.
+
+ Test for: <rdar://problem/4680207> REGRESSION: select-all should fire onSelect event for text fields and textareas (9518)
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9518
+
+ * fast/forms/onselect-selectall-expected.txt: Added.
+ * fast/forms/onselect-selectall.html: Added.
+
2006-08-14 Eric Seidel <eric@eseidel.com>
Reviewed by mjs.
2006-08-14 Eric Seidel <eric@eseidel.com>
Reviewed by mjs.
--- /dev/null
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 4 of #text > DIV toDOMRange:range from 0 of #text > DIV to 4 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV to 4 of #text > DIV toDOMRange:range from 0 of #text > DIV to 4 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+This tests that onSelect will fire for textfields and textareas when select-all is invoked.
+
+
+Test Passed: textfield
+Test Passed: textarea
+
--- /dev/null
+<html>
+<head>
+<script src="../../editing/editing.js"></script>
+<script>
+function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ }
+ document.getElementById('tf').focus();
+ selectAllCommand();
+ document.getElementById('ta').focus();
+ selectAllCommand();
+}
+
+function log(msg) {
+ document.getElementById('res').innerHTML = document.getElementById('res').innerHTML + msg + "<br>";
+}
+
+</script>
+</head>
+<body onload="test()">
+This tests that onSelect will fire for textfields and textareas when select-all is invoked.<br/>
+<input id="tf" value="test" onSelect="log('Test Passed: textfield')"><br/>
+<textarea id="ta" onSelect="log('Test Passed: textarea')">test</textarea><br/>
+
+<div id="res"></div>
+</body>
+</html>
\ No newline at end of file
+2006-08-15 Adele Peterson <adele@apple.com>
+
+ Reviewed by Maciej.
+
+ - Fix for <rdar://problem/4680207> REGRESSION: select-all should fire onSelect event for text fields and textareas (9518)
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9518
+
+ Test: fast/forms/onselect-selectall.html
+
+ * page/Frame.cpp: (WebCore::Frame::selectAll): Call notifyRendererOfSelectionChange with userTriggered = true so that onSelect will fire.
+
2006-08-15 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
2006-08-15 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
selectContentsOfNode(root);
selectFrameElementInParentIfFullySelected();
selectContentsOfNode(root);
selectFrameElementInParentIfFullySelected();
+ notifyRendererOfSelectionChange(true);
}
bool Frame::selectContentsOfNode(Node* node)
}
bool Frame::selectContentsOfNode(Node* node)