Closed
Bug 66928
Opened 24 years ago
Closed 24 years ago
javascript strict warnings in toolbarBindings.xml
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.8
People
(Reporter: bugzilla, Assigned: brendan)
References
Details
(Keywords: js1.5, regression)
Attachments
(3 files)
|
5.06 KB,
patch
|
Details | Diff | Splinter Review | |
|
7.34 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.43 KB,
patch
|
Details | Diff | Splinter Review |
The console is flooded with warninsg like this:
JavaScript strict warning:
chrome://global/content/toolbarBindings.xml#menubar.findNodeByAttribute() line 1
1: function findNodeByAttribute does not always return a value
JavaScript strict warning:
chrome://global/content/toolbarBindings.xml#toolbargrippy.collapsed (getter) lin
e 2: function onget does not always return a value
JavaScript strict warning:
chrome://global/content/toolbarBindings.xml#toolbargrippy.collapsed (setter) lin
e 3: function onset does not always return a value
JavaScript strict warning:
chrome://global/content/toolbarBindings.xml#toolbargrippy.returnNode() line 7: f
unction returnNode does not always return a value
JavaScript strict warning:
chrome://global/content/toolbarBindings.xml#toolbar.findNodeByAttribute() line 1
1: function findNodeByAttribute does not always return a value
Comment 1•24 years ago
|
||
I am seeing this too, but wasn't sure it wasn't my build. This appears to have
happened over the weekend.
Comment 2•24 years ago
|
||
cc'ing brendan, since he had some js changes over the weekend. Brendan, if
you're not at fault, maybe you could offer some insight into why this and
several other similar strict warnings popped up very recently (i.e. who gets the
real blame?).
This is making fixing other strict warnings a real challenge, since there is
considerable console spew.
Comment 3•24 years ago
|
||
Ok, backing out brendan's patch for bug 33390 in my local tree stops these
warnings, as well as the myriad others that appeared around the same time.
Brendan, with strict warnings turned on, this is apparent opening most (all?)
xul windows. It appears to affect .xml files primarily (only?), as I haven't
seen an unexplainable jump in warnings in xul .js files. This make the console
almost useless for debugging with strict warnings on.
Keywords: regression
| Assignee | ||
Comment 4•24 years ago
|
||
Argh. bug 33390 was a compiler footprint reduction fix, not obviously to do
with strict warnings. I'll fix whatever went wrong; sorry about that.
Assignee: vishy → brendan
| Assignee | ||
Comment 6•24 years ago
|
||
I can't reproduce this. It doesn't make sense to me, either. Can someone with
a debug build and a debugger reproduce it and help me remote-debug it?
/be
| Reporter | ||
Comment 7•24 years ago
|
||
just opening a new window with 2001020104 floods my console with strict warnings
including those about toolbarBindings.xml.
This is with strict option on.
Or wasn't this what you asked about..?
| Assignee | ||
Comment 8•24 years ago
|
||
Got it (I was being lame earlier). XBL-compiled functions partake of the space
savings from the fix for bug 33390, which means each statement in the top-level
block statement that is the function's body is parsed and then compiled into
bytecode, then recycled. This is a win, but it confuses the CheckFinalReturn
code. Patch coming up, cc'ing r= and sr= buddies.
/be
| Assignee | ||
Comment 9•24 years ago
|
||
| Assignee | ||
Comment 10•24 years ago
|
||
| Assignee | ||
Comment 11•24 years ago
|
||
Comment 12•24 years ago
|
||
Looks like a good fix, and cleanup to boot!
sr=shaver
Comment 13•24 years ago
|
||
r=jband
| Assignee | ||
Comment 14•24 years ago
|
||
Fix checked in. Thanks,
/be
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 15•24 years ago
|
||
Since bug 66930 was named a dupe of this bug.
JavaScript strict warning:
XStringBundle.stringBundle (getter) line 1: reference to undefined property this
._bundle
JavaScript strict warning:
XStringBundle.stringBundle (getter) line 1: reference to undefined property this
._bundle
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 16•24 years ago
|
||
Henrik: please don't reopen this bug based on any old strict warning that crops
up. Those warnings are legit; jag is on the case.
/be
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 17•24 years ago
|
||
no longer see this when i open a new browser window [ctrl+n]. vrfy using
2001.02.09.08 comm bits on linux.
i do see other errors, but that's covered by bug 61708.
Status: RESOLVED → VERIFIED
Updated•24 years ago
|
Keywords: mozilla0.8
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•