Talk:Extension Manager:Install Hooks

From MozillaWiki
Jump to: navigation, search

Should hooks also be available to themes? As I see it they really shouldn't need them and they could be abused but the abuse case is just as applicable to extensions. Robert Strong 09:34, 18 November 2008 (UTC)

Yeah I suspect we only need them for extensions. Locales and Themes shouldn't need to do anything I think. Mossop 12:49, 18 November 2008 (UTC)

During startup it may be a good thing to display UI when an add-on runs a script that informs the user that the add-on is performing uninstall, disable, enable install, etc. operations or something to that affect to offset the slower startup experience. Robert Strong 09:41, 18 November 2008 (UTC)

I considered this, but I would hope the majority of cases will be very fast running making UI not worthwhile and probably even annoying as it flashes up and closes. To make this work we'd have to put the hook into a background thread or something so we can monitor its runtime and display UI accordingly, but asking add-on authors to write threadsafe hooks is not a good thing I think. Mossop 12:49, 18 November 2008 (UTC)