Closed
Bug 153892
Opened 22 years ago
Closed 13 years ago
mcdonalds.se - script errors when working with Flash plug-in
Categories
(Tech Evangelism Graveyard :: Other, defect)
Tech Evangelism Graveyard
Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: johan.alderud, Unassigned)
References
()
Details
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 BuildID: 2002053012 The javascript engine behaves differently depending on wether the Flash plug-in is installed or not. The javascript can be found at http://www.mcdonalds.se/Sweden/Index.nsf/flashredirector.html Reproducible: Always Steps to Reproduce: 1. Open Mozilla 1.0 (without Flash installed) 2. Open http://www.mcdonalds.se 3. Observe that the topFrame does not display any content. 4. Enter javascript: in the adressbar. 5. Observe the errormessage related to "detectFlashActiveX". 6. Install Flash plug-in. 7. Repeat step 1-2. 8. Observe that the topFrame does display content (menusystem). Actual Results: Javascript errors are produced and the script is terminated. Expected Results: Javascript errors should not have been produced and the script should complete.
Using BuildID 2002061712 after removing the flash plugin I get the following error messages in the JS console: Error: detectFlashActiveX is not defined Source File: http://www.mcdonalds.se/Sweden/SiteDocuments.nsf/FlashRedirector.html!ReadForm Line: 29 Error: detectFlashActiveX is not defined Source File: http://www.mcdonalds.se/Sweden/Index.nsf/detectflash.js Line: 10 Possibly should be marked as Tech Evangelism
Comment 2•22 years ago
|
||
Here is http://www.mcdonalds.se/Sweden/Index.nsf/detectflash.js with(document) { writeln('<script language="VBScript">'); writeln('function detectFlashActiveX()'); writeln('on error resume next'); writeln('detectFlashActiveX=(IsObject(CreateObject( "ShockwaveFlash.ShockwaveFlash.5")))'); writeln('end function'); writeln('</script>'); } var gotFlash=false; if( ( navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] && parseInt( navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin.description.substring( navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin.description.indexOf( '.' ) - 1 ) ) >= 5 ) || ( navigator.userAgent.indexOf( 'MSIE' ) && navigator.userAgent.indexOf( 'Windows' ) != -1 ? eval( "detectFlashActiveX" + "()" ) : false ) ) { gotFlash=true ; } else { gotFlash=false; } The reason for the Mozilla error is that the site is using Microsoft-only, VBScript syntax on the line: detectFlashActiveX=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) Reassigning to Tech Evangelism component -
Assignee: rogerl → nitot
Component: JavaScript Engine → Europe: West
Product: Browser → Tech Evangelism
QA Contact: pschwartau → brantgurganus2001
Version: other → unspecified
Updated•22 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
They changed detectflash.js, seems to work now. Retest?
OS: Windows XP → All
Hardware: PC → All
Summary: JavaScript produces scripterrors when working with Flash plug-in → mcdonalds.se - script errors when working with Flash plug-in
Comment 4•21 years ago
|
||
I don't see anything appearing in the top Flash navigation frame.
Comment 6•21 years ago
|
||
other default owner
Assignee: nitot → other
QA Contact: brantgurganus2001 → other
Comment 7•19 years ago
|
||
I get this error on the USA McDonald's site as well... I get to the main mage but when I click on an item at the top of the menu, (nutrition Info) FireFox locks up. I'm on a Mac, and it works fine in the Safari browser. :-(
What Build are you using of Firefox? WFM on BuildID 2005031105 on WinXP SP2
Comment 9•13 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: 13 years ago
Resolution: --- → INCOMPLETE
Updated•9 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
•