Closed Bug 92137 Opened 23 years ago Closed 9 years ago

javascript strict warnings in cvsquery.cgi

Categories

(Webtools Graveyard :: Bonsai, defect, P2)

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bugzilla, Assigned: tara)

Details

(Keywords: helpwanted)

Please add the following line to your prefs.js file, so we could avoid all the strict warning fixup...: user_pref("javascript.options.strict", true); To reproduce: Just click on some of the links in the consai checkin page: Warning: reference to undefined property d.target.text Source File: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=day&mindate=&maxdate=&cvsroot=%2Fcvsroot Line: 30 Warning: assignment to undeclared variable l Source File: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=day&mindate=&maxdate=&cvsroot=%2Fcvsroot Line: 10
The code which causes this comes from an onclick event handler. For instance: <td width=45%><a href='cvsview2.cgi?subdir=mozilla/content/shared/public&files=nsCSSKeywordList.h&command=DIRECTORY&branch=&root=/cvsroot' onclick="return js_file_menu('/cvsroot', 'mozilla/content/shared/public','nsCSSKeywordList.h','3.33','',event)"> I might be able to create some kind of patch for this. I need to research event.target.text in Mozilla. (I wrote a chapter on events for my book, but this one doesn't ring a bell.)
By the way, I didn't see the second strict warning listed in the original bug report.
Keywords: helpwanted
QA Contact: matty → timeless
Severity: normal → minor
Priority: -- → P2
QA Contact: timeless → bonsai
Blocks: 296661
No longer blocks: 296661
Bonsai was decommissioned, closing all remaining bugs "wontfix"
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.