GNOME Bugzilla – Bug 669694
Extension system is quite broken...
Last modified: 2012-02-08 22:32:14 UTC
1) enableExtension fails in loadExtension, if the extension is loaded but disabled. 2) disableExtension fails because extensionStateObjs is no more, the state is in extension[uuid].stateObj (I'm looking at 3.3.5-6-gf00c86e, which is on top of origin/master right now. Thus it could be I'm missing some necessary commit)
Created attachment 207128 [details] [review] extensionSystem: fix runtime enable()/disable() after last changes disableExtension still used the old way to retrieve the state object, and enableExtension called loadExtension at a time that would always fail.
Created attachment 207133 [details] [review] Looking Glass: fix error line when there are no errors The No error code path still used the old metadata object.
Review of attachment 207133 [details] [review]: Yes (I the same patch locally before I pushed, I just forgot to fixup)
(In reply to comment #0) > 1) enableExtension fails in loadExtension, if the extension is loaded but > disabled. I don't understand this. Why?
Review of attachment 207128 [details] [review]: OK, now I understand what happened.
Created attachment 207134 [details] [review] extensionSystem: fix runtime enable()/disable() after last changes disableExtension still used the old way to retrieve the state object, and enableExtension called loadExtension at a time that would always fail.
Review of attachment 207134 [details] [review]: Minor nit, but otherwise OK. ::: js/ui/extensionSystem.js @@ +278,1 @@ extension.state = ExtensionState.INITIALIZED; GNOME Shell style requires braces on both sides.
Attachment 207133 [details] pushed as 6ca0d4a - Looking Glass: fix error line when there are no errors Attachment 207134 [details] pushed as d0cd6ba - extensionSystem: fix runtime enable()/disable() after last changes