Closed Bug 826711 Opened 13 years ago Closed 11 years ago

bb.com.br / bancobrasil.com.br doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Site Reports, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lmandel, Assigned: karlcow)

References

()

Details

(Whiteboard: [uaoverride] [country-br] [serversniff] [clientsniff][sitewait])

bb.com.br serves a desktop site to B2G. Bug 819210 added an UA override for this domain. The override should be removed once the domain serves mobile content to B2G. This bug tracks the evangelism for the site to recognize the B2G UA and the removal of the override at that time.
Summary: bb.com.br doesn't recognize B2G UA as mobile → bb.com.br / bancobrasil.com.br doesn't recognize B2G UA as mobile
819210 added overrides for both domains - as bancobrasil.com.br just redirects me to bb.com.br now we could either drop the override for the former now, or keep it (but remember to drop it when bb.com.br is dropped)
The redirection is done client side first and then server side but with differences. # summary ========== FirefoxOS: "Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0" http://bb.com.br/ -(C 200)-> http://bb.com.br/portalbb/iph/verifica.jsp -(S 302)-> http://bb.com.br/portalbb/home/geral/index.bb -(C 200)-> http://www.bancobrasil.com.br/portalbb/jsp/home/geral/caw.jsp -(C 200)-> http://www.bb.com.br/portalbb/home29,116,116,1,1,1,1.bb http://bancobrasil.com.br/ -(C 200)-> http://bancobrasil.com.br/portalbb/iph/verifica.jsp -(S 302)-> http://bancobrasil.com.br/portalbb/home/geral/index.bb -(C 200)-> http://www.bancobrasil.com.br/portalbb/jsp/home/geral/caw.jsp -(C 200)-> http://www.bb.com.br/portalbb/home29,116,116,1,1,1,1.bb FirefoxAndroid: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 http://bb.com.br/ -(C 200)-> http://bb.com.br/portalbb/iph/verifica.jsp -(S 302)-> http://m.bb.com.br/portalmobi/ http://bancobrasil.com.br/ -(C 200)-> http://bancobrasil.com.br/portalbb/iph/verifica.jsp -(S 302)-> http://m.bb.com.br/portalmobi/ So yes the final destination is bb.com.br after JavaScript forms. # Detailed =========== For bb.com.br GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bb.com.br User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 200 OK Accept-Ranges: bytes Content-Length: 533 Content-Type: text/html Date: Fri, 09 Aug 2013 14:59:20 GMT Last-Modified: Tue, 26 Apr 2011 20:05:25 GMT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="pt-BR"> <head> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="sat, 04 dec 1993 21:29:02 gmt"> </head> <body> <form action="/portalbb/iph/verifica.jsp" method="post" name="redirectIph" id="redirectIph"></form> .<script language="JavaScript1.2" type="text/javascript">document.redirectIph.submit();</script> <noscript>Redirect para IPH</noscript> </body> </html> And for bancobrasil.com.br GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bancobrasil.com.br User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 200 OK Accept-Ranges: bytes Content-Length: 533 Content-Type: text/html Date: Fri, 09 Aug 2013 15:01:34 GMT Last-Modified: Tue, 26 Apr 2011 20:05:25 GMT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="pt-BR"> <head> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="sat, 04 dec 1993 21:29:02 gmt"> </head> <body> <form action="/portalbb/iph/verifica.jsp" method="post" name="redirectIph" id="redirectIph"></form> .<script language="JavaScript1.2" type="text/javascript">document.redirectIph.submit();</script> <noscript>Redirect para IPH</noscript> </body> </html> THEN we go to a Server side redirect which is again name independent GET /portalbb/iph/verifica.jsp HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bb.com.br User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 302 Moved Temporarily Content-Type: text/html; charset=ISO-8859-1 Date: Fri, 09 Aug 2013 15:04:59 GMT Location: http://bb.com.br/portalbb/home/geral/index.bb Set-Cookie: JSESSIONID=tXDtSFFbcn6SyDhHktLVfWy3Myd8MrHfvyBmhjTvwJ4qygLs3MBn!-802409722; path=/; HttpOnly Transfer-Encoding: chunked <html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://bb.com.br/portalbb/home/geral/index.bb">http://bb.com.br/portalbb/home/geral/index.bb</a>.</p> </body></html> AND GET /portalbb/iph/verifica.jsp HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bancobrasil.com.br User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 302 Moved Temporarily Content-Type: text/html; charset=ISO-8859-1 Date: Fri, 09 Aug 2013 15:07:59 GMT Location: http://bancobrasil.com.br/portalbb/home/geral/index.bb Set-Cookie: JSESSIONID=R8h1SFFPhg6wBRW661NHrK8FD14nPkGGh1P2yhd8qpnTJJqRcFsg!-802409722; path=/; HttpOnly Transfer-Encoding: chunked <html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://bancobrasil.com.br/portalbb/home/geral/index.bb">http://bancobrasil.com.br/portalbb/home/geral/index.bb</a>.</p> </body></html> BUT THERE'S a difference for Firefox for Android which redirects to the same domain name. GET /portalbb/iph/verifica.jsp HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bancobrasil.com.br User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 302 Moved Temporarily Connection: close Content-Type: text/html; charset=ISO-8859-1 Date: Fri, 09 Aug 2013 15:08:58 GMT Location: http://m.bb.com.br/portalmobi/ Set-Cookie: JSESSIONID=CQGBSFGKDgtyr1LGKl02s8qtnyM9TydN9kk0s62nQgGG9Zh2GMPy!-802409722; path=/; HttpOnly Transfer-Encoding: chunked <html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://m.bb.com.br/portalmobi/">http://m.bb.com.br/portalmobi/</a>.</p> </body></html> AND GET /portalbb/iph/verifica.jsp HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, compress Host: bb.com.br User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0 HTTP/1.1 302 Moved Temporarily Connection: close Content-Type: text/html; charset=ISO-8859-1 Date: Fri, 09 Aug 2013 15:09:10 GMT Location: http://m.bb.com.br/portalmobi/ Set-Cookie: JSESSIONID=y03vSFGW22hLnphHN2k9MHmmQZHpvxyDvSv6J43zBxLzG4N48ySh!-802409722; path=/; HttpOnly Transfer-Encoding: chunked <html><head><title>302 Moved Temporarily</title></head> <body bgcolor="#FFFFFF"> <p>This document you requested has moved temporarily.</p> <p>It's now at <a href="http://m.bb.com.br/portalmobi/">http://m.bb.com.br/portalmobi/</a>.</p> </body></html>
Whiteboard: [uaoverride] → [uaoverride] [country-br] [serversniff] [clientsniff]
contacted by E-mail (to bank's vice president of technology)
Assignee: nobody → hsteen
Status: NEW → ASSIGNED
Whiteboard: [uaoverride] [country-br] [serversniff] [clientsniff] → [uaoverride] [country-br] [serversniff] [clientsniff][sitewait]
Blocks: 911260
No longer blocks: 911260
Assignee: hsteen → nobody
Status: ASSIGNED → NEW
tested still the same as of today.
This one will be a difficult one to solve. Their Web site is operated with a Java infrastructure. Some potential candidates for contact can be found in Linkedin. https://duckduckgo.com/?q=web+developer+%22banco+do+brasil%22+site%3Alinkedin.com
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Suggestion for fixing the issue. Sending the same version of the site to Firefox OS than Firefox Android. The [UA string for Firefox OS][1] has the patterns "Mozilla/5.0 (Mobile; rv:$VERSION) Gecko/$VERSION Firefox/$VERSION" "Mozilla/5.0 (Mobile; nnnn; rv:$VERSION) Gecko/$VERSION Firefox/$VERSION" * where `$VERSION` is a number. * where `nnnn` is a string. but we usually recommend to identify the substring `/mobi/` as much as possible so it will also help other browser vendors on mobile. [1]: https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference#Firefox_OS
In the meantime trying to contact with twitter. http://twitter.com/MozWebCompat/status/435661627212304385
We got a human answer on twitter. Let's see where it leads.
So no luck we still receive the Desktop site. The twitter contact which was social media account asked us to contact… the technical support. > @MozWebCompat boa tarde! Sempre que tiver dificuldade para acessar sua conta, por gentileza, contate nosso suporte técnico 0800 729 0200. We should try to find a direct engineer.
Contacted two email addresses related to the domain name management.
This seems fixed now :)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
oh my! it is.
Status: RESOLVED → VERIFIED
I need to remove the UA override on it. See Bug 1171828
Blocks: 1171828
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.