GNOME Bugzilla – Bug 690653
Load extensions asynchronously breaks extensionPrefs
Last modified: 2013-02-28 14:48:45 UTC
Created attachment 232133 [details] [review] adds a synchronous scan to the ExtensionFinder class commit 6b40c3974d55c52e67c066da59febc34c6d7c92e extensionUtils: Load extensions asynchronously The above commit breaks extensionPrefs/main.js. When the gnome-shell-extension-prefs is executed with an extension url or uuid as an argument the extensions are not loaded before _extensionAvailable() is called in _onCommandLine in main.js. The attached patch adds a synchronous scan to the ExtensionFinder class in extensionUtils for use by callers who need the extensions populated without delay.
Sorry for ignoring the patch for that long - I don't think there is anything wrong with using synchronous IO in this case, but the duplication with FileUtils is not too nice. We just landed an alternative fix in bug 694858, which changes the extension-prefs tool instead to wait until extensions are actually loaded. Again, sorry for not coming back to this earlier (and thanks for the patch!), please don't let this stop you from contributing in the future. *** This bug has been marked as a duplicate of bug 694858 ***