Closed Bug 668316 Opened 13 years ago Closed 13 years ago

canDrop is not implemented for about:sessionrestore's treeView

Categories

(Firefox :: Session Restore, defect)

All
Other
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 8

People

(Reporter: int3, Assigned: int3)

References

Details

Attachments

(1 file, 1 obsolete file)

1.02 KB, patch
zpao
: review+
Details | Diff | Splinter Review
Attached file Patch v1 (obsolete) —
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330

Steps to reproduce:

1. Run a debug build and crash it a few times to bring up the about:sessionrestore page. (Opening the page directly is not sufficient; the treeView must be populated)
2. Open a new window
3. Drag the tab from the other window over the treeView


Actual results:

We get

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'JavaScript component does not have a method named: "canDrop"' when calling method: [nsITreeView::canDrop]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]
************************************************************

printed to stderr.


Expected results:

We should not get these errors. This patch fixes it.
Attached patch Patch v1Splinter Review
Fixed the content type.
Attachment #542909 - Attachment is obsolete: true
http://hg.mozilla.org/integration/fx-team/rev/d48d5cad9cc4
Assignee: nobody → jezreel
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Whiteboard: [fixed-in-fx-team]
http://hg.mozilla.org/mozilla-central/rev/d48d5cad9cc4
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 8
Blocks: 729068
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: