Can you please explain how the address bar suggestions are implemented in Firefox. This is the feature where by all history urls matching my string are shown. I understand that they would have stored the urls in a file and probably use regex to match the strings but can i know the exact implementation. Thx.
Asked
Active
Viewed 150 times
2 Answers
0
What do you mean by exact implementation? It is as simple as do a loop for a list of string, and any string matching it is displayed? Maybe you need to clarify more about your project environment? What you are trying to achieve? Are you creating your own browser? Or you plan to create a web site that can auto suggest? Or you need algorithm help?
Too many possibilities...

John Kenedy
- 564
- 1
- 5
- 18
-
I was trying to look up the implementation that firefox uses for educating myself. So it would be helpful if you could explain the implementation that firefox uses. – praveen Dec 13 '10 at 06:33
0
This answer explains how it is done in Firefox 3.0 - 3.6. In Firefox 4.0, there is an additional step before the last query that is executed that searches pages that are open in tabs.