mozdev.org

cookieswap (CookieSwap)

resources:

If you'd be willing to help out with the testing of this extension I'd really appreciate it. To help with testing, I'd be happy to proivide you with a few Gmail accounts (if you don't already have one) so you can test switching between web e-mail accounts.

In order to get access to the beta release, please send an e-mail to the mailing list (I'm the only one on the list right now) or just post to the user forum.

Here are the test cases I would ask you to run (not more than 5 minutes of work):

Test 1:

  1. Prior to installing CookieSwap, go to your profile dir (see this for help finding it), and make a copy of cookies.txt (call it something like cookies_org.txt).
  2. Install CookieSwap (see the note above in regards to contacting me to get the beta release), restarting Firefox to complete the install.
  3. The first time starting Firefox, verify that you now have a status bar item that says 'CookieSwap:Profile1' ('Profile1' is the active profile)
  4. Don't visit any web pages or do any browsing, just swap cookies to Profile2 (Right-click on the CookieSwap status bar item and select 'Profile2'.
  5. Verify that the status bar item changes to say 'CookieSwap:Profile2'
  6. Exit Firefox
  7. Verify that cookies.txt is now basically an empty file (just some comments at the top).
  8. Start up Firefox again...don't visit any web pages yet
  9. Verify that CookieSwap remembered that 'Profile2' is active by showing 'CookieSwap:Profile2' in the status bar.
  10. Swap cookies back to the original profile (Profile1).
  11. Verify that the status bar item changes to say 'CookieSwap:Profile1'
  12. Exit Firefox
  13. Now comes the tricky part...verify that the cookies.txt and cookies_org.txt contain the same data. Unfortunately, the order of the cookies is different. If you are running Linux or have Cygwin on Windows just run the following commands:
    sort cookies.txt > cookies_sort.txt 
    sort cookies_org.txt > cookies_org_sort.txt
    diff cookies_org_sort.txt cookies_sort.txt
    Hopefully there are no differences listed as the output from the 'diff' command...If there are, I would ask that you please send me the output from the 'diff' command. If the cookie values are private and you don't want to share them, please just modify the value of the cookie/label so I can at least see what cookie styles are not being saved correctly.
  14. (non-Windows users)Please verify the file permissions on cookies.txt, and all the files in the CookieSwap directory are 600 (if you don't know what that means, just send me the output from these commands run from your Mozilla profile directory:
    ls -la  cookies.txt
    ls -la  CookieSwap
    

Test 2:

  1. Swap cookies to Profile1 (if not already on Profile1).
  2. Verify that the status bar item says 'CookieSwap:Profile1'
  3. Login to a web e-mail account (or any web account, like Gmail, Hotmail, Yahoo!, Amazon, etc)
  4. Swap cookies to Profile2
  5. Verify that the status bar item says 'CookieSwap:Profile2'
  6. Go to the web e-mail URL again (like www.gmail.com, mail.yahoo.com, www.amazon.com, etc)...I don't suggest just reloading the page because often the URL has some info in it regarding the login being used. Going back to the mail page will often work cleaner.
  7. Login to the site with a different username from the first time
  8. Swap cookies to Profile1
  9. Verify that the status bar item says 'CookieSwap:Profile1'
  10. Go to the web e-mail URL again (like www.gmail.com, mail.yahoo.com, www.amazon.com, etc)...I don't suggest just reloading the page because often the URL has some info in it regarding the login being used. Going back to the mail page will often work cleaner.
  11. Verify the site now thinks you are the user from step 3...cool, huh?!?!
  12. Exit and restart Firefox
  13. Verify that the site still recognizes you as two different people with the two profiles (basically proving the cookies profiles are staying persistent when Firefox is closed.)

Additional Tasks:

Big thanks for your help in getting this extension off the ground!
-Steve

For questions or comments about CookieSwap, please send a message to the cookieswap mailing list.
For questions or comments not about a specific project, please read our feedback page.
Copyright © 2004. All rights reserved. Terms of Use.