URL: https://s7d9.scene7.com/s7viewers/html5/MixedMediaViewer.html?asset=Scene7SharedAssets/Mixed_Media_Set_Sample
Browser / Version: Firefox iOS 1.0
Operating System: iOS 8.3
Problem type: Something else - I'll add details below
Steps to Reproduce
- Navigate to: https://s7d9.scene7.com/s7viewers/html5/MixedMediaViewer.html?asset=Scene7SharedAssets/Mixed_Media_Set_Sample
Expected Behavior: An Adobe Scene7 product viewer should be seen. See attached screenshot
Actual Behavior: Nothing is shown because of a JS error from parsing the user agent string.
When loading, the the JS tries to parse the user agent string and fails. This is only an issue when viewing on FireFox on iOS.
Can be reproduced on other browsers by using this user agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4
This is the JS that fails:
if (e.indexOf("safari") > -1 && e.indexOf("mac") > -1) {
this.name = "safari";
this.version.js = "1.5";
var j = e.match(/(version|CriOS)\/([\d]+\.[\w]?\.?[\w]+)/gi);
if (navigator.userAgent.match("CriOS")) {
this.name = "chrome"
}
this.version.minor = parseFloat(j[0].split("/")[1]);
this.version.major = parseInt(j[0].split("/")[1])
}
From webcompat.com with ❤️
URL: https://s7d9.scene7.com/s7viewers/html5/MixedMediaViewer.html?asset=Scene7SharedAssets/Mixed_Media_Set_Sample
Browser / Version: Firefox iOS 1.0
Operating System: iOS 8.3
Problem type: Something else - I'll add details below
Steps to Reproduce
Expected Behavior: An Adobe Scene7 product viewer should be seen. See attached screenshot
Actual Behavior: Nothing is shown because of a JS error from parsing the user agent string.
When loading, the the JS tries to parse the user agent string and fails. This is only an issue when viewing on FireFox on iOS.
Can be reproduced on other browsers by using this user agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4
This is the JS that fails:
From webcompat.com with ❤️