Closed Bug 67790 Opened 24 years ago Closed 22 years ago

javascript strict warnings in bookmarksOverlay.js

Categories

(SeaMonkey :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: maolson)

Details

Attachments

(2 files, 2 obsolete files)

JavaScript strict warning:
chrome://communicator/content/bookmarks/bookmarksOverlay.js line 345: 
redeclaration of var args
Summary: javascript strict warnings in contentAreaDD.js → javascript strict warnings in bookmarksOverlay.js
And when selecting all bookmarks and pressing delete:
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "[Exception... "Illegal value"  code: "-2147024809" nsresult: "0x8
0070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "chrome://communicator/content/book
marks/bookmarksOverlay.js Line: 582"] [nsIController::doCommand]"  nsresult: "0x
8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: chrome://glo
bal/content/globalOverlay.js :: goDoCommand :: line 71"  data: no]
************************************************************
An error occurred executing the cmd_delete command
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED)
 [nsIRDFDataSource.DoCommand]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  lo
cation: "JS frame :: chrome://communicator/content/bookmarks/bookmarksOverlay.js
 :: anonymous :: line 379"  data: no]
************************************************************
Attached patch patch - fix strict warnings (obsolete) — Splinter Review
The patch fixes the strict warnings, but doesn't attempt to touch the exception.
 That should be another bug anyway.
Keywords: review
r=timeless, a=alecf
Assignee: ben → maolson
Keywords: reviewpatch
fix checked in. henrik please file another bug for the js exception if it's 
still present.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
JavaScript strict warning:
chrome://communicator/content/bookmarks/bookmarksOverlay.js line 325: redeclarat
ion of var args
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch patch - fix re-emergent warning (obsolete) — Splinter Review
r=jag
fix checked in
Status: REOPENED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
After going to:
ftp://ftp.danadata.dk/pub/McAfee/McAfee/antivirus/dat/4.x/extra/
and pressing "Add Bookmark"

JavaScript strict warning:
chrome://communicator/content/bookmarks/bookmarksOverlay.js line 807: reference
to undefined property aDocShell.document.title

build 20010420
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
That fixes the warning... reviews?
Keywords: review
is try needed?

var title = url, docCharset = null;
if (title in aDocShell.document && aDocShell.document.title)
  title = aDocShell.document.title;
docCharset = aDocShell.document.characterSet;

//i'm not sure if this is cheaper.
btw:

JavaScript error:
 line 7: uncaught exception: [Exception... "Component returned failure code: 
0x80004002 (NS_NOINTERFACE) [nsIRDFNode.QueryInterface]"  nsresult: "0x80004002 
(NS_NOINTERFACE)"  location: "JS frame :: 
chrome://communicator/content/bookmarks/bookmarksOverlay.js :: LITERAL :: line 
61"  data: no]

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) 
[nsIRDFNode.QueryInterface]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  location: 
"JS frame :: chrome://communicator/content/bookmarks/bookmarksOverlay.js :: 
LITERAL :: line 61"  data: no]
************************************************************
An error occurred executing the cmd_bm_delete command
Filed bug 78968 about another JS Error in bookmarksOverlay.js.
ben: is it correct that this one is invalid after you bookmark rework?
in build 20010826 when doing paste into a empty manage bookmark window

Error: lastSelected has no properties
Source File: chrome://communicator/content/bookmarks/bookmarksOverlay.js
Line: 531
Attachment #25995 - Attachment is obsolete: true
Attachment #25995 - Flags: superreview+
Attachment #25995 - Flags: review+
Attachment #27863 - Attachment is obsolete: true
Attachment #27863 - Flags: superreview+
Attachment #27863 - Flags: review+
Using a trunk build from today.

Warning: anonymous function does not always return a value
Source File: chrome://communicator/content/bookmarks/bookmarksOverlay.js
Line: 862, Column: 58
Source Code:
    return BMSvc.createFolderEx(aTitle, aParentFolder, ix);
Comment on attachment 80662 [details] [diff] [review]
patch for the warning stephen mentioned

r=walk84
Attachment #80662 - Flags: review+
Comment on attachment 80662 [details] [diff] [review]
patch for the warning stephen mentioned

sr=alecf
Attachment #80662 - Flags: superreview+
checked in
Status: REOPENED → RESOLVED
Closed: 23 years ago22 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: