Closed Bug 118574 Opened 23 years ago Closed 23 years ago

JavaScript strict warnings in showbuilds.cgi

Categories

(Webtools Graveyard :: Tinderbox, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: WeirdAl, Assigned: mcafee)

Details

Attachments

(1 file)

Warning: reference to undefined property document.layers
Source File: http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey
Line: 73

(clicking one link in guilty column, above strict warning repeated 13 times!)

Warning: reference to undefined property document.layers
Source File: http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey
Line: 104

(clicking one star link, above strict warning repeated 13 times)

Why are we using document.layers to detect for a Netscape 4 browser?
http://developer.netscape.com/evangelism/tools/practical-browser-sniffing/

See bug 81279 for indications why throwing strict warnings en masse is a Bad Thing.

Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.7+) Gecko/20020106
The fact that it's repeated 13 times is bug 104549
in isn't available in nc4 which makes detection so much fun.
Comment on attachment 63925 [details] [diff] [review]
test for undefined

this'll do it.	r=caillon
Comment on attachment 63925 [details] [diff] [review]
test for undefined

Um, would you fix your quotes first actually?  :)  Then r=me
done :)
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Cool beans.  Thanks, guys.  Took me a moment in #mozillazine to see why you
didn't use the sniffer.
Status: RESOLVED → VERIFIED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: