Closed Bug 188975 Opened 22 years ago Closed 21 years ago

ford.com.pl - Not all content visible/working on Flash site

Categories

(Tech Evangelism Graveyard :: Polish, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hjtoi-bugzilla, Unassigned)

References

()

Details

Compare this site in IE and Mozilla with a Flash plugin. With Mozilla you only
get the page footer.

I gaven't investigated the issue, but my first guess is that the site is
scripting the Flash plugin in a way that is not supported by us, hence trying
Evangelism at first.
Quitting Evangelism due to lack of time...
Assignee: nikolai → nobody
This also should be in Europe: Central, NOT "East".
->Central, then
Assignee: nobody → piskozub
Component: Europe: East → Europe: Central
QA Contact: momoi → pali
Accepting.

The site is using VisualBasic script to open the Flash animation for Internet
Explorer (VBscripts are supported (luckily) only by IE as they are inherently
unsafe) and a plugin for browsers with "Netscape" in the User Agent (UA) string.

This means that Mozilla (which does not have "Netscape" in its UA string will ot
be served the Flash animation in any form.

The script is so bad that even Netscape7 is not recognised as Netscape. I'm not
yet sure why. I suspect it is the plugin detection part.

===== Listing of http://www.ford.com.pl//firefly/cpr/scripts/incFlashCheck.js :

var flashState;
flashState = false;
if (navigator.appName == "Netscape" && navigator.plugins){
numPlugins = navigator.plugins.length;
if (numPlugins > 0){
for (i = 0; i < numPlugins; i++){
plugin = navigator.plugins[i];
if (plugin.description.indexOf("Flash 5") != -1){
flashState = true;
}
if (plugin.description.indexOf("Flash 4") != -1){
flashState = true;
}
if (plugin.description.indexOf("Flash 3") != -1){
flashState = true;
}
}
}
}
if (navigator.appName != "Netscape"){
y = navigator.appVersion
y = parseFloat(y.substring(0, y.indexOf('(')))
document.write('<SCRIP' + 'T LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('flashState =
(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
document.write('flashState =
(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
document.write('flashState =
(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
document.write('</S' + 'CRIPT\> \n');
}

====== end of listing

Status: NEW → ASSIGNED
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Correction: 

Mozilla gives does give back "Netscape" as navigator.appName (I checked). So the
fault is probably in the plugin detection code.
Target Milestone: --- → May
It seems the method described above is never used. 

The navigator detection is supposed to be done here:
http://www.ford.com.pl/firefly/cpr/scripts/incBrowserCheck.js

var s_bN;
var s_bVM;
var s_bVM90;
var s_bL;
var s_bSH;
var s_bSW;
tempBrowserName = navigator.userAgent.toLowerCase();
if (tempBrowserName.indexOf("msie") != -1){
s_bN = "MSIE";
}
else if ((tempBrowserName.indexOf('mozilla')!=-1) &&
(tempBrowserName.indexOf('spoofer')==-1) &&
(tempBrowserName.indexOf('compatible') == -1) &&
(tempBrowserName.indexOf('opera')==-1) && (tempBrowserName.indexOf('webtv')==-1)){
s_bN = "NAV";
}
else {
s_bN = "undefine";
}
if (s_bN == "NAV"){
s_bVM = parseInt(navigator.appVersion);
s_bVM90 = parseFloat(navigator.appVersion);
}
if (s_bN == "MSIE"){
tempBrowserVersion = navigator.appVersion;
x = tempBrowserVersion.indexOf("MSIE");
y = tempBrowserVersion.indexOf(";",x);
s_bVM = parseInt(tempBrowserVersion.substring(x+4,y));
s_bVM90 = parseFloat(tempBrowserVersion.substring(x+4,y));
}

while the Flash availability for Netscape is allegedly done here:
http://www.ford.com.pl/firefly/cpr/index.asp?NavID=home&PageID=&SiteVerID=21&LangID=44

// detection for Netscape
var useFlash;

var testFlash = navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;


if (testFlash){
	useFlash =
parseInt(testFlash.description.substring(testFlash.description.indexOf(".")-1))
>= 6;
	if ( useFlash ) {  
	
	}	
	else {
		useFlash =
parseInt(testFlash.description.substring(testFlash.description.indexOf(".")-1))
>= 5;
			
		if (useFlash){
		
			useFlash =
parseInt(testFlash.description.substring(testFlash.description.indexOf("r")+1))
>= 41;

		}
	     }
	}

if ( useFlash ) {  
	start();
	}
else {  
	top.parent.center.location.replace("/firefly/spg/spg.asp?page=Flash_redir&SiteVerID=21&LangID=44&Firefly=true&purehtml=true");
}
//-->

I'll have to run the code with the Venkman debugger when I find time to see what
goes wrong.
I'll try do do this bug before the end of this month.
Target Milestone: May → Jun
tech evang june 2003 reorg
Component: Europe: Central → Polish
Target Milestone: Jun → ---
Target Milestone: --- → Jun
Giving this bug back to the community ;-)
Assignee: piskozub → polish
Status: ASSIGNED → NEW
QA Contact: pali → polish
Priority: P1 → --
Target Milestone: Jun → ---
The dutch site http://www.ford.nl has the issues. I opened bug 226577 for that.
Site has been redesigned, the new version works in Gecko browsers.
Status: NEW → RESOLVED
Closed: 21 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.