Closed
Bug 321000
Opened 19 years ago
Closed 17 years ago
search bar should replace newlines in pasted text with spaces
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
FIXED
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(2 files, 2 obsolete files)
4.14 KB,
patch
|
ted
:
review+
mconnor
:
approval1.9+
|
Details | Diff | Splinter Review |
2.06 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Similar to bug 23485 . I'll attach a patch tonight.
Comment 2•18 years ago
|
||
*** Bug 326822 has been marked as a duplicate of this bug. ***
Comment 3•18 years ago
|
||
in addition to the search bar, what about the URL bar, which (I think) does an "I'm feeling lucky" google search if no matching hostname is found. or if someone does a keyword search in the URL bar.
Summary: search bar should replace newlines in pasted text with spaces → search bar [and url bar?] should replace newlines in pasted text with spaces
Assignee | ||
Comment 4•18 years ago
|
||
Seth: I fixed that in bug 23485 and bug 253481. This bug should use the same backend work. Unfortunately the straightforward method didn't seem to work, I think the search box uses a different xbl binding for its textbox. I need to look into it.
Comment 5•18 years ago
|
||
*** Bug 352348 has been marked as a duplicate of this bug. ***
Comment 6•18 years ago
|
||
moving it on to my list, for when I return to the trunk. I'd really like to fix this, as I run into all the time!
Assignee: nobody → sspitzer
Status: ASSIGNED → NEW
Assignee | ||
Comment 7•18 years ago
|
||
Should be pretty easy (see the patch from bug 23485), but you might need to change it in the searchbox binding.
Summary: search bar [and url bar?] should replace newlines in pasted text with spaces → search bar should replace newlines in pasted text with spaces
Comment 8•17 years ago
|
||
sorry for the bug spam, re-assigning bugs back to default owner if I'm not working actively on them.
Assignee: sspitzer → nobody
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → ted.mielczarek
Updated•17 years ago
|
Flags: in-litmus?
Assignee | ||
Comment 10•17 years ago
|
||
Ok, got it. Turns out that doing the newline handling in the xul:textbox constructor didn't work for inherited bindings, since their html:input's .editor wasn't initialized at that point. Neil mentioned something about maybe xbl binding during frame construction. Anyway, I pulled that code out into a new method, and called it in a setTimeout from the constructor, and now it works for inherited bindings. The other line of this patch is actually setting newlines="replacewithspaces" in the xul:textbox inside the searchbar binding. I'm definitely going to write some unit tests for this before I get it checked in.
Attachment #279932 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 11•17 years ago
|
||
Makes a change gavin requested on irc, sets the newlines= on the searchbar element in browser.xul, and add newlines to the xbl:inherits in the searchbar binding.
Attachment #279932 -
Attachment is obsolete: true
Attachment #279933 -
Flags: review?(gavin.sharp)
Attachment #279932 -
Flags: review?(gavin.sharp)
Comment 12•17 years ago
|
||
Comment on attachment 279933 [details] [diff] [review] slight modification >Index: toolkit/content/widgets/textbox.xml >+ <method name="setNewlineHandling"> This isn't meant to be "public", so prefix the name with "_" please. r=me with that.
Attachment #279933 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 13•17 years ago
|
||
Ok, carrying forward review.
Attachment #279933 -
Attachment is obsolete: true
Attachment #279941 -
Flags: review+
Assignee | ||
Comment 14•17 years ago
|
||
Browser chrome test for this + bug 23485.
Attachment #279998 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•17 years ago
|
Attachment #279941 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #279941 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 15•17 years ago
|
||
Comment on attachment 279941 [details] [diff] [review] with review comment Checked in. Gavin, how about a review on that unit test?
Updated•17 years ago
|
Flags: in-testsuite?
Comment 16•17 years ago
|
||
Works in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007091804 Minefield/3.0a8pre.
Updated•17 years ago
|
Flags: in-litmus? → in-litmus-
Updated•17 years ago
|
Attachment #279998 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 17•17 years ago
|
||
Checked in the test.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•