Closed Bug 501455 Opened 15 years ago Closed 14 years ago

Possible to bypass image blocking with data: url

Categories

(Core :: Graphics: Image Blocking, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 331257

People

(Reporter: Natch, Assigned: Natch)

References

Details

Attachments

(2 files)

Attached file testcase (deleted) —
The content blocker doesn't check the principal uri, it checks the actual image uri and will bail on a data: image (and others).
Flags: in-testsuite?
Flags: blocking1.9.2?
Joe, I think this is in your ballpark, would you be ok with me changing it to pass in the principal uri? I'd have to change the front-end code as well to block on the prinicpal uri, that should be doable with imgIRequest I think.
In principle I have no problem with that, I think, but I'd have to see the patch to say for sure.
Attached patch patch -test (deleted) — Splinter Review
Ok, sorry about that. The principal is already handed to the content blocker, it just fails to use it. I changed nsContentBlocker to use the principal uri if the first uri isn't scheme compatible. This fixes the testcase on this bug for me, I'll create a test and request review.
Assignee: nobody → highmind63
Flags: blocking1.9.2? → blocking1.9.2-
Comment on attachment 387690 [details] [diff] [review] patch -test This patch is wrong; for example it'll prevent loading of chrome:// images from http pages, thus breaking various parts of the browser UI and various extensions.
Attachment #387690 - Flags: review-
Also, this is a duplicate....
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: