module UserAgent::Browsers::Gecko

def self.extend?(agent)

def self.extend?(agent)
  agent.application && agent.application.product == "Mozilla"
end

def browser

def browser
  GeckoBrowsers.detect { |browser| respond_to?(browser) } || super
end

def localization

def localization
  application.comment[3]
end

def os

def os
  i = application.comment[1] == 'U' ? 2 : 1
  OperatingSystems.normalize_os(application.comment[i])
end

def platform

def platform
  application.comment[0]
end

def security

def security
  Security[application.comment[1]] || :strong
end

def version

def version
  send(browser).version || super
end