Skip to content

the-super-friends/universal-search-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

universal-search-content

the iframe that we put inside the autocomplete dropdown

setup

  1. npm install -g harp
  2. harp server
  3. navigate to http://localhost:9000/

how to use with your custom gecko

  1. make sure the server is running with harp server
  2. build gecko-dev following the instructions
  3. when the custom nightly opens up, add prefs:
  • surf to about:config
  • create a new pref (right-click in the main pref area, then choose New > String)
  • name it services.universalSearch.frameURL
  • set its value to the complete path to the iframe URL, for example, http://localhost/iframe.html
  • create another new String pref
  • name it services.universalSearch.baseURL
  • set its value to the scheme and domain part of the iframe URL, for example, http://localhost
  1. bask in our collective glory

documenting the postmessage API with the autocomplete code

https://gist.github.com/6a68/48bf56e5b66e8631b522