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 if comment = application.comment comment[3] end end
def os
def os if comment = application.comment i = comment[1] == 'U' ? 2 : 1 OperatingSystems.normalize_os(comment[i]) end end
def platform
def platform if comment = application.comment comment[0] == 'compatible' ? nil : comment[0] end end
def security
def security Security[application.comment[1]] || :strong end
def version
def version send(browser).version || super end