search-engine.js: refactor as opensearch.js, new api
commita0a6c24eb89f077c5449ee09b71dc0fd9a818cf9
authorJohn Foerch <jjfoerch@earthlink.net>
Fri, 5 Nov 2010 17:48:06 +0000 (5 13:48 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Fri, 5 Nov 2010 17:48:06 +0000 (5 13:48 -0400)
treeeb15a5068f4e98cba97ea6299b0eae6eeb5d2a6f
parent396822fbc4e94486fc58551243f484e2c5eedf68
search-engine.js: refactor as opensearch.js, new api

This patch makes the api for defining opensearch webjumps more like other
apis in the program.  Instead of having a two-step process of loading the
opensearch xml into an auxiliary data structure, then defining webjumps
from the contents of that structure, we now load and define in a single
step.

define_opensearch_webjump takes a name and a spec.  The spec can either
be an nsIFile pointing directly to the opensearch xml file, or it can
be a string filename or relative path, to be resolved against one of the
paths in opensearch_load_paths.

resolves issue208
modules/conkeror.js
modules/opensearch.js [new file with mode: 0644]
modules/search-engine.js [deleted file]