Summary: Highlighting then copying part of a Yahoo! Mail message fails to copy the message and prints a message to the console. Steps to reproduce: 1. Open Safari/WebKit (or shipping Safari). 2. Log into Yahoo! Mail. 3. View a single message. 4. Use the mouse to select the "Subject:" line through the first few lines of the body of the message. 5. Hit cmd-C to copy. 6. Open TextEdit (or any app you can paste text into; I was using the Comments field of a Bugzilla bug). 7. Hit cmd-V to paste. Expected results: The selected text should be copied, then pasted. Actual results: The selected text was neither copied, nor pasted. Regression: This is NOT a regression from shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135). Tested with a local debug build of WebKit r20427 with the above software. Notes: This appears to be reproducible only on a single message I received on Yahoo! Mail. I will attempt to reduce it later today, or post source or a webarchive that demonstrates the issue. Also, I'm not sure if this is a Safari bug or a WebKit bug. Console output when the copy command fails (once for each failed copy attempt): 2007-03-23 07:20:21.254 Safari[19892] NSRLEArray objectAtIndex:effectiveRange:: Out of bounds
Created attachment 13791 [details] Test case Load this test case, select all the text in the document, then hit cmd-C to copy. On a debug build, nothing will be copied, and a console message is printed: 2007-03-23 22:04:57.409 Safari[20933] NSRLEArray objectAtIndex:effectiveRange:: Out of bounds