Closed Bug 135011 Opened 22 years ago Closed 16 years ago

Web Progress Listeners should be able to retrieve images security state

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: KaiE, Assigned: dougt)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When OnStateChange gets called, while data is loaded from the network, the
security code looks at the data transfered, and collects information, whether
objects are transfered securely or not.

It does this by QIing the given nsIRequest to nsIChannel, and extracting the
security state info.

This does not work for images. QIing thos nsIRequest objects to nsIChannel, that
are received for loaded images, does not succeed.

I don't know yet what class we are actually receiving, but peterv suspected it
might be imgRequestProxy.

Expected behaviour:

Requests given to OnStateChange as images are loaded, should be QIable to
nsIChannel.

Stuart suspected, it might be tricky to do that, because the used channel is
shared amongst multiple loaded images. Not sure if that's really a problem for
us, I can't judge. All we want to do is extract the security information from
the channel.

I saw that imgRequest contains a nsIChannel member. If you don't want to support
QIing imgRequestProxy to nsIChannel, I would like to request a way to retrieve
the imgRequestProxy's security state from the nsIChannel which it is using
internally, and make that publicly available.
This block 135007.
Blocks: 135007
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1alpha
Nominating
Keywords: nsbeta1
adt: nsbeta1-
Keywords: nsbeta1nsbeta1-
-> me
Assignee: pavlov → kaie
Status: ASSIGNED → NEW
retargeting
Target Milestone: mozilla1.1alpha → Future
Assignee: kaie → dveditz
Flags: blocking-aviary1.1?
Target Milestone: Future → ---
Flags: blocking-aviary1.1? → blocking-aviary1.1-
Assignee: dveditz → kengert
Blocks: 355555
This is somewhat of a workaround.  this will allow you to get the network request via new interface:  imgIRequest_MOZILLA_1_8_BRANCH.

For the trunk, we might as well just add this new attribute to the imgIRequest.
Assignee: kengert → dougt
Status: NEW → ASSIGNED
Attachment #245026 - Flags: review?
Attachment #245026 - Flags: review? → review?(pavlov)
mass reassigning to nobody.
Assignee: dougt → nobody
Status: ASSIGNED → NEW
Comment on attachment 245026 [details] [diff] [review]
bandaide/workaround

clearing review flag.
Attachment #245026 - Flags: review?(pavlov)
Blocks: newlock
Filter on "Nobody_NScomTLD_20080620"
QA Contact: tpreston → imagelib
I think the requested change has been implemented as part of bug 135007, marking fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee: nobody → doug.turner
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: