Open Bug 371633 Opened 15 years ago Updated 3 years ago

image.src = "javascript:theXbm["+i+"]"; url gives array 'is not defined'


(Core :: DOM: Core & HTML, defect, P5)

Windows XP




(Reporter: w.langdon, Unassigned)




(Keywords: regression)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070216 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070216 Firefox/

JavaScript code which generates and manipulates XBM and PNG images has been working under Firefox for several years. Mysweriously in January 2007 it stopped working. I think the problem is due to a change of behaviour of javascript url when used as the .src of an image object. Cf. 

I have just created a small example page which shows the problem on current version of firefox. The same code works ok on Netscape 7.2 but I cannot check that it works on Pre-January versions of Firefox.

Reproducible: Always

Steps to Reproduce:
1. open javascript console
2. open
3. Observe 10 "theXbm is not defined" in console window. is displayed
BUT NOT updated
Actual Results:  
Error: theXbm is not defined
Source File: theXbm[1]
Line: 1
(repeats ten times)

Expected Results:  
No errors should appear in JavaScript Console.
t.xbm should appear at bottom of page
to be rapidnly replaced by XBM images 1..10 in rapid succession
(should cycle indefinitely). Can control speed using faster and slower buttons.
This regressed on the 1.8 branch between 2006-12-01 and 2006-12-03.
Regression of the branch patch from bug 351370.
This is basically the same as bug 355365, which now also has regressed on branch, because of the branch patch of bug 351370.
Assignee: nobody → general
Component: General → DOM
Depends on: 355365
Ever confirmed: true
Flags: blocking1.8.1.3?
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Keywords: regression
Duplicate of the pnglets bug, a safe branch fix doesn't seem likely without an owner.
Flags: blocking1.8.1.4? → blocking1.8.1.4-
Assignee: general → nobody
QA Contact: ian → general

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.