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 541044 - Items in cookie/password manager are sorted confusingly
Items in cookie/password manager are sorted confusingly
Status: RESOLVED DUPLICATE of bug 300714
Product: epiphany
Classification: Core
Component: General
2.28.x
Other All
: Normal minor
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-01 08:26 UTC by Sam Morris
Modified: 2011-01-06 18:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sam Morris 2008-07-01 08:26:53 UTC
There is seemingly no order to the items displayed in the cookie/password manager.

The domains from my cookies are sorted like this:

.arstechnica.com
.episteme.arstechnica.com
feeds.arstechnicha.com
.biglumber.com
.www.biglumber.com
.ebuyer.com
economist.com
everything2.com
.everything2.com
.nuklearpower.com
sd.play.com
www.play.com
.red-redemption.com
moinmoin.wikiwikiweb.de
moinmo.in
lwn.net
.sourceforge.net
.azureus.sourceforge.net
issues.apache.org
bugs.freedesktop.org
bugzilla.gnome.org

and so on.

They seem to be broadly alphabetical, but with weird subgroups being sorted separatley from the others.

Passwords suffer from the same problem, but the host field is obscured even more by the addition of 'http://' and 'https://' to the start of every line.

In addition, the protocol prefix makes it annoying to use type-ahead find to locate passwords from certain domains.

Other information:
The point of these screens are to make it easy to view and delete stored cookies/passwords. So I think the domain/host fields should simply be sorted lexographically, ignoring a leading . character.

In addition, a 'search' GtkEntry that filters the displayed results (based on any part of the host/domain field) would be a welcome addition to both the cookies and passwords tabs.
Comment 1 Christian Persch 2008-07-01 09:45:30 UTC
They're sorted by domain.
Comment 2 Dan Winship 2009-10-20 14:20:23 UTC
(In reply to comment #1)
> They're sorted by domain.

I was going to reply "no they aren't", but then I went and looked at the code, and I see what you mean; first come all of the ".com" cookies, alphabetically by domain, then all the ".net" cookies alphabetically by domain, then all the ".org" cookies alphabetically by domain, etc.

That's really non-obvious.
Comment 3 Dan Winship 2010-03-19 14:05:58 UTC
We could use the mozilla public suffix list (http://publicsuffix.org/) to fix this so that "something.google.com" would get sorted under "g", and "something.bbc.co.uk" would get sorted under "b".

There are some other good uses for that list too, including fixing cookie acceptance policy, which was its original purpose. For that it would have to go into libsoup (or even glib/ghostutils.c?)
Comment 4 Sam Morris 2010-03-19 14:20:53 UTC
What I find confusing is that, when the cookies list is sorted by the Domain list, the sorting is not obvious. I don't think using the suffix list would help that.

It would be OK if there was a separate visible column with the 'value used for sorting' that would contain the 'weird sort key' value, because then I could simply sort the list by domain and get what I expect to happen.

The addition of a search box for filtering would also help a lot.
Comment 5 Alexandre Franke 2011-01-06 18:17:38 UTC

*** This bug has been marked as a duplicate of bug 300714 ***