Closed Bug 960900 Opened 10 years ago Closed 6 years ago

nikkansports.com sends desktop site to Firefox OS

Categories

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

All
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hsteen, Unassigned, NeedInfo)

References

()

Details

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

Attachments

(1 file)

Attached image 075.png
This site has both a sniffer that adds a "smartphone view" banner, and a sniffer that redirects directly to the mobile site(!). First inline, banner code:

agent = navigator.userAgent;
if ((agent.indexOf("iPhone") != -1) || (agent.indexOf("Android") != -1)) {
	function setandswitch() {
		// 有効期限の作成
		var nowtime = new Date().getTime();
		var clear_time = new Date(nowtime + (60 * 60 * 24 * 1000 * 180));
		var expires = clear_time.toGMTString();
		document.cookie="nssmartphone=no; path=/; expires=" + expires + ";";
		window.location = "http://www.nikkansports.com/m/";
	}
	document.writeln('<div id="iphoneView">');
	document.writeln('<a href="javascript:return false;" onclick="setandswitch();">スマートフォン版トップへ</a>');
	document.writeln('</div>');
}

http://cache1.nipc.jp/mod/js/common.js
if((agent.search(/iPhone/) != -1) || (agent.search(/Android/) != -1) || (agent.search(/Tizen/) != -1)) {
	if (document.cookie.indexOf("nssmartphone=yes") == -1) {
		location.href = iphone_url;
	}
}
The version sent to Firefox Android is working well. 
We need to contact them and ask them to send the same content to Firefox OS.
Flags: needinfo?(tkosaka)
Flags: needinfo?(nshimizu)
Flags: needinfo?(mkato)
Flags: needinfo?(bugzilla)
I think that we have no contact to nikkansports.   But I wiil talk with dynamis ans Kosaka-san tomorrow.
Flags: needinfo?(nshimizu)
kosaka-san, if we need contact to them, could you search contact address?
Flags: needinfo?(mkato)
Flags: needinfo?(bugzilla)
Priority: -- → P5
Closing as we are not working on Firefox OS anymore.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
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: