Chromium Code Reviews
DescriptionProperly collapse newlines (and leading/trailing whitespace) from pasted
text in location bar. E.g., pasting
www.foo.
org/
bar
into an empty location bar should yield "www.foo.org/bar". To accomplish
this (as of Patch Set 3), in AutocompleteTextFieldEditor we override
NSTextView's -paste:pboard: method, and manually read the pasteboard,
collapse, and insert the text. As long as all pastes occur through this
method, it'll be fine.
Patch Set 4: unit test added.
BUG=14577
TEST=chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #
Messages
Total messages: 2 (0 generated)
|
|||||||||||||||||||||||||||||||||||||