bbc.co.uk science quiz - can't sniff for Flash Player with two-digit version numbers (fails with Flash 10, works with Flash 9), only broken in Gecko browsers

RESOLVED FIXED

Status

Tech Evangelism Graveyard
English US
--
minor
RESOLVED FIXED
9 years ago
3 years ago

People

(Reporter: Tobbi, Assigned: Tobbi)

Tracking

Details

(URL)

(Assignee)

Description

9 years ago
On http://www.bbc.co.uk/science/humanbody/mind/surveys/smiles/index_1.shtml?gender=&age=&occupation=&country=&education=&outlook=2&confidence=5&programme= there should be kind of a quiz which requires Flash Player. However, Flash player is detected correctly on Internet Explorer but not on Firefox.
(Assignee)

Updated

9 years ago
Summary: Incorrect Flash Player detection on site mentioned under URL; works using Internet Explorer but not Firefox → bbc.co.uk science quiz - Incorrect Flash Player detection on site mentioned under URL; works using Internet Explorer but not Firefox

Comment 1

9 years ago
What version of Firefox, and what version of Flash?

The site seems to work fine with a Camino trunk build and Flash 9 (can't test Flash 10 at the moment, but I wouldn't be surprised if the script is only looking at the first digit of the version number).
(Assignee)

Comment 2

9 years ago
(In reply to comment #1)
> What version of Firefox, and what version of Flash?
> 
I'm using 3.0.10 (Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)) and Shockwave Flash 10.0 r22.

Can't retest with Flash 9 to see if it's indeed the Flash version number but might be.

Comment 3

9 years ago
If you can find the problem script, that'll probably answer the question. Meanwhile, I'll keep this on my to-do list to look into when I reinstall Flash 10.
(Assignee)

Comment 4

9 years ago
(In reply to comment #3)
> If you can find the problem script, that'll probably answer the question.

I just found the problematic script:
		<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
// modify the figure below to the version to be detected
var PlayerVersion = 6;	
//thats it
var useRedirect = false; 	
var flash2Installed = false;		// boolean. true if is flash 2
var flash3Installed = false;		// boolean. true if is flash 3
var flash4Installed = false;		// boolean. true if is flash 4
var flash5Installed = false;		// boolean. true if is flash 5
var flash6Installed = false;		// boolean. true if is flash 6
var flash7Installed = false;		// boolean. true if is flash 7
var flash8Installed = false;		// boolean. true if is flash 8

//HERE WE GO:
var maxVersion = 8;					// highest version we can actually detect


var actualVersion = 0;				// version the user really has
var hasRightVersion = false;		// boolean. true if it's safe to embed the flash movie in the page
var jsVersion = 1.0;				// the version of javascript
// -->
</SCRIPT>

That's the problem. (complete function from ll. 350 to 386 in the source code)
(Assignee)

Comment 5

9 years ago
Assigning this to myself, I will notify them about the issue.
Assignee: english-us → tobbi
Status: NEW → ASSIGNED

Updated

9 years ago
Assignee: tobbi → english-us
Status: ASSIGNED → NEW
Summary: bbc.co.uk science quiz - Incorrect Flash Player detection on site mentioned under URL; works using Internet Explorer but not Firefox → bbc.co.uk science quiz - can't sniff for Flash Player with two-digit version numbers (fails with Flash 10, works with Flash 9), only broken in Gecko browsers
(Assignee)

Comment 6

9 years ago
I notified the BBC Web Development team about the issue now.
(Assignee)

Updated

9 years ago
Assignee: english-us → tobbi
Status: NEW → ASSIGNED
(Assignee)

Comment 8

8 years ago
As of now, this no longer seems to be an issue. Both flash applets are working fine.

Based on this experience, I'm closing the bug.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.