Closed
Bug 226293
Opened 22 years ago
Closed 5 years ago
JS Console is missing strict warnings (but pref is set) for XUL overlays
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: bugs4hj, Unassigned)
Details
Attachments
(3 files, 1 obsolete file)
1.98 KB,
text/plain
|
Details | |
417 bytes,
text/plain
|
Details | |
430 bytes,
patch
|
Details | Diff | Splinter Review |
I installed Netscape 7.1 to check compatibility of MultiZilla v1.5.0.4C and was
shocked to find a lot of strict warnings on the JS Console. However, they are
missing from Mozilla's (build 2003111415) JS Console. What's going on?
Same pref settings, same XPI so that should be no problem.
![]() |
||
Comment 2•22 years ago
|
||
Is "show chrome JavaScript errors and warnings" enabled in your profile (see
debug pref panel)?
Because strict JS warnings in chrome WFM in a current trunk build...
Also, which component did you mean to assign this to? It's in Browser-General
at the moment... (see assignee and QA contact).
"Is "show chrome JavaScript errors and warnings" enabled in your profile (see
debug pref panel)?"
Do you remember that event.target.rel bug? So Yes, that's enabled and I do see
other JS Strict errors, also some of MultiZilla!
"Also, which component did you mean to assign this to? It's in Browser-General
at the moment... (see assignee and QA contact)."
I forgot to select the right component at start but changed it to
javascript-engine, however, that didn't select the right QA Contact/Assigned To
fields and I have no clue in the new mozilla foundation world who that should
be? Do You?
Summary: Js Console is missing strict warnings (but pref is set) → JS Console is missing strict warnings (but pref is set)
I've been testing mozilla 1.4/1.5a/1.5b/1.5RC1/1.5RC-2/1.6a and the current
build but mozilla 1.4 (I skipped 1.4.1) was the last version that displayed all
my strict warnings (-:
Update: no problems with mozilla 1.4 (RC-3) and mozilla 1.4.1. but 1.5a fails to
display the strict warnings!
.
Assignee: general → js-console
QA Contact: general → jrgmorrison
Comment 7•22 years ago
|
||
hm, somehow the component and assignee of this bug don't really match...
HJ: When you want to change assignee/qa contact when changing components, you
have to choose the "[x] Reassign bug to owner and QA contact of selected
component " checkbox.
![]() |
||
Comment 8•22 years ago
|
||
Well, I can't reproduce this (I see plenty of chrome JS warnings), and there's
no testcase, so... call me when there is something to look at here (like a
testcase that can be used to reproduce or something).
I hope to reassign this bug to the right component this time.
Component: JavaScript Engine → JavaScript Console
Reporter | ||
Comment 10•22 years ago
|
||
Please include this file as no-strict-warnings.xul to navigator.xul (overlay)
and you will see what the heck I am talking about!
Reporter | ||
Comment 11•22 years ago
|
||
Steps to reprocude:
1)include the attachment as overlay to navigator.xul
2)start mozilla
Result: alert "Hi There..." but you won't see this:
Warning: function triggerBug does not always return a value
Source File: http://bugzilla.mozilla.org/attachment.cgi?id=136003&action=view
Line: 15, Column: 4
Source Code:
}
only if you load it from the bug report.
But maybe this is just a window (NT) bug...
Reporter | ||
Comment 12•22 years ago
|
||
Attachment #136003 -
Attachment is obsolete: true
Reporter | ||
Comment 13•22 years ago
|
||
This is limited to XUL overlays... I even used console.js/xul and
consoleBindings.xml from mozilla 1.4.1 but that didn't fix this error.
Summary: JS Console is missing strict warnings (but pref is set) → JS Console is missing strict warnings (but pref is set) for XUL overlays
Reporter | ||
Comment 14•22 years ago
|
||
Hmm, another thing. This is what I see in the 1.4.1. JS Console:
Warning: variable resources hides argument
Source File: chrome://multiviews/content/multiviewsRDF.js Line: 586
var resources = resources.replace('sm:resources:', '');
And this is what I got from menu item 'Copy':
Warning: variable resources hides argument
Source File: chrome://multiviews/content/multiviewsRDF.js
Line: 586, Column: 6
Source Code:
var resources = resources.replace('sm:resources:', '');
I don't see 'Column: 6' and 'Source Code:' in the JS Console, but why?
Reporter | ||
Comment 15•22 years ago
|
||
This was displayed in 1.4.1
Warning: reference to undefined property this.mPanelContainer
and this in 1.6b
Warning: reference to undefined property this.mPanelContainer
Source File: chrome://global/content/bindings/tabbrowser.xml
Line: 1441
So they are not the same, even after using console.js/xul/css and
consoleBindings.xml from the 1.4.1 branch!
Here are new, more clear I hope, steps to reproduce:
1)add the attached overlay as \content\navigator\no-strict-warnings.xul to comm.jar
- I used infozip WIZ (any other zip proggy should work?)
2)add the following line to:
mozilla\chrome\overlayinfo\navigator\content\overlays.rdf
<RDF:Seq about="chrome://navigator/content/navigator.xul">
+ <RDF:li>chrome://navigator/content/no-strict-warnings.xul</RDF:li>
3)start mozilla
4)open JS Console
Current result : the JS strict warning is missing
Expected result: how obvious, don't 'hide' JS strict warnings
Severity: normal → major
Reporter | ||
Comment 16•22 years ago
|
||
Boris, you still can't reproduce this bug?
![]() |
||
Comment 17•22 years ago
|
||
This sounds like a core JS/DOM bug, not a console one... as in, I bet the
warning is simply being suppressed way before the console ever hears about it.
HJ, any chance of a patch to a cvs tree that I could apply and test with to
reproduce this overlay thing? I don't have any builds whose chrome I'm willing
to mess with, really (and no time to make sure I do said messing right).
Reporter | ||
Comment 18•22 years ago
|
||
"This sounds like a core JS/DOM bug, not a console one..."
Looks like you're right. "dump("\nmessages.length: "+messages.length" on this line:
http://lxr.mozilla.org/seamonkey/source/xpfe/components/console/resources/content/consoleBindings.xml#109
dumps the expected/right number. What component should this bug go to?
Oh, I don't have any CVS tree available right now, for the next two weeks. Not
at home. I hope Neil will make one for you, I e-mailed him already.
Reporter | ||
Comment 19•22 years ago
|
||
All I could do for now. Hope this helps.
Comment 20•22 years ago
|
||
This is really odd - I have the diggler overlay installed, and it tries to refer
to this._elementIDs when a browser window opens, and that warning does get
logged. But I tried putting HJ's warning in viewSource.xul,
viewSourceOverlay.xul and viewsource.js and none of them reported the strict
warning (although the function did get defined, I verified that from the JS
console). Anyway this bug looks like it should be under a different component.
Assignee: js-console → general
Component: JavaScript Console → JavaScript Engine
QA Contact: jrgmorrison → PhilSchwartau
Comment 21•22 years ago
|
||
Don't have time to test this as thoroughly as HJ, but my instinct
is that this is an embedding issue, rather than anything that has
changed in the JS Engine's production of strict warnings.
cc'ing Brendan for his opinion -
Comment 22•22 years ago
|
||
Someone needs to debug this, but I bet it's not JS engine. Try DOM level 0.
Jst, any thoughts?
/be
Comment 23•21 years ago
|
||
Might be a XUL content code bug, but bouncing to DOM level 0 as promised.
/be
Assignee: general → general
Component: JavaScript Engine → DOM: Level 0
Updated•16 years ago
|
Assignee: general → nobody
QA Contact: pschwartau → general
Comment 24•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Comment 25•5 years ago
|
||
XUL overlays were removed in bug 1426763.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•