Last modified: 2014-02-12 23:53:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42435, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40435 - beta_opensearch.js - use json from the opensearch api instead of xml
beta_opensearch.js - use json from the opensearch api instead of xml
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-21 18:48 UTC by Asher Feldman
Modified: 2014-02-12 23:53 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Asher Feldman 2012-09-21 18:48:15 UTC
Mobile's search preview should build relative urls from the much sparser json returned by the opensearch api, instead of using the xml response which contains a lot of extra data not useful for a type-ahead preview.  The size difference is huge. 

7672 bytes:  http://en.wikipedia.org/w/api.php?action=opensearch&limit=15&namespace=0&format=xml&search=Ind  

313 bytes:  http://en.zero.wikipedia.org/w/api.php?action=opensearch&limit=15&namespace=0&format=json&search=Ind
Comment 1 Jon 2012-09-21 20:32:15 UTC
I think the original reason was JSON view doesn't provide the link... (which I guess can be derived by prefixing with http://en.wikipedia.org/wiki/ or similar) and also better support for XML in older browsers will look into this.

Corrected product

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links