308
edits
(Created page with "This page documents the steps Firefox takes as a user types some text into the URL bar, and when they press "Enter" or "Go". ==While The User Is Typing== From the very first ch...") |
|||
Line 27: | Line 27: | ||
* If it looks like a search according to [http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDefaultURIFixup.cpp#804 this algorithm], insert it into the <tt>keyword.URL</tt> preference value to produce a search URL. | * If it looks like a search according to [http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDefaultURIFixup.cpp#804 this algorithm], insert it into the <tt>keyword.URL</tt> preference value to produce a search URL. | ||
* The algorithm says it's a search if it contains a space or a quote before the first dot, colon or question mark, or if it starts with a question mark. | * The algorithm says it's a search if it contains a space or a quote before the first dot, colon or question mark, or if it starts with a question mark. | ||
... | |||
* If we're looking at something that does not have a scheme specified, prepend either "ftp://" or "http://" depending on whether <code>nsDefaultURIFixup::IsLikelyFTP</code> returns true. | |||
* Try to construct an <code>nsIURI</code>. If that fails, fall back on producing a search url from <tt>keyword.URL</tt>. | |||
* Start the network load. | |||
==Network== | ==Network== | ||
... | ... |
edits