Open Bug 389997 Opened 13 years ago Updated 12 years ago

Provide 'before' and 'after' hooks for __display

Categories

(Other Applications :: ChatZilla, enhancement)

enhancement
Not set

Tracking

(Not tracked)

People

(Reporter: bugzilla-mozilla-20000923, Assigned: rginda)

Details

Lots of plugins want to do something to the display, and currently this is exceptionally tricky: they must replace __display with their own wrapper, and pass-through parameters and such.

I propose two hooks for plugins/etc. to use:
  'before' display - same arguments as __display, called before anything serious occurs, and perhaps should feature a way to change these arguments (pass as props on an object?)
  'after' display - same arguments as __display, although modifications are not useful here, but in addition include at least the <TR> DOM object, potentially also the individual <TD> cells.

Not sure what hook mechanism would be best, since this doesn't really fit with the event pump (and that would slow us down more, if we had to wait for more events to go through to display things).
You need to log in before you can comment on or make changes to this bug.