Closed Bug 1089186 Opened 11 years ago Closed 11 years ago

Error: NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN: Cannot modify properties of a WrappedNative Source file: chrome://communicator/content/history/treeView.js

Categories

(SeaMonkey :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

(seamonkey2.32 fixed, seamonkey2.33 fixed)

RESOLVED FIXED
seamonkey2.33
Tracking Status
seamonkey2.32 --- fixed
seamonkey2.33 --- fixed

People

(Reporter: philip.chee, Assigned: philip.chee)

References

Details

Attachments

(1 file, 1 obsolete file)

(In reply to neil@parkwaycc.co.uk from Bug 1087942 comment #4) > (In reply to Philip Chee from comment #3) >> Opening the History window do something then close the window: >> >> Fri Oct 24 2014 23:54:39 >> Error: NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN: Cannot modify properties of a >> WrappedNative >> Source file: chrome://communicator/content/history/treeView.js >> Line: 1019 > > Unrelated. Kairo missed the change as part of bug 543444. places/treeView.js > is correct.
Attached patch Patch v1.0 fix setTree() (obsolete) — Splinter Review
> + try { > + this._result.removeObserver(this); > + } > + catch(ex) { } If I don't wrap this in a try/catch block I get: Error: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryResult.removeObserver] Source file: chrome://communicator/content/history/treeView.js Line: 1019 What am I doing wrong?
Attachment #8511555 - Flags: feedback?(neil)
Not sure offhand... we should be adding the observer in tree.xml line 102.
Comment on attachment 8511555 [details] [diff] [review] Patch v1.0 fix setTree() I don't know, I don't see any errors without the try/catch.
Attachment #8511555 - Flags: feedback?(neil) → feedback-
> Error: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryResult.removeObserver] > Source file: chrome://communicator/content/history/treeView.js Digging through firefox places history I found a similar problem in Firefox. This v2 patch combines the relevant parts of Bug 553334 and Bug 543444. > + // Observer removal is done within the view itself. When the tree > + // goes away, treeboxobject calls view.setTree(null), which then > + // calls removeObserver. > I don't know, I don't see any errors without the try/catch. Happens in safe mode too.
Attachment #8511555 - Attachment is obsolete: true
Attachment #8520027 - Flags: review?(neil)
Attachment #8520027 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.33
Comment on attachment 8520027 [details] [diff] [review] Patch v2.0 Remove Observer within the view itself [Triage Comment]
Attachment #8520027 - Flags: approval-comm-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: