From commits-return-70412-archive-asf-public=cust-asf.ponee.io@wicket.apache.org Wed Mar 21 16:45:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 919EE18067E for ; Wed, 21 Mar 2018 16:45:04 +0100 (CET) Received: (qmail 51173 invoked by uid 500); 21 Mar 2018 15:45:03 -0000 Mailing-List: contact commits-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@wicket.apache.org Delivered-To: mailing list commits@wicket.apache.org Received: (qmail 51158 invoked by uid 99); 21 Mar 2018 15:45:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2018 15:45:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 17199C5E10 for ; Wed, 21 Mar 2018 15:45:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.011 X-Spam-Level: X-Spam-Status: No, score=-109.011 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id na8v-DyvKWmN for ; Wed, 21 Mar 2018 15:45:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2AA445FDC3 for ; Wed, 21 Mar 2018 15:45:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8300AE0056 for ; Wed, 21 Mar 2018 15:45:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 52315214D6 for ; Wed, 21 Mar 2018 15:45:00 +0000 (UTC) Date: Wed, 21 Mar 2018 15:45:00 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@wicket.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WICKET-6544) Chrome and Firefox on iOS detected as Safari version -1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WICKET-6544?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164= 08114#comment-16408114 ]=20 ASF subversion and git services commented on WICKET-6544: --------------------------------------------------------- Commit 0cc14749903f51057cc75d011cbc8a02a4e42f4c in wicket's branch refs/hea= ds/WICKET-6544-mobile-browsers from [~solomax] [ https://git-wip-us.apache.org/repos/asf?p=3Dwicket.git;h=3D0cc1474 ] [WICKET-6544] mobile browser detection is improved > Chrome and Firefox on iOS detected as Safari version -1 > ------------------------------------------------------- > > Key: WICKET-6544 > URL: https://issues.apache.org/jira/browse/WICKET-6544 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 7.9.0 > Reporter: Sven Ackermann > Assignee: Maxim Solodovnik > Priority: Major > > The UserAgent detection on iOS for browsers other than Safari does not wo= rk correctly. > E.g. Chrome 64 has UserAgent > ??Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_6 like Mac OS X) AppleWebKit/60= 4.1.34 (KHTML, like Gecko) CriOS/64.0.3282.112 Mobile/15D100 Safari/604.1?? > which is recognized by classes {{UserAgent}} and {{WebClientInfo}} as=C2= =A0Safari with no version (-1). The problem is that the UserAgent does not = contain "Chrome" as required by {{UserAgent.CHROME}}, but instead "CriOS". = So it is recognized as Safari, but since it does not contain "version/", no= version is set. > A similar problem exists for Firefox on iOS where the UserAgent contains = "FxiOS" instead of "Firefox": > ??Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_6 like Mac OS X) AppleWebKit/6= 04.5.6 (KHTML, like Gecko) FxiOS/10.6b8836 Mobile/15D100 Safari/604.5.6?? > In our application this causes some unwanted redirects to legacy pages be= cause we think it is an old Safari browser with no support for some feature= s our pages need. But of course the Chrome und Firefox versions above suppo= rt all that. > see also [https://developer.chrome.com/multidevice/user-agent#chrome_for_= ios_user_agent|https://developer.chrome.com/multidevice/user-agent#chrome_f= or_ios_user_agent,]=C2=A0and=C2=A0[https://developer.mozilla.org/en-US/docs= /Web/HTTP/Headers/User-Agent/Firefox#Firefox_for_iOS]=C2=A0 > Thanks for looking into it. -- This message was sent by Atlassian JIRA (v7.6.3#76005)