Bug 13171 - Copying (cmd-C) fails when highlighting part of a Yahoo! Mail message
Summary: Copying (cmd-C) fails when highlighting part of a Yahoo! Mail message
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 419.x
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://mail.yahoo.com/
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-03-23 07:40 PDT by David Kilzer (:ddkilzer)
Modified: 2007-03-24 03:24 PDT (History)
1 user (show)

See Also:


Attachments
Test case (134 bytes, text/html)
2007-03-23 22:18 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2007-03-23 07:40:56 PDT
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
Comment 1 David Kilzer (:ddkilzer) 2007-03-23 22:18:51 PDT
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