Closed Bug 960893 Opened 10 years ago Closed 8 years ago

asahi.com doesn't redirect to mobile site on Firefox OS

Categories

(Web Compatibility :: Site Reports, defect, P5)

All
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hsteen, Assigned: karlcow)

References

()

Details

(Whiteboard: [clientsniff] [country-jp] [sitewait])

Attachments

(1 file)

This sniffing is responsible for creating a banner about mobile content - clicking it takes you to http://digital.asahi.com/sp/guide_smp.html which advertises both apps and smartphone-websites:

http://www.asahicom.jp/js/smartlink_top.utf8.js


//端末判別
var deviceChk = "pc";
var deviceChk_ua = navigator.userAgent;


/* Android chrome */
if(deviceChk_ua.indexOf('Linux; U; Android ') != -1) {
	if(deviceChk_ua.indexOf('Mobile') != -1) {
		deviceChk = "asmp";	
	} else {
		deviceChk = "atab";
	}
}
/* iOS */
if(deviceChk_ua.indexOf('iPhone') != -1) {
	deviceChk = "iphone";
}
if(deviceChk_ua.indexOf('iPad') != -1) {
	deviceChk = "ipad";
}
/* Androide FireFox */
if(deviceChk_ua.indexOf('Android;') != -1) {
	if(deviceChk_ua.indexOf('Mobile') != -1) {
		deviceChk = "asmp";	
	} else {
		deviceChk = "atab";
	}
}




if (deviceChk=="asmp"||deviceChk=="iphone") {
	$(document).ready(function () {
	
		$(window).bind('resize load', function() {
			$("body").css("zoom" , $(window).width()/1000 ); // フッターリンク未調整の場合、*1.2する(実機を見ての調整値)
		});
See Also: → 901569
Attached image 072.png
Hallvors, where do you see the banner? On http://www.asahi.com/ or somewhere else. I'm using Firefox OS (1.2) and I do not see the banner, just the desktop content packed in small.
Summary: asahi.com offers banner advertising mobile content site to Firefox OS → asahi.com doesn't offer banner advertising mobile content site to Firefox OS
I sent an email to the customer services who already helped us on Bug 901569.
Note that the banner is proposing access to a Web form for the Web view and download of apps on android and iphone.

Firefox Android, Firefox OS, UC Web and Opera doesn't seem to receive the banner.
Android Stock browser is receiving it.
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Whiteboard: [clientsniff] [country-jp] [contactready] → [clientsniff] [country-jp] [sitewait]
Sent a reminder yesterday. I had received no answers to the previous email.
Contacted today the email at Asahi Media Labs. 
it's a far shot, but might result in a response.
http://www.asahi.com/shimbun/medialab/
I have the feeling they do not offer the banner for anyone anymore and everyone is receiving the desktop site.
So I guess Invalid. But maybe we can wait a couple of days before closing to see if it's a mistake or not.

Indeed they commented it out.

var topDeviceChk_ua = navigator.userAgent;
if (topDeviceChk_ua.indexOf('Linux; U; Android ') != - 1 || topDeviceChk_ua.indexOf('Linux; Android ') != - 1 || topDeviceChk_ua.indexOf('Android; Mobile; ') != - 1 || topDeviceChk_ua.indexOf('Android; Tablet; ') != - 1 || topDeviceChk_ua.indexOf('iPhone') != - 1 || topDeviceChk_ua.indexOf('iPad') != - 1) {
  //	d.write('<script type="text/javascript" src="http://www.asahicom.jp/js/smartlink_top.utf8.js"></script>');
}
They now redirect mobile browsers through detections. No more smartphone banners. Firefox OS is not in their target, Firefox Android gets the mobile site.

```
function sc_getDevice() {
	var sc_nv_ua = navigator.userAgent.toLowerCase();
	//issp android|iphone|ipad|ipod|mobile\ssafari|iemobile|opera\smini
	var sc_sp_array = ["android", "iphone","ipad","ipod","mobile safari","iemobile","opera mini"];
	for (var i = 0; i < sc_sp_array.length; i ++) {
		if (sc_nv_ua.indexOf(sc_sp_array[i]) !== -1) {
			return sc_sp_array[i];
		}
	}
	return "pc";
}
```


This should be either closed as INVALID or redefined in the title.
..or maybe even both.. :-p
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Priority: -- → P5
Resolution: --- → INVALID
Summary: asahi.com doesn't offer banner advertising mobile content site to Firefox OS → asahi.com doesn't redirect to mobile site on Firefox OS
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.

Attachment

General

Created:
Updated:
Size: