Closed Bug 114580 Opened 23 years ago Closed 23 years ago

commonDialog is slow as molasses

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: hewitt, Assigned: hewitt)

Details

(Keywords: perf)

Attachments

(1 file, 2 obsolete files)

Ever try calling alert() in rapid succession, and notice that the dialog takes forever to appear? I have. commonDialog.xul needs to get spanked.
Working on this... just by changing collapsed="true" to hidden="true" on the optional container boxes, I save about 60% of window open time. Hyatt reminded me that doing this is tricky because that will cause the textbox/checkbox bindings to load async when they are shown, so I have to be sure to unset hidden from an inline function call instead of from onload.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Attached patch patch (obsolete) (deleted) — Splinter Review
This patch cleans up the commonDialog xul and js, changes collapsed to hidden on the textbox containers, converts to use the dialog tag, and updates the dialog tag to support extra buttons.
Attached patch improved patch (obsolete) (deleted) — Splinter Review
Attachment #61248 - Attachment is obsolete: true
Keywords: perf
QA Contact: sairuh → jrgm
Attachment #61251 - Attachment is obsolete: true
Attached patch patch 3.0 (deleted) — Splinter Review
r=/sr=jag with the bug pointer.
Comment on attachment 63887 [details] [diff] [review] patch 3.0 r=bryner
Attachment #63887 - Flags: review+
a=blizzard on behalf of drivers for the cropping fixes
Target Milestone: mozilla0.9.8 → mozilla0.9.9
looks like this is checked in. can it be resolved?
Asa: only dialog.xml was checked in, the rest of the patch hasn't landed yet.
Removing the 0.9.8+ since my memory of the discussion was that we only wanted part of the patch for 0.9.8 (and thought the rest could wait), and it looks like part of the patch was checked in (I'm assuming the part we decided). If I got confused here and there's still something that needs to go in for 0.9.8, please get it in sooner rather than later.
Keywords: mozilla0.9.8+
almost forgot about this - landed on trunk now
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
This checkin caused the regression in bug 123216.
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: