Closed Bug 308666 Opened 19 years ago Closed 19 years ago

Getting a popup error message when checking dependencies

Categories

(Bugzilla :: Query/Bug List, defect)

2.18.3
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: pjdemarco, Assigned: glob)

References

()

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; PPG; .NET CLR 1.1.4322)
Build Identifier: Bugzilla Version 2.18.3 

I set some dependencies for a bug, then pressed "Show Dependencies Tree"
I get an error that says:
A runtime error has occured.
Do you wish to debug?
Line 313
Error: expected identifier, string or number.

I set the URL on bugzilla.org because it's happening there too.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
popup error message

Expected Results:  
No error please.
The URL WFM using Fx 1.0.6 on Linux
Happens on:
Internet Explorer 6.0.2800.1106CO
OS Windows 2000
Version: unspecified → 2.18.3
This may be a dup, I recall hearing about this before.
confirming.

the line that's causing the problem is where we define var Node ..

if (!Node) {
    /* MSIE doesn't define Node, so provide a compatibility array */
    var Node = { TEXT_NODE: 3, };
}

the fix is to remove the trailing ,

if (!Node) {
    /* MSIE doesn't define Node, so provide a compatibility array */
    var Node = { TEXT_NODE: 3 };
}

also of interest is the <script> block is after </html>
Status: UNCONFIRMED → NEW
Ever confirmed: true
glob, could you fix this bug?
Attached patch v1 (obsolete) β€” β€” Splinter Review
removes trailing comma that causes IE warning.
Assignee: query-and-buglist → bugzilla
Status: NEW → ASSIGNED
Attachment #197499 - Flags: review?
Looks like the JavaScript introduced in bug 236424 has never worked on IE. That
bug is targeted to 2.18 so only 2.16 branch is not affected by this.

And yes, that JS script is located after </html> AND it messed up
depthControlToolbar BLOCKs comment too. Not good.
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.18
Comment on attachment 197499 [details] [diff] [review]
v1

So this seems to fix the original popup. But when toggling is actually
attempted a new popup hits:

Line: 333
Char: 5
Error: 'nodeType' is null or not an object
Attachment #197499 - Flags: review? → review-
Looks like Mac is having the same trouble.  Bug# 309106
*** Bug 309106 has been marked as a duplicate of this bug. ***
Attached patch v2 (2.20 branch and tip) β€” β€” Splinter Review
uses event.srcElement if event.target doesn't exist
moves the javascript before </html>
moves block toolbar comment to correct location

this works on firefox and ie, can someone please test with safari.
Attachment #197499 - Attachment is obsolete: true
Attachment #197642 - Flags: review?
Comment on attachment 197642 [details] [diff] [review]
v2 (2.20 branch and tip)

Tested to fix all mentioned problems on 2.20 branch and on tip using Firefox,
IE 6 and Opera 7.

Can't test Safari, so requesting additional review for that.

Also, second hunk doesn't apply cleanly on 2.18 branch so a backport is needed
if a fix for 2.18 is wanted.
Attachment #197642 - Attachment description: v2 → v2 (2.20 branch and tip)
Attachment #197642 - Flags: review+
*** Bug 254942 has been marked as a duplicate of this bug. ***
Let's take it for 2.20 and tip only and let's ask justdave to test it on Safari as he is using Mac. justdave, could you please do a quick test on Safari and grant approval? No need to delay this fix any longer.
Flags: approval?
Flags: approval2.20?
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
(In reply to comment #14)
> Let's take it for 2.20 and tip only and let's ask justdave to test it on Safari
> as he is using Mac. justdave, could you please do a quick test on Safari and
> grant approval? No need to delay this fix any longer.

no error, but it doesn't work, either, in Safari, before patching.  After the patch, it works in Safari, and it still works in Firefox.
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Attachment #197642 - Flags: review?
tip:

Checking in template/en/default/bug/dependency-tree.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/dependency-tree.html.tmpl,v  <--  dependency-tree.html.tmpl
new revision: 1.17; previous revision: 1.16
done

2.20:

Checking in template/en/default/bug/dependency-tree.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/dependency-tree.html.tmpl,v  <--  dependency-tree.html.tmpl
new revision: 1.15.4.1; previous revision: 1.15
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: