diff options
| -rw-r--r-- | background_scripts/completion.coffee | 2 | ||||
| -rw-r--r-- | lib/utils.coffee | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 23696185..0a936459 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -239,7 +239,7 @@ class DomainCompleter    onPageVisited: (newPage) ->      domain = @parseDomain(newPage.url) -    if domain +    if domain and not Utils.hasChromePrefix newPage.url        slot = @domains[domain] ||= { entry: newPage, referenceCount: 0 }        # We want each entry in our domains hash to point to the most recent History entry for that domain.        slot.entry = newPage if slot.entry.lastVisitTime < newPage.lastVisitTime diff --git a/lib/utils.coffee b/lib/utils.coffee index bbcee1a0..e2ed8d98 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -26,7 +26,7 @@ Utils =      -> id += 1    hasChromePrefix: do -> -    chromePrefixes = [ "about:", "view-source:", "chrome-extension:", "data:" ] +    chromePrefixes = [ "about:", "view-source:", "extension:", "chrome-extension:", "data:" ]      (url) ->        if 0 < url.indexOf ":"          for prefix in chromePrefixes @@ -98,7 +98,7 @@ Utils =    convertToUrl: (string) ->      string = string.trim() -    # Special-case about:[url] and view-source:[url] +    # Special-case about:[url], view-source:[url] and the like      if Utils.hasChromePrefix string        string      else if Utils.isUrl string | 
