Closed Bug 1143441 Opened 10 years ago Closed 7 years ago

np.edu.sg 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: haseeb, Unassigned)

References

()

Details

(Whiteboard: [country-sg] [clientsniff] [needscontact])

Attachments

(1 file)

No description provided.
Minor comment: The HTML contains an input with a giant massive string: <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="… here 303 469 characters …" /> Quite insane. I guess output of the framework. The UA detection is happening client side and it's not detecting Firefox OS. http://www.np.edu.sg/Style%20Library/scripts/mobile.js I'm not sure why they commented //(navigator.userAgent.match(/mobile/i))) Which would provide the UA detection for Firefox OS. They need to be contacted so we can work together on a solution. /******************************************** * * Javascripts for mobile & openhouse site redirection * ********************************************/ // Build an empty URL structure in which we will store // the individual query values by key. var objURL = new Object(); // Use the String::replace method to iterate over each // name-value pair in the query string. Location.search // gives us the query string (if it exists). window.location.search.replace( new RegExp( "([^?=&]+)(=([^&]*))?", "g" ), // For each matched query string pair, add that // pair to the URL struct using the pre-equals // value as the key. function( $0, $1, $2, $3 ){ objURL[ $1 ] = $3; } ); var skip = "false"; //var skip = "true"; for (var strKey in objURL){ if(strKey+"="+objURL[ strKey ]=="mobile=false"){ skip = "true"; //skip = "false"; } if(strKey+"="+objURL[ strKey ]=="main=false"){ skip = "true"; } if(strKey+"="+objURL[ strKey ]=="redirect=false"){ skip = "true"; //skip = "false"; } } if(skip!="true"){ if((navigator.userAgent.match(/iPhone/i))|| (navigator.userAgent.match(/iPod/i))|| (navigator.userAgent.match(/iPad/i))|| (navigator.userAgent.indexOf("iPad") != -1)|| (navigator.platform.indexOf("iPad") != -1)|| (navigator.userAgent.match(/iPad/i) != null)|| (navigator.userAgent.match(/samsung/i))|| (navigator.userAgent.match(/sony/i))|| (navigator.userAgent.match(/moto/i))|| (navigator.userAgent.match(/wap/i))|| (navigator.userAgent.match(/j2me/i))|| (navigator.userAgent.match(/Windows phone/i))|| (navigator.userAgent.match(/Symbian/i))|| (navigator.userAgent.match(/blackberry/i))|| (navigator.userAgent.match(/palm/i))|| (navigator.userAgent.match(/HTC/i))|| (navigator.appVersion.indexOf("Windows CE")>0)|| (navigator.userAgent.match(/webOS/i))|| (navigator.userAgent.match(/Android/i)))//|| //(navigator.userAgent.match(/mobile/i))) { location.replace("/mobile"); } else { // location.replace("https://www1.np.edu.sg/openhouse/index.html"); // location.replace("https://www1.np.edu.sg/jae/index.html"); // location.replace("https://www.np.edu.sg/np/pages/default.aspx"); // location.replace("https://www.np.edu.sg/np/pages/default2.aspx"); } }
Whiteboard: [country-sg] → [country-sg] [clientsniff] [needscontact]
Priority: -- → P5
Closing as we are not working on Firefox OS anymore.
Status: NEW → RESOLVED
Closed: 7 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: