- Go to the Image Manager (Edit->Preferences->Privacy & Security->Images, choose Manage Image Permissions)
- Type "something.org" into the input field and click the "Block" button.
=> Observe that "something.org" is in the list and has a Status "site cannot load images"
- Now type "www.something.org" into the input field and click the "Block" button.
EXPECTED: "www.something.org" is in the list and has a Status "site cannot load images"
ACTUAL: "www.something.org" does not get added.
You CAN add them both if you add "www.something.org" first, then "something.org".
There's a substring matching error when it's doing the check for duplicates. It's probably a developer's typo. To be fair, it could be a killer regex or a library/method/function that has an undocumented gotcha*. The "something.org" is coming up as a positive match for "www.something.org", it gets treated as a duplicate and is not added to the list.
I don't have time to carry this further. I'll try Cookies and Pop-ups tonight. If anyone wants to log this to http://bugzilla.mozilla.org/, be my guest. In the meantime, I'll be shutting down Moz and editing hostperm.1 by hand like I usually do.
* A "gotcha" is a nasty surprise in a programming language, standard libraries, an operating system, an application or some other system. Some might call them bugs, some call them features. Sometimes they are the result of incompetence or carelessness on the part of the designers or developers and sometimes they are just quirky things that cannot be helped.
I've since realized that this is not a bug. It's actually supposed to work this way. If you block "something.org", that actually includes "www.something.org" because it includes "anything.something.org" and "everything.something.org". IOW, if I block "photobucket.com", that blocks "img1.photobucket.com", "img2.photobucket.com", and every single "img*.photobucket.com" that is in use.
So, once you've blocked "something.org", it's redundant to block "www.something.org", so it doesn't let you.