Closed
Bug 803335
Opened 12 years ago
Closed 12 years ago
Fix Twitter built-in search engine URL
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
FIXED
Firefox 19
People
(Reporter: fryn, Assigned: fryn)
References
()
Details
Attachments
(1 file, 1 obsolete file)
2.46 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
We're using the wrong URL in our built-in Twitter search engine. With our current URL, Twitter incorrectly parses any query that contains a space. For example, typing "hello world" (excluding those quotation marks) results in the Twitter query: hello+world We can easily fix this by changing the URL from: https://twitter.com/search/{searchTerms} to: https://twitter.com/search?q={searchTerms} Fixing this will also make search result page detection much easier if we ever need it. Kev, could you make sure that doing this doesn't break anything on Twitter's end, i.e. Twitter still recognizing that the search came from Firefox?
Attachment #672998 -
Flags: review?(gavin.sharp)
Comment 1•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #0) > Created attachment 672998 [details] [diff] [review] You should move the parameter to a <Param> element because that's what it's meant for and it'll be consistent with our other default engines. (e.g. https://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/searchplugins/bing.xml#15 )
Component: General → Search
Comment 2•12 years ago
|
||
Comment on attachment 672998 [details] [diff] [review] patch I agree with Matt. Otherwise this looks fine, and obviously the result is nicer - but IIRC Twitter specifically asked us to use this URL, so we need to get sign-off from them.
Attachment #672998 -
Flags: review?(gavin.sharp) → review-
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Matthew N. [:MattN] from comment #1) Oops! Good catch. I copied the line https://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/searchplugins/google.xml#20 which was the wrong example to use.
Attachment #673180 -
Flags: review?(kev)
Attachment #673180 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•12 years ago
|
Attachment #672998 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #673180 -
Flags: review?(gavin.sharp) → review+
Comment 4•12 years ago
|
||
Received confirmation this eve from Twitter that this change is approved/encouraged.
Updated•12 years ago
|
Attachment #673180 -
Flags: review?(kev)
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6ed5e25d980a (In reply to Kev Needham [:kev] from comment #4) Thanks for your help, Kev & Gavin & Matt! :)
Target Milestone: --- → Firefox 19
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6ed5e25d980a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•