?

Log in

No account? Create an account

Previous Entry | Next Entry

Mozilla 1.7.8 Site Blocking Bug

weather: sunny
outside: 14.2°C
mood: giggly
And I was all happy that they fixed the inability to add *.org domains to the block list... =P

REPRO STEPS:

  1. Go to the Image Manager (Edit->Preferences->Privacy & Security->Images, choose Manage Image Permissions)

  2. 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"

  3. 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.

Tags:


Profile

eLouai
bride
The Bride of the First House

Latest Month

March 2015
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031