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)
Tracking
()
RESOLVED
WONTFIX
mozilla0.9.5
People
(Reporter: nnbugzilla, Assigned: morse)
References
()
Details
Attachments
(1 file)
1.09 KB,
patch
|
alecf
:
superreview+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•23 years ago
|
||
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.
Comment 2•23 years ago
|
||
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.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Reporter | ||
Comment 4•23 years ago
|
||
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.
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla1.0 → mozilla0.9.4
Assignee | ||
Comment 5•23 years ago
|
||
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.
Assignee | ||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
r=vishy
Comment 8•23 years ago
|
||
It's hard to tell from the context or I'm just stupid, what is the purpose of this change: + if (portColon) + *portColon = ':';
Assignee | ||
Comment 9•23 years ago
|
||
It undoes the temporary assigment preceding it of *portColon = '\0'; portColon is known to initially contain ":" before the above asignment.
Assignee | ||
Comment 10•23 years ago
|
||
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.
Comment 11•23 years ago
|
||
sr=blake
Assignee | ||
Comment 12•23 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•23 years ago
|
||
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
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Comment 15•23 years ago
|
||
Comment on attachment 43159 [details] [diff] [review] remove port number from host name sr=alecf on the backout
Attachment #43159 -
Flags: superreview+
Comment 16•23 years ago
|
||
r=bryner for the backout
Assignee | ||
Comment 17•23 years ago
|
||
Patch has now been backed out. Marking as wont-fix -- see discussion in 99311 for rationale.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•