Bug 18534 - select-all while read-only textarea is focused selects entire page
Summary: select-all while read-only textarea is focused selects entire page
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 10:14 PDT by Eric Seidel (no email)
Modified: 2008-10-10 17:21 PDT (History)
1 user (show)

See Also:


Attachments
test case (176 bytes, text/html)
2008-04-16 10:15 PDT, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2008-04-16 10:14:25 PDT
select-all while read-only textarea is focused selects entire page

Firefox correctly only selects the text in the text area.
Comment 1 Eric Seidel (no email) 2008-04-16 10:15:04 PDT
Created attachment 20589 [details]
test case

This is probably a regression from Safari 2 (native form controls).  But I don't have a copy on hand to test with.
Comment 2 Adele Peterson 2008-04-16 10:22:06 PDT
Regression in Safari 3.  I tried fixing this once with http://trac.webkit.org/projects/webkit/changeset/23881
But it broke layout tests and I remember discussing with some other people that the fix may have been too specific.

If you do select-all in a shadow tree, it shouldn't extend outside of the shadow tree.
Comment 3 Jon@Chromium 2008-10-10 16:36:11 PDT
A similar bug was opened against Chromium, see http://code.google.com/p/chromium/issues/detail?id=2642 and it does not repro with Chromium 0.3.155.0 but Safari 525 which suggests that is had been fixed in a recent change to WebKit.


Comment 4 Adele Peterson 2008-10-10 17:21:17 PDT
Fixed in http://trac.webkit.org/changeset/34900