Closed Bug 182099 Opened 23 years ago Closed 22 years ago

lock up on stylesheets tab double-clicking the twisty

Categories

(Other Applications :: DOM Inspector, defect, P2)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.4beta

People

(Reporter: ian, Assigned: caillon)

References

()

Details

(Keywords: hang)

Attachments

(1 file)

Following the following steps causes Mozilla to lock up: <Hixie> caillon: http://www.hixie.ch/tests/evil/mixed/cascade/acidlinkcascade.html <Hixie> caillon: go to that, show the stylesheet list <Hixie> caillon: then double click on the first twisty <Hixie> caillon: i can't trigger the lockup with a data: uri @importing a data: uri, so it's not a simple "twisties are broken" bug
Keywords: hang
Attached patch One-linerSplinter Review
So the problem was we were going around in an infinite loop in twisty code: http://lxr.mozilla.org/mozilla/source/xpfe/global/resources/content/bindings/tree.xml#747 We never exited the while loop because in this case we have no parent, and are expected to return -1, but were in fact returning 0 from our custom view's impl of getParentIndex. This fixes that.
Attachment #121779 - Flags: review+
Attachment #121779 - Flags: superreview?(bzbarsky)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.4beta
Comment on attachment 121779 [details] [diff] [review] One-liner sr=me but please document this in nsITreeView.idl (why do we write "interfaces" that are so poorly documented as to be useless again?)
Attachment #121779 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 121779 [details] [diff] [review] One-liner Added the comment locally. Will check in with this change. Seeking 1.4b approval for this small hang fix.
Attachment #121779 - Flags: approval1.4b?
Comment on attachment 121779 [details] [diff] [review] One-liner a=sspitzer
Attachment #121779 - Flags: approval1.4b? → approval1.4b+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: