Closed Bug 905627 Opened 11 years ago Closed 6 years ago

NHK doesn't serve mobile content to Firefox OS

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: karlcow, Assigned: karlcow, NeedInfo)

References

()

Details

(Whiteboard: [mobile-compat-form] [serversniff] [clientsniff] [country-jp] [sitewait])

Attachments

(3 files)

Site: http://www.nhk.or.jp/
NHK doesn't serve mobile content to Firefox OS

:: Steps To Reproduce

1. Enter http://www.nhk.or.jp/ on Firefox OS+ZTE


:: Expected Result

Receive mobile content as for the iOS (redirected to www.nhk.or.jp/sp/)

:: Actual Result

Received the desktop content.

:: Additional Information

Software Version: Boot2Gecko 1.0.1.0-prerelease
Device Information: ZTE roamer2
Reporter's User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:23.0) Gecko/20100101 Firefox/23.0
There's two things happening here:

1) Some server side detection that redirects to /sp/ and includes the following script: <script src="/common/sp/nol_SmartPhone.js" type="text/javascript"></script> (the page content changes as well, but this script is important to get fixed). We probably want to land in "othermobile", see https://github.com/miketaylr/Snort/commit/4e8dab36b868850fa478169e8c25eef15fff525a#L0R1523

2) Then there's a common.js file that does some more UA sniffing for both desktop and mobile sites. See https://github.com/miketaylr/Snort/commit/8fa71e9a8d2569d2ccb9ba098bdfcde89b4166e1#L0R1487. We should recommend they add us to "smartphone".

So recommended fixes: fix server sniffing so FxOS/FF4A make it to /sp/ and tweak the clientside scripts so we get detected as a smartphone.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][serversniff][clientsniff][country-jp][contactready]
Contacted them through the form of NHK World with the hope that they will channel it to the people at NHK.
Assignee: nobody → kdubost
Status: NEW → ASSIGNED
Hardware: Other → ARM
Whiteboard: [mobile-compat-form][serversniff][clientsniff][country-jp][contactready] → [mobile-compat-form] [serversniff] [clientsniff] [country-jp] [sitewait]
Trying to contact another person directly at NHK.
Some additional testing on this site:

The issue is still here for Firefox Android and Firefox OS: The Web site doesn't redirect to 
http://www.nhk.or.jp/sp/

Once the browser has been redirected to http://www.nhk.or.jp/sp/ 
There are minor issues due to the usage of old flexbox properties (both webkit and moz)


For example in onlinetop_sm.css


header {
	text-align: left;
	background:#ffffff;
	padding: 6px 72px 5px 7px;
	display: -webkit-box;
	display: -moz-box;
	display: box;
}


This can be rewritten as 


header {
	text-align: left;
	background:#ffffff;
	padding: 6px 72px 5px 7px;
	display: -webkit-box;
	display: -moz-box;
	display: flex;
}

And it will become forward compatible with *ALL* browsers.
Tomoya-san,

Do we have any contacts with people inside NHK?
Is it a Web site made internally or by an agency outside?

Thanks
Flags: needinfo?(bugzilla)
Attached patch nhk-css.patchSplinter Review
The patch to fix the NHK css.
The fixed CSS once the patch has been applied.
Adding the equivalent bug for Firefox Android
https://webcompat.com/issues/959

> For the status, if I understood, As of today, NHK is not interested in fixing the site. Their target is Safari and Chrome.

We have UA override for Firefox Android.
https://hg.mozilla.org/mozilla-central/raw-file/tip/mobile/android/app/ua-update.json.in

Maybe we should also add UA override for Firefox OS.
https://hg.mozilla.org/mozilla-central/raw-file/tip/b2g/app/ua-update.json.in
Priority: -- → P5
Closing as we are not working on Firefox OS anymore.
Status: ASSIGNED → 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: