Javascript/DHMTL not appearing or working in Firefox 17

RESOLVED WORKSFORME

Status

Tech Evangelism Graveyard
English US
RESOLVED WORKSFORME
5 years ago
2 years ago

People

(Reporter: Yuri, Assigned: dao)

Tracking

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121024073032

Steps to reproduce:

no changes in site, reported by our site visitors, problem is confirmed on our machines updated to Firefox 17


Actual results:

our Javascript/ DHTML (javascript 1.2) dropdown menu is not appearing, therefore not functioning on homepage or any site page in Firefox 17. Not functioning in WIN XP Pro Sp3 nor Win 7 Pro SP1
http://www.bragg.com/
menu is placed directly under the Top main image, and spans the site window width.


Expected results:

Javascript/ DHTML menu should appear and function - site DHTML menu works in Firefox 16.0.2 and prior versions, also works fine in IE, all versions.

Comment 1

5 years ago
In my case many sites relying inf javascript or dhtml show without format in a plain blank webpage with only the text, pictures, etc out of place.
Reload the page dont work, ou had to do a fully reload clear all or press 
[shift] + [F5].

The extension are the same than Fx 16.0.2, in firefox safe mode happen the same
boris.e.silva.r@gmail.com: Bug reports are limited to one single issue. Your comment is offtopic and SPAM. Please contact the support (http://support.mozilla.org)


Back to this bug report:
Last good nightly: 2012-04-30
First bad nightly: 2012-05-01

Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=cfaf90b22fc3&tochan
ge=6e34995a746e

Bug 588909 - Replace Gecko/<date> with Gecko/<version> in UA string

Reporter: 
Your page is doing Useragent sniffing and it fails because our Useragent string format changed.

an example for the old User agent string
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8) Gecko/20100101 Firefox/10.0.8
and the new one:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0
Assignee: general → nobody
Blocks: 814127
Component: JavaScript Engine → General
Blocks: 588909
No longer blocks: 814127
Assignee: nobody → dao
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yuri: the file "stmenu.js" on your site, which says at the top:
/*DHTMLMenu, (c) 2006, SourceTec Software Co.,LTD  -  www.sothink.com*/
is doing bad user agent sniffing, which has broken because of a change we made in Firefox 17.

The code has been compressed so it might be a bit tricky (although possible) to fix by editing it directly. Perhaps you could ask SourceTec Software for an updated version?

Gerv
(Assignee)

Updated

5 years ago
Component: General → English US
Product: Core → Tech Evangelism
Version: 17 Branch → unspecified

Comment 4

5 years ago
I edited the version comparison line in the stcode.js file & it seemed to have sorted the issue.

Changed _r.bIsFX&&_r.oNav.version<=20021130 to _r.bIsFX&&_r.oNav.version>=16;
We reverted the change in the Useragent string in Firefox17.0.1 and this should remain.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.