Closed Bug 102184 Opened 23 years ago Closed 23 years ago

javascript strict warnings in tabbrowser.xml

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: jag+mozilla)

References

Details

Attachments

(1 file)

Whoever checkedin tabbrowser.xml should get spanked!!!!! TURN ON JAVASCRIPT STRICT WARNINGS IN THE "EDIT -> PREFS -> DEBUG" SO WE COULD AVOID ALL THE STRICT WARNING FIXUP...!!!!!!!!!!!! Warning: redeclaration of var webProgress Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 26, Column: 18 Source Code: var webProgress = this.mCurrentBrowser.webProgress; Warning: redeclaration of var i Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 27, Column: 23 Source Code: for (var i = 0; i < this.mProgressListeners.length; i++) { Warning: redeclaration of var p Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 28, Column: 20 Source Code: var p = this.mProgressListeners[i]; Warning: redeclaration of var webProgress Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 38, Column: 18 Source Code: var webProgress = this.mCurrentBrowser.webProgress; Warning: redeclaration of var i Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 39, Column: 23 Source Code: for (var i = 0; i < this.mProgressListeners.length; i++) { Warning: redeclaration of var p Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.updateCurrentBrowser() Line: 40, Column: 20 Source Code: var p = this.mProgressListeners[i];
Hyatt: please please please please: turn on javascript strict warnings in the "Edit -> Prefs -> Debug" so we could avoid all the strict warning fixup...!
Assignee: pchen → hyatt
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Component: XP Apps → Tabbed Browser
QA Contact: sairuh → blakeross
*** Bug 104656 has been marked as a duplicate of this bug. ***
fwiw, recently duped bug 104656 has a partial patch...
Additional (not strict) error: in build 2001102903 (windows 98se), I'm seeing Error: mBlank is not defined Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.mTabProgressListener() Line: 90
Attached patch Fix for this bugSplinter Review
Fixes the warnings. Only the change in the method getBrowserForTab() is a little more than a one line change.
spam: set your filter for "SeverusSnape" to avoid the influx of bugmail changing QA contact of open tabbed browser bugs from blake to me. if this bug requires a reassignment, however, feel free to change it!
QA Contact: blakeross → sairuh
jag, could you review the patch here? thx! oh, an additional js error: Warning: function getBrowserForTab does not always return a value Source File: chrome://global/content/bindings/tabbrowser.xml#tabbrowser.getBrowserForTab() Line: 14, Column: 7 Source Code:
Assignee: hyatt → jaggernaut
Status: ASSIGNED → NEW
Keywords: patch, review
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: Future → ---
Comment on attachment 58977 [details] [diff] [review] Fix for this bug r=jag
Attachment #58977 - Flags: review+
Comment on attachment 58977 [details] [diff] [review] Fix for this bug sr=hewitt
Attachment #58977 - Flags: superreview+
Sairuh: the js warning you cited should be fixed by this patch too. Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
yep, no longer see these errors. vrfy fixed using 2002.01.07.08 comm bits on linux rh7.2.
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: