Closed
Bug 202792
Opened 21 years ago
Closed 21 years ago
strict-js warnings at Firebird startup
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
VERIFIED
FIXED
Firebird0.7
People
(Reporter: holyspirit, Assigned: bugs)
References
Details
Attachments
(1 file)
2.82 KB,
patch
|
noririty
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030420 Phoenix/0.5+ Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030420 Phoenix/0.5+ 1) redeclaration of currentIndex (interesting code dup, copy and paste error?) 2) redeclaration of uniqueId 3) makes insertItem returns null on failure (previously return;) Reproducible: Always Steps to Reproduce:
Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
What warning are you talking about?
Reporter | ||
Comment 3•21 years ago
|
||
you may need to turn on show strict warnings to get those warning messages...
Updated•21 years ago
|
Summary: remove warning at Firebird startup → strict-js warnings at Firebird startup
confirming. -> NEW -> minor Steps to Reproduce: 1. Add the following code to your user.js file: user_pref("javascript.options.strict", true); user_pref("javascript.options.showInConsole", true); 2. Restart Firebird Browser and Open JavaScript Console. Actual Results: ******************************************************* Warning: redeclaration of var uniqueId Source File: chrome://global/content/widgets/toolbar.xml#toolbar.insertItem() Line: 13, Column: 18 Source Code: var uniqueId = (new Date()).getTime()+this.childNodes.length; Warning: redeclaration of var uniqueId Source File: chrome://global/content/widgets/toolbar.xml#toolbar.insertItem() Line: 19, Column: 18 Source Code: var uniqueId = (new Date()).getTime()+this.childNodes.length; Warning: function insertItem does not always return a value Source File: chrome://global/content/widgets/toolbar.xml#toolbar.insertItem() Line: 53, Column: 26 Source Code: return newItem; Warning: redeclaration of var currentIndex Source File: chrome://global/content/widgets/tabbrowser.xml#tabbrowser.removeTab() Line: 47, Column: 16 Source Code: var currentIndex = this.mPanelContainer.selectedIndex; Expected Results: No Warnings.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 5•21 years ago
|
||
Comment on attachment 121192 [details] [diff] [review] fix chanial, you are the only one I know which is currently working on Firebird :)
Attachment #121192 -
Flags: review?(chanial)
Comment 6•21 years ago
|
||
*** Bug 213226 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
Reassigning to Ben as per comment 2 in bug 213226.
Assignee: blakeross → bugs
Component: General → Toolbars
QA Contact: asa → bugzilla
Comment 8•21 years ago
|
||
This patch looks fine to me, its the same thing I did in the patch on bug 213226
Comment on attachment 121192 [details] [diff] [review] fix looking good.
Attachment #121192 -
Flags: review?(chanial) → review+
Comment 10•21 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firebird0.7
Comment 12•21 years ago
|
||
Taking QA Contact
Updated•18 years ago
|
QA Contact: bugzilla → toolbars
You need to log in
before you can comment on or make changes to this bug.
Description
•