Replace or remove NS_CheckContentProcessPolicy call in ImageDocument
Categories
(Core :: DOM: Security, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox123 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 1 open bug)
Details
(Whiteboard: [domsecurity-backlog1])
Attachments
(1 file)
ImageListener::OnStartRequest
is one of the only two callers of NS_CheckContentProcessPolicy
. It was original added in bug 200433, to make content blocking of images inside an iframe. (This is required because in that case the image is loaded as a content type of TYPE_INTERNAL_IFRAME
not TYPE_INTERNAL_IMAGE
)
We removed most of the code for nsContentBlocker
in bug 1357107, but did introduce ImageBlocker
. However that regressed image blocking inside iframes again, because ImageBlocker::ShouldProcess
doesn't actually do anything.
I am not sure if we can just replace that call with NS_CheckContentProcessPolicy
with NS_CheckContentLoadPolicy
, because some implementation like CSPService::ShouldProcess
just do nothing for images currently, in contrast to ShouldLoad
. The other solution would be to just not bother with blocking images here at all.
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
bugherder |
Description
•