After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700784 - Disable all extensions in reverse order
Disable all extensions in reverse order
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-05-21 16:09 UTC by Tomeu Vizoso
Modified: 2013-05-23 08:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Disable all extensions in reverse order (861 bytes, patch)
2013-05-21 16:09 UTC, Tomeu Vizoso
reviewed Details | Review
Disable all extensions in reverse order (861 bytes, patch)
2013-05-21 17:16 UTC, Tomeu Vizoso
needs-work Details | Review
Disable all extensions in reverse order (879 bytes, patch)
2013-05-21 17:17 UTC, Tomeu Vizoso
committed Details | Review

Description Tomeu Vizoso 2013-05-21 16:09:15 UTC
So we avoid having to disable and enable an extension that is to
be disabled later anyway.
Comment 1 Tomeu Vizoso 2013-05-21 16:09:17 UTC
Created attachment 244959 [details] [review]
Disable all extensions in reverse order
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-05-21 16:17:55 UTC
Review of attachment 244959 [details] [review]:

This is still wrong.

enabledExtensions is in the order that they are in the key, which is irrelevant. So the old code is clearly wrong.

But extensionOrder is the order that they were enabled in, with the first item being enabled earliest.

So if the order is A, B, C, then we need to disable them as C, B, A. So the order needs to be extensionOrder, but reversed.
Comment 3 Tomeu Vizoso 2013-05-21 17:16:45 UTC
Created attachment 244972 [details] [review]
Disable all extensions in reverse order

So we avoid having to disable and enable an extension that is to
be disabled later anyway.
Comment 4 Tomeu Vizoso 2013-05-21 17:17:56 UTC
Created attachment 244973 [details] [review]
Disable all extensions in reverse order

So we avoid having to disable and enable an extension that is to
be disabled later anyway.
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-05-21 17:18:02 UTC
Review of attachment 244972 [details] [review]:

Uh, this is the same patch?
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-05-21 17:18:38 UTC
Review of attachment 244973 [details] [review]:

OK.
Comment 7 Tomeu Vizoso 2013-05-23 08:00:15 UTC
Comment on attachment 244973 [details] [review]
Disable all extensions in reverse order

commit deb1adb780570dab3f48b6856b1a6bfb274bdd50
Author: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Date:   Wed May 22 12:57:54 2013 +0200

    Stop animations in the screen shield when logging in
    
    Otherwise there could be a race when the animation to show the
    shield is still running when the user authenticates successfully.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700839
Comment 8 Tomeu Vizoso 2013-05-23 08:02:23 UTC
Did a bit of a mess here, sorry about that. Please disregard the previous comment.