• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

The Problem

When users type in the address bar, they want suggestions to speed up navigation. Without autocomplete, users would have to type full URLs manually every time.

Core Idea

Browser autocomplete suggests URLs as you type, using history, bookmarks, cookies, and popular queries. It runs locally (no network needed at this stage) and updates in real-time.

How It Works

  1. Input detected: User types character in address bar
  2. Local search: Check against:
    • Browsing history
    • Bookmarks
    • Cookies (visited sites)
    • Popular/common URLs
  3. Display: Show dropdown with matching suggestions
  4. No network: This happens before any DNS/HTTP

Modern browsers also use AI/ML for smarter suggestions.

Visual Explanation

G Input User types 'goo' Sources Local Sources History, Bookmarks, Cookies Input->Sources Suggestions Suggestions google.com google.co.in Sources->Suggestions

Key Properties

  • Runs locally—no network requests yet
  • Uses history, bookmarks, cookies, popular queries
  • Updates in real-time as user types
  • Can be disabled in browser settings

Connections

Edge Cases & Gotchas

  • Private/incognito mode limits autocomplete data
  • Corrupt history database can break autocomplete
  • Some browsers share data across devices (synced)
  • Autocomplete can leak visited sites (privacy concern)