Closed
Bug 79852
Opened 24 years ago
Closed 23 years ago
Lots of JS warnings doing address book operations
Categories
(SeaMonkey :: MailNews: Address Book & Contacts, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: sfraser_bugs, Assigned: chuang)
References
Details
(Whiteboard: PDT+)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
I'm seeing JS errors up the wazoo when doing stuff in the address book:
* Drag card from 'Collected addresses' to 'Personal Address book' gives:
BeginDragResultTree
selArray.length = 1
ID #0 = abmdbcard://history.mab/Card74
DropOnTree
***targetID = abmdbdirectory://abook.mab
Node #0: drop 'abmdbcard://history.mab/Card74' on 'abmdbdirectory://
abook.mab'
###!!! ASSERTION:
XPConnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
###!!! ASSERTION:
XPConnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "[JavaScript Error: "UpdateAddDeleteCounts is not defined" {file:
"chrome://messenger/content/addressbook/addressbook.js" line: 11}]
[nsIAbListener::onItemAdded]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://
messenger/content/addressbook/abDragDrop.js :: DropOnDirectoryTree :: line 220"
data: yes]
************************************************************
* Delete card in personal address book (using delete key) gives:
###!!! ASSERTION:
XPConnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
###!!! ASSERTION:
XPConnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "[JavaScript Error: "UpdateAddDeleteCounts is not defined" {file:
"chrome://messenger/content/addressbook/addressbook.js" line: 14}]
[nsIAbListener::onItemRemoved]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://
messenger/content/addressbook/abCommon.js :: anonymous :: line 56" data: yes]
************************************************************
Comment 1•23 years ago
|
||
I am seeing very similar messages on both Linux and Windows Debug Builds against
the Head today and yesterday. Here is the text of waht I am seeing:
/* Delete a Card ...
XPconnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
###!!! Break: at file xpcwrappednativescope.cpp, line 515
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "UpdateAddDeleteCounts is not defined" {file:
"chrome://messenger/content/addressbook/addressbook.js" line: 14}]' when calling
method: [nsIAbListener::onItemRemoved]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame ::
chrome://messenger/content/addressbook/abCommon.js :: anonymous :: line 56"
data: yes]
/* Drag n Drop a Card ...
XPConnect is being called on a scope without a 'Components' property!
This is pretty much always bad. It usually means that native code is
making a callback to an interface implemented in JavaScript, but the
document where the JS object was created has already been cleared and the
global properties of that document's window are *gone*. Generally this
indicates a problem that should be addressed in the design and use of the
callback code.
: 'Error', file xpcwrappednativescope.cpp, line 515
###!!! Break: at file xpcwrappednativescope.cpp, line 515
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "UpdateAddDeleteCounts is not defined" {file:
"chrome://messenger/content/addressbook/addressbook.js" line: 11}]' when calling
method: [nsIAbListener::onItemAdded]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame ::
chrome://messenger/content/addressbook/abDragDrop.js :: DropOnDirectoryTree ::
line 203" data: yes]
To re-create every time:
1. start mozilla [with no options]
2. Choose the Address Book from the Task list
3. Do some activity i.e. D'n'D, Delete etc...
4. Close The Address Book
5. Choose the Address Book again from the Task List
6. Attempt to Delete or Drag'n'Drop will result in the above error.
This may related to bug 82991. Can either one of you try the patch in 82991 and
see if it fix it? I never see this assertion and maybe because I have the fix
on my tree.
Comment 3•23 years ago
|
||
I have tried #82991 but I am still seeing the problem. We had a closer look
at it here and it appears that the function 'OnUnloadAddressBook' in
addressbook.js is not being called from the corresponding xul addressbook.xul
file when the 'Address Book' is closed.
I tried on John's steps with or without the 82991 patch, I didn't get the
assertion on Win2000 using my debug tree updated yesterday.
One extra ">" in addressbook.xul to cause this problem.
Status: NEW → ASSIGNED
Reporter | ||
Comment 7•23 years ago
|
||
r/sr=sfraser. Should move to 0.9.2, I think.
Comment 9•23 years ago
|
||
moving to 0.9.2. I will get the PDT+ on this.
Target Milestone: --- → mozilla0.9.2
Comment 10•23 years ago
|
||
PDT approved for 092, please get the other review and drivers approval
Whiteboard: PDT+
Comment 11•23 years ago
|
||
This still needs a second review. When it has that review it is approved for
checkin.
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Comment 12•23 years ago
|
||
sr=mscott
Assignee | ||
Comment 13•23 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 14•23 years ago
|
||
Candice, where do you see the error message on Mac? I thought Mac does not
provide any console window.
QA Contact: esther → fenella
Assignee | ||
Comment 15•23 years ago
|
||
I saw it on Windows, not on Mac.
Reporter | ||
Comment 16•23 years ago
|
||
Mac only has a console in debug builds.
Comment 17•23 years ago
|
||
Thanks, Candice.
OK. This bug fixed on win32 (2001-06-19-11 trunk)
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•