Closed Bug 300668 Opened 19 years ago Closed 19 years ago

XUL custom treeview throws a permission denied error when selecting a row (non-chrome XUL)

Categories

(Core :: XUL, defect)

1.8 Branch
x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 209701

People

(Reporter: deck_hockey, Assigned: janv)

References

()

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

1.12 KB, application/vnd.mozilla.xul+xml
Details
1.84 KB, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.8b2) Gecko/20050623 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.8b2) Gecko/20050623 Firefox/1.0+

See steps

Reproducible: Always

Steps to Reproduce:
1. Open the URL provided (a custom treeview example from XUL Planet)
2. Attempt to select a row
3. Notice that an exception is thrown:
Error: uncaught exception: Permission denied to create wrapper for object of
class UnnamedClass

The sample is not erring because of a TreeColumn being passed to the
"getCellText" method (instead of an ID-string), but due to some other factor.

Actual Results:  
Error: uncaught exception: Permission denied to create wrapper for object of
class UnnamedClass

Expected Results:  
The tree-view row should be selected, as in the default tree view control.
Attached file example (obsolete) —
Code from the web site
Attached file example (correct)
first example had a syntax error.

I am getting the same effect in my own custom view backed trees, but only with
the  ff 1.5 beta 1
Attachment #196209 - Attachment is obsolete: true
So your problem is with non-chrome XUL trees, right?
Assignee: nobody → Jan.Varga
Status: UNCONFIRMED → NEW
Component: General → XP Toolkit/Widgets: Trees
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
QA Contact: general → xptoolkit.trees
Summary: XUL custom treeview throws an error when selecting a row → XUL custom treeview throws a permission denied error when selecting a row (non-chrome XUL)
Version: unspecified → 1.8 Branch
(In reply to comment #3)
> So your problem is with non-chrome XUL trees, right?

Yes it is, I haven't tried from chrome, but the UnnamedClass seems to only apply
to non-chrome xul.
This attachemnt is slightly modified to provide a nsISupports interface which
then reports that it supports nsITreeView. Code shamelessly stolen from: 

http://www.xulplanet.com/tutorials/xulqa/q_treebview.html

Is this an intentional change, or a bug?
I believe this bug to cover the same issue as bug 209701.  Unlike this bug,
however, bug 209701 has at least an attempt at a patch.  I am therefore
resolving this bug as a duplicate of bug 209701.  Feel free to reopen if you
disagree.

*** This bug has been marked as a duplicate of 209701 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: