Bug 57275 - REGRESSION: Can't enter pasted with context or Edit menu text in search or address field in the browser
Summary: REGRESSION: Can't enter pasted with context or Edit menu text in search or ad...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-03-28 15:01 PDT by Enrica Casucci
Modified: 2011-03-28 17:15 PDT (History)
2 users (show)

See Also:


Attachments
Patch (4.19 KB, patch)
2011-03-28 15:42 PDT, Enrica Casucci
sam: review-
Details | Formatted Diff | Diff
Patch2 (5.32 KB, patch)
2011-03-28 17:00 PDT, Enrica Casucci
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2011-03-28 15:01:47 PDT
* STEPS TO REPRODUCE
1. Launch Safari on Windows and copy some text in clipboard
2. Click on the search field in the browser and select Edit>Paste or choose paste from the context menu
3. Press Return

* RESULTS
nothing happens and a beep sounds.
Comment 1 Enrica Casucci 2011-03-28 15:11:22 PDT
<rdar://problem/8246691>
Comment 2 Enrica Casucci 2011-03-28 15:42:59 PDT
Created attachment 87224 [details]
Patch
Comment 3 Sam Weinig 2011-03-28 16:30:32 PDT
Comment on attachment 87224 [details]
Patch

I think it would be better to do this at the Editor command level, and change context menu code to call editor()->command("Cut").execute() and editor()->command("Paste").execute()
Comment 4 Enrica Casucci 2011-03-28 17:00:28 PDT
Created attachment 87241 [details]
Patch2

Updated patch per Sam's feedback.
Comment 5 Enrica Casucci 2011-03-28 17:15:33 PDT
http://trac.webkit.org/changeset/82176