Closed
Bug 344085
Opened 18 years ago
Closed 18 years ago
still content can implement tree views
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: sync2d, Assigned: roc)
Details
(Keywords: verified1.8.0.7, verified1.8.1, Whiteboard: [sg:critical?])
Attachments
(3 files, 1 obsolete file)
1.22 KB,
application/vnd.mozilla.xul+xml
|
Details | |
3.02 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
dveditz
:
approval1.8.0.7+
dbaron
:
approval1.8.1+
|
Details | Diff | Splinter Review |
8.87 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
See bug 326501. nsINativeTreeView check, introduced by said bug, can be circumvented by using treeElement.boxObject.setPropertyAsSupports().
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1b1) Gecko/20060709 BonEcho/2.0b1
TB20774884Z
Updated•18 years ago
|
Assignee: Jan.Varga → roc
Updated•18 years ago
|
Flags: blocking1.8.1?
Flags: blocking1.8.0.6?
Whiteboard: [sg:critical?]
Assignee | ||
Comment 2•18 years ago
|
||
Fairly simple.
Attachment #229212 -
Flags: superreview?(bzbarsky)
Attachment #229212 -
Flags: review?(bzbarsky)
Updated•18 years ago
|
Flags: blocking1.8.1? → blocking1.8.1+
Comment 3•18 years ago
|
||
Comment on attachment 229212 [details] [diff] [review]
fix
This works, but really we should just be storing this as a member, not a property, imo... The property mechanism is there to allow storage of random things, so taking up parts of the namespace is not so cool.
Attachment #229212 -
Flags: superreview?(bzbarsky)
Attachment #229212 -
Flags: superreview+
Attachment #229212 -
Flags: review?(bzbarsky)
Attachment #229212 -
Flags: review+
Assignee | ||
Comment 4•18 years ago
|
||
Yeah. Unfortunately fixing the usage of the "view" property requires either adding a new private interface to nsTreeBoxObject or doing deeper changes than would be good for branch. So I'll go with this patch for trunk and branch, for now.
Assignee | ||
Comment 5•18 years ago
|
||
checked in on trunk
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•18 years ago
|
||
Comment on attachment 229212 [details] [diff] [review]
fix
need this on branches
Attachment #229212 -
Flags: approval1.8.1?
Attachment #229212 -
Flags: approval1.8.0.6?
Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 229212 [details] [diff] [review]
fix
guess I'll wait for approval requests until this has been on trunk for a couple of days
Attachment #229212 -
Flags: approval1.8.1?
Attachment #229212 -
Flags: approval1.8.0.6?
Comment 8•18 years ago
|
||
Untested as yet, though; might leak or worse...
Assignee | ||
Comment 9•18 years ago
|
||
So when nsTreeBodyFrame creates the view in EnsureView(), how does nsTreeBoxObject find out about it so nsTreeBoxObject::GetView() works?
Comment 10•18 years ago
|
||
Comment on attachment 230292 [details] [diff] [review]
Fix as per comment #3
> // Hook up the view.
> if (view)
>- SetView(view);
>+ mTreeBoxObject->SetView(view);
The solution eluded me for a while, until I came up with this flash of inspiration; assuming that you don't have malformed xul, when you don't actually have a box object, so I'll need to null-check.
Comment 11•18 years ago
|
||
I had to move some of the view creation logic into the box object because people expect to be able to get a view from an invisible (collapsed) tree.
Attachment #230292 -
Attachment is obsolete: true
Attachment #230643 -
Flags: superreview?(bzbarsky)
Attachment #230643 -
Flags: review?(roc)
Updated•18 years ago
|
Flags: blocking1.8.0.6? → blocking1.8.0.6+
Comment 12•18 years ago
|
||
Neil, can you just get roc to r+sr this? I'm not going to be able to get to it in the near future (several weeks).
Assignee | ||
Comment 13•18 years ago
|
||
Comment on attachment 229212 [details] [diff] [review]
fix
branch security fixes
Attachment #229212 -
Flags: approval1.8.1?
Attachment #229212 -
Flags: approval1.8.0.6?
Assignee | ||
Comment 14•18 years ago
|
||
Comment on attachment 230643 [details] [diff] [review]
Real fix as per comment #3
Looks good, thanks. I think we should take this on trunk only, though, since it's somewhat invasive.
Attachment #230643 -
Flags: superreview?(bzbarsky)
Attachment #230643 -
Flags: superreview+
Attachment #230643 -
Flags: review?(roc)
Attachment #230643 -
Flags: review+
Comment on attachment 229212 [details] [diff] [review]
fix
a=dbaron on behalf of drivers. Please check in to MOZILLA_1_8_BRANCH and mark fixed1.8.1 once you have done so.
Attachment #229212 -
Flags: approval1.8.1? → approval1.8.1+
Comment 17•18 years ago
|
||
Comment on attachment 229212 [details] [diff] [review]
fix
approved for 1.8.0 branch, a=dveditz for drivers
Attachment #229212 -
Flags: approval1.8.0.7? → approval1.8.0.7+
Comment 19•18 years ago
|
||
v.fixed on both branches with 8/24 nightly builds, no crash with testcase:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7pre) Gecko/20060824 Firefox/1.5.0.7pre
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1b2) Gecko/20060824 BonEcho/2.0b2
Updated•17 years ago
|
Group: security
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.
Description
•