Closed Bug 345665 Opened 18 years ago Closed 17 years ago

nsKeygenHandler calls nsITokenDialogs ::ChooseToken with NULL context

Categories

(Core :: Security: PSM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: chpe, Assigned: chpe)

References

()

Details

Attachments

(1 file)

nsKeygenHandler::GetSlotWithMechanism calls nsITokenDialogs::ChooseToken with NULL context interface requestor, even though it's handed an irq itself which it could pass on.
(This might be theoretical since I can't seem to find any way to actually get my nsITokenDialogs implementation called... how can I test this??)
Comment on attachment 230368 [details] [diff] [review]
fix

Picking reviewer based on cvs history, I apologise if I picked you in error.
Attachment #230368 - Flags: review? → review?(kengert)
Status: UNCONFIRMED → NEW
Ever confirmed: true
> I can't seem to find any way to actually get 
> my nsITokenDialogs implementation called... how can I test this??

You can trigger a key generation by using an html form that contains the keygen tag, for example you could try http://kuix.de/misc/test3/
Comment on attachment 230368 [details] [diff] [review]
fix

Your patch is reasonable, thanks for catching this.

r=kengert
Attachment #230368 - Flags: review?(kengert) → review+
QA Contact: psm
Assignee: kengert → chpe
Attachment #230368 - Flags: approval1.9?
Thanks to reed for noticing this got never checked in.
Attachment #230368 - Flags: approval1.9? → approval1.9+
Does this patch need sr= approval? If not, I'll just check it in, but I wasn't sure...
Keywords: checkin-needed
Attachment #230368 - Flags: superreview?(rrelyea)
Comment on attachment 230368 [details] [diff] [review]
fix

sr=dveditz
Attachment #230368 - Flags: superreview?(rrelyea) → superreview+
Patch checked in, marking fixed.

Thanks Christian!
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
Reopening bug. All patches that got checked in to trunk yesterday are being backed out, because it's unclear which patch has caused a performance regression.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Relanded.

Checking in security/manager/ssl/src/nsKeygenHandler.cpp;
/cvsroot/mozilla/security/manager/ssl/src/nsKeygenHandler.cpp,v  <--  nsKeygenHandler.cpp
new revision: 1.47; previous revision: 1.46
done
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: