Closed Bug 84776 Opened 23 years ago Closed 23 years ago

Image blocking on port numbers other then 80 doesnt work.

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
mozilla0.9.5

People

(Reporter: nnbugzilla, Assigned: morse)

References

()

Details

Attachments

(1 file)

VoodooExtreme has a number of images with a source like the following:
http://adserver.ugo.com:80/ads/Uplister/greenday468.gif.  After I right-click
the image to block it, I can check the Tasks->Privacy->Image Manager->View Sites
dialog and see that "adserver.ugo.com:80" is in the list of sites being blocked.
 When I visit this page again, images from that server still show up.  On other
sites, image blocking seems to be working fine.

Build 2001060804, Win98, but I suspect this affects all platforms.
I've figured out the problem is definitely the inclusion of a port number.  If I
edit cookperm.txt and remove the ":80" from the entry in the file, image
blocking works properly for the ads I described.  Therefore, the real problem
seems to be that, when entries are added to cookperm.txt, port numbers should be
stripped first.
marking NEW and changing summary to make it more clear.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Image blocking not working on some images → Image blocking on port numbers other then 80 doesnt work.
->morse
Assignee: pavlov → morse
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Actually, I think the summary should be "Image blocking with a port number
doesn't work."  I don't think it's specifically port 80 (or non-port 80) that's
a problem.
Target Milestone: mozilla1.0 → mozilla0.9.4
I believe that they may have changed the website because I am unable to find any 
images on that site that will give a :80 entry in the blocked-images list.  
However I can believe that these symptoms would occur and the fix for it is 
obvious.  Attaching patch.

cc'ing vishy & blake for r and sr.
r=vishy
It's hard to tell from the context or I'm just stupid, what is the purpose of
this change:

+        if (portColon)
+          *portColon = ':';

It undoes the temporary assigment preceding it of

   *portColon = '\0';

portColon is known to initially contain ":" before the above asignment.
To clarify further:

I start with the URL
I do a search for the colon that separates the host from the port
I set that colon to 0
Now I have the string that includes the host and not the port
I do something with just the host part
Then I restore the string back to its original value, port number and all.
sr=blake
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified patch checked into lxr.mozilla.org
Status: RESOLVED → VERIFIED
The fix for this bug has introduced a regression as reported in bug 99311.  I 
now believe that the original behavior was correct, i.e., to keep the port 
number as part of the site name.  This is justified by the arguments given in 
bug 99311 -- namely that some sites use different port numbers to distinguish 
different servers on the same machine.

Therefore I'm reopening this bug report and requesting reviews for backing out 
the change.  Then I'll close this report out as wont-fix and I will close out 
bug 99311 as fixed.

cc'ing alecf and bryner for reviews for backing out this fix.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Status: REOPENED → ASSIGNED
Comment on attachment 43159 [details] [diff] [review]
remove port number from host name

sr=alecf on the backout
Attachment #43159 - Flags: superreview+
r=bryner for the backout
Patch has now been backed out.  Marking as wont-fix -- see discussion in 99311 
for rationale.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: