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)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: hsteen, Assigned: karlcow)
References
()
Details
(Whiteboard: [clientsniff] [country-jp] [sitewait])
Attachments
(1 file)
110.10 KB,
image/png
|
Details |
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する(実機を見ての調整値) });
Reporter | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
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.
Assignee | ||
Updated•10 years ago
|
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
Assignee | ||
Comment 3•10 years ago
|
||
contact email |
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]
Assignee | ||
Comment 4•10 years ago
|
||
contact email |
Sent a reminder yesterday. I had received no answers to the previous email.
Assignee | ||
Comment 5•9 years ago
|
||
contact 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/
Assignee | ||
Comment 6•9 years ago
|
||
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>'); }
Assignee | ||
Comment 7•9 years ago
|
||
https://webcompat.com/issues/898
Assignee | ||
Comment 8•8 years ago
|
||
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.
Reporter | ||
Comment 9•8 years ago
|
||
..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
Updated•5 years ago
|
Product: Tech Evangelism → Web Compatibility
Updated•2 months ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•