Closed Bug 150158 Opened 24 years ago Closed 23 years ago

javascript strict warnings in sidebarOverlay.js

Categories

(SeaMonkey :: Sidebar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: bugzilla, Assigned: samir_bugzilla)

Details

(Keywords: helpwanted)

Attachments

(1 file)

just starting mozilla produces these: Warning: reference to undefined property sidebar_file.delete Source File: chrome://communicator/content/sidebar/sidebarOverlay.js Line: 851 20020607
helpwanted
Keywords: helpwanted
Target Milestone: --- → Future
The comment above line 851 explains that the code is a workaround for bug 37406. That bug has been fixed, and it renamed the delete method call to remove. It looks like we need to call remove instead of delete, and we can use normal method call notation and remove the comment. Also, I think chrome://inspector/content/search/modules/junkImgs/junkImgs.xml line 127 has the same problem.
Found another call to delete in chrome://inspector/content/jsutil/system/file.js line 184. This patch fixes all three files to call the remove method instead.
Keywords: patch, review
Attachment #102109 - Flags: review?(sgehani)
Warning: redeclaration of var ds Source File: chrome://communicator/content/sidebar/sidebarOverlay.js Line: 805, Column: 8 Source Code: var ds = RDF.GetDataSource(sidebarObj.datasource_uri);
Attachment #102109 - Attachment is obsolete: true
Attachment #102109 - Attachment is obsolete: false
Attachment #102109 - Flags: review?(sgehani) → review?
I don't understand why my patch is marked obsolete. Line 805 of sidebarOverlay.js is more than 60 lines from code my patch touches and in a different function.
Attachment #102109 - Flags: review? → review?(shliang)
Attachment #102109 - Flags: review?(shliang) → review+
Attachment #102109 - Flags: superreview?(brendan)
Comment on attachment 102109 [details] [diff] [review] Rename delete method call to remove in all three files This kind of change can go in without sr= -- it ought to be fixed for 1.4beta, no? /be
Attachment #102109 - Flags: superreview?(brendan) → superreview+
Attachment #102109 - Flags: approval1.4b?
Comment on attachment 102109 [details] [diff] [review] Rename delete method call to remove in all three files a=asa (on behalf of drivers) for checkin to 1.4b
Attachment #102109 - Flags: approval1.4b? → approval1.4b+
Attachment #102109 - Flags: approval1.4b+ → approval1.4+
Could someone please check this in for me? I don't have cvs access.
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: