Closed Bug 224605 Opened 21 years ago Closed 21 years ago

Bugzilla JavaScript isn't Mozilla/2 safe

Categories

(Bugzilla :: User Interface, defect)

2.17.1
x86
Windows 2000
defect
Not set
minor

Tracking

()

VERIFIED WONTFIX

People

(Reporter: timeless, Assigned: timeless)

Details

User-Agent: Mozilla/2.02 (WinNT; I)

JavaScript Error: http://bugzilla.mozilla.org/, line 239:
f has no properties.
JavaScript Error: http://bugzilla.mozilla.org/, line 122:
f has no properties.
JavaScript Error: http://bugzilla.mozilla.org/, line 75:
missing ) in parenthetical.
if ((typeof window...
            ^
JavaScript Error: http://bugzilla.mozilla.org/show_bug.cgi?id=224595, line 719:
syntax error.
var id = flagField.name.replace(/flag...
                                ^
JavaScript Error: http://bugzilla.mozilla.org/show_bug.cgi?id=224595, line 590:
syntax error.
var id = flagField.name.replace(/flag...
                                ^
JavaScript Error: http://bugzilla.mozilla.org/query.cgi, line 139:
syntax error.
cpts[0] = { ....
          ^
JavaScript Error: http://bugzilla.mozilla.org/query.cgi, line 2153:
selectProduct is not defined.

I'm ignoring the bugzilla helper which is wontfixed.
Gee, I'm all ears to hear a justification of why we need this one :)
Moreso, it would be much more cool to be, say, "Javascript
0.0004-pre-beta-Brendan's-little-toy"-compliant than something like
Mozilla/2-compliant. Is there a standard or a similar specification being
violated or is this bug just for one arcane browser?
UserAgent: Mozilla/3.04 (WinNT; I)
I get the regexp errors here too. (So, no this isn't just for *one* arcane 
browser.)

JavaScript1.0 didn't have the things used by bugzilla, I can look up when they 
were introduced, my guess is 1.1 (typeof), 1.2 (regexp).

fwiw Mozilla/3 doesn't process:
javascript:"<script language='JavaScript1.2'>alert('hi')</script><b>1"

Although it does process:
javascript:"<script language='JavaScript1.1'>alert('hi')</script><b>1"
This bug is a waste of time IMO. :-)

Gerv
Agreed.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
v
Status: RESOLVED → VERIFIED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.