Closed Bug 58631 Opened 24 years ago Closed 23 years ago

javascript strict warnings in history.js

Categories

(Core :: DOM: Navigation, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

Attachments

(5 files)

JavaScript strict warning: chrome://communicator/content/history/history.js line 83: trailing comma is not legal in ECMA-262 object initializers JavaScript strict warning: chrome://communicator/content/history/history.js line 102: trailing comma is not legal in ECMA-262 object initializers
Attached patch proposed patchSplinter Review
My guess this is something to do with global history. Session History does not use a file like that. cc'ing rjc and matt
giving to rjc, since this is global history
Assignee: radha → rjc
Summary: Lots of strict warnings in history.js → javascript strict warnings in history.js
taking this...Adding jag for review
Assignee: rjc → alecf
I'm not jag (a good thing? ;), but r=blake ...
thanks jarrod, blake fix is in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
New warnings crept in: JavaScript strict warning: chrome://communicator/content/history/history.js line 74: function OpenURL does not always return a value Patch coming right up.
Status: RESOLVED → REOPENED
Keywords: patch, review
Resolution: FIXED → ---
r=jag Shame on you, Alec and Blake! <gd&r> (And yes, a good thing indeed you are not I. Otherwise you'd be making a whole lot more mistakes ;-) )
Keywords: reviewapproval
sr=alecf, thanks jag :)
Fix checked in.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
verified with build 20010126 on win2k
Status: RESOLVED → VERIFIED
JavaScript strict warning: chrome://communicator/content/history/history.js line 89: redeclaration of var match
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
btw: JavaScript error: chrome://communicator/content/history/history.js line 77: gHistoryTree has no properties
henrik, how did you get that second one? I can't figure out how that would even happen. attaching a new patch that fixes the first warning most recently listed, as well as removing dumps()
Status: REOPENED → ASSIGNED
Whiteboard: fix in hand
r=blake yeah, that second warning is weird.
I'm not sure how I got the other one. I been through the history and couldn't get it in todays build...
Just got the error! It was when I click on a history item in the History sidebar! I get it everytime I click on a item in the history sidebar....
*** Bug 69871 has been marked as a duplicate of this bug. ***
This patch calls history.js' init routine for the panel so that the globals get set up. (To be taken along w/ alecf's most recent patch).
sr=alecf thanks!
Ok, so my latest patch needs r=, and alec's patch needs sr= (both are necessary to fix all current warnings)
r=jag
both fixes checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
vrfy history 1.19, panel 1.2
Status: RESOLVED → VERIFIED
Keywords: approval
Whiteboard: fix in hand
Warning: anonymous function does not always return a value Source File: chrome://communicator/content/history/history.js Line: 199, Column: 2 Source Code: } build 20010527
Status: VERIFIED → REOPENED
Keywords: patch
Resolution: FIXED → ---
reassign to blake..
Assignee: alecf → radha
Status: REOPENED → NEW
Reassigning to blake as per alecf's comment.
Assignee: radha → blakeross
this is fixed.
Status: NEW → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
Verified fixed in 20020115. Will reopen if I see these warnings again...
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: