Closed
Bug 432759
Opened 17 years ago
Closed 15 years ago
my.break.com - bad sniffing causes error in non-Firefox Gecko browsers
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: kindofabuzz, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008050707 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008050707 Minefield/3.0pre
i get this upon load: error parsing JSON. - SyntaxError: unterminated string literal when i load up this page. going to another video then back does not produce the error. but if i refresh or load the link fresh i get the error every time.
Reproducible: Always
Steps to Reproduce:
1.load http://my.break.com/content/view.aspx?ContentID=485692
2.
3.
Actual Results:
get the error, hit ok and video plays as normal
Comment 1•17 years ago
|
||
Confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008050804 Minefield/3.0pre
When I change the useragent string to Firefox 2, I don't see the error.
Comment 2•17 years ago
|
||
Bad browser sniffing strikes again:
In:
http://media1.break.com/static/app/v1/global/js/dynamicstatscontent.js
if (BrowserDetect.browser == "Firefox")
XmlDoc.normalize();
var messageNode = XmlDoc.getElementsByTagName("Message");
var jsonDoc;
jsonDoc = messageNode[0].firstChild.nodeValue;
When using Minefield, BrowserDetect.browser returns "Mozilla", so the returned document is not normalized. messageNode has several text node children, so only part of the returned JSON string is set in the jsonDoc variable. This leads to the parse error.
-> Tech Evangelism
Assignee: nobody → english-us
Status: UNCONFIRMED → NEW
Component: General → English US
Ever confirmed: true
Product: Firefox → Tech Evangelism
QA Contact: general → english-us
Summary: popup error on this page (warning: NSFW?) → my.break.com - wrong sniffing (warning: NSFW?)
Updated•17 years ago
|
Blocks: geckoisgecko
OS: Linux → All
Hardware: PC → All
Summary: my.break.com - wrong sniffing (warning: NSFW?) → my.break.com - bad sniffing causes error in non-Firefox Gecko browsers
Comment 3•15 years ago
|
||
INCOMPLETE due to lack of activity since the end of 2009.
If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.
Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•