Closed Bug 66928 Opened 24 years ago Closed 24 years ago

javascript strict warnings in toolbarBindings.xml

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.8

People

(Reporter: bugzilla, Assigned: brendan)

References

Details

(Keywords: js1.5, regression)

Attachments

(3 files)

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
I am seeing this too, but wasn't sure it wasn't my build. This appears to have happened over the weekend.
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.
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
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
*** Bug 66930 has been marked as a duplicate of this bug. ***
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
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..?
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
Status: NEW → ASSIGNED
Keywords: js1.5, mozilla0.8
Target Milestone: --- → mozilla0.8
Attached patch proposed fixSplinter Review
Looks like a good fix, and cleanup to boot! sr=shaver
r=jband
Fix checked in. Thanks, /be
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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 → ---
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 ago24 years ago
Resolution: --- → FIXED
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
Keywords: mozilla0.8
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: