Closed Bug 582340 Opened 14 years ago Closed 14 years ago

Refactor the creation of the Web Console UI to avoid unnecessarily hanging onto nodes

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(status2.0 ?)

RESOLVED INVALID
Tracking Status
status2.0 --- ?

People

(Reporter: pcwalton, Assigned: pcwalton)

References

Details

(Whiteboard: [kd4b6] [patchbitrot])

Attachments

(1 file, 1 obsolete file)

Attached patch Proposed patch. (obsolete) — Splinter Review
gavin suggested in bug 582135 that the DOM nodes in the Web Console should be appended to their parents in the same function that they're created in, to avoid having to attach them to the HUD object. This patch implements this change. It moves everything but the filter button creation out of makeFilterToolbar() and into the makeHUDNodes() function, and it renames makeFilterToolbar() to createFilterButtons().

Requesting approval for Firefox 4, as a reviewer-suggested refactoring for bug 582135 (which I am also requesting Fx4 approval for).
Attachment #460619 - Flags: feedback?(ddahl)
Attachment #460619 - Flags: feedback?(ddahl) → feedback+
Attachment #460619 - Flags: review?(gavin.sharp)
Whiteboard: [kd4b4]
Attachment #460619 - Flags: review?(gavin.sharp) → review?(dietrich)
Comment on attachment 460619 [details] [diff] [review]
Proposed patch.

looks good, r+a=me.
Attachment #460619 - Flags: review?(dietrich)
Attachment #460619 - Flags: review+
Attachment #460619 - Flags: approval2.0+
Keywords: checkin-needed
This patch does not apply anymore.
Keywords: checkin-needed
Updated patch to trunk. Requesting re-review because this version is significantly different.
Attachment #460619 - Attachment is obsolete: true
Attachment #464649 - Flags: feedback?(mihai.sucan)
Comment on attachment 464649 [details] [diff] [review]
Proposed patch (trunk rebase 2010-08-10).

Looks fine to me, but I am not sure what's the benefit. :) What problem is this patch solving?
Attachment #464649 - Flags: feedback?(mihai.sucan) → feedback+
(In reply to comment #4)
> What problem is this patch solving?

Not holding on to nodes longer than necessary, and not having to worry about potential uses of the property outside of the relevant methods.
Attachment #464649 - Flags: review?(gavin.sharp)
Whiteboard: [kd4b4] → [kd4b5]
Whiteboard: [kd4b5] → [kd4b5] [patchbitrot]
Whiteboard: [kd4b5] [patchbitrot] → [kd4b6] [patchbitrot]
Blocks: devtools4b7
Blocks: devtools4b8
No longer blocks: devtools4b7
status2.0: --- → ?
No longer necessary once bug 601667 lands.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Attachment #464649 - Flags: review?(gavin.sharp)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: