Closed
Bug 273949
Opened 20 years ago
Closed 11 years ago
Replace cacertexists.xul with a call to nsIPromptService::alert
Categories
(Core Graveyard :: Security: UI, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla24
People
(Reporter: Stefan.Borggraefe, Assigned: Cykesiopka)
References
()
Details
(Whiteboard: [kerh-cuz])
Attachments
(1 file, 2 obsolete files)
|
7.33 KB,
patch
|
briansmith
:
review+
Dolske
:
superreview+
|
Details | Diff | Splinter Review |
Follow-up to bug 251991. See bug 251991 comment 27 and bug 251991 comment 33. The file cacertexists.xul only contains a <description> and an Ok button. So this file isn't really needed, because we have nsIPromptService for this kind of standard dialog.
Comment 1•20 years ago
|
||
I'm reassigning to nobody. The suggestion sounds reasonable, but I don't think it's urgent to work on the bug.
Assignee: kaie → nobody
Priority: -- → P5
Updated•19 years ago
|
Whiteboard: [kerh-cuz]
Updated•18 years ago
|
QA Contact: ui
| Assignee | ||
Comment 2•12 years ago
|
||
I tested using a very basic extension, and it seems to work...
Attachment #720360 -
Flags: feedback?(bsmith)
| Assignee | ||
Updated•12 years ago
|
Summary: Replace cacertexists.xul with a calll to nsIPromptService::alert → Replace cacertexists.xul with a call to nsIPromptService::alert
Comment 3•12 years ago
|
||
Comment on attachment 720360 [details] [diff] [review] WIP: Conversion Patch v1 Review of attachment 720360 [details] [diff] [review]: ----------------------------------------------------------------- It seems like this patch should remove, at least, cacertexists.xul. David, could you review this please?
Attachment #720360 -
Flags: feedback?(dkeeler)
| Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Brian Smith (:bsmith) from comment #3) > Comment on attachment 720360 [details] [diff] [review] > WIP: Conversion Patch v1 > > Review of attachment 720360 [details] [diff] [review]: > ----------------------------------------------------------------- > > It seems like this patch should remove, at least, cacertexists.xul. > > David, could you review this please? Yes, but I thought I would get feedback on the switch to the prompt service part first..
Comment 5•12 years ago
|
||
Comment on attachment 720360 [details] [diff] [review] WIP: Conversion Patch v1 Review of attachment 720360 [details] [diff] [review]: ----------------------------------------------------------------- ::: security/manager/pki/src/nsNSSDialogs.cpp @@ +221,3 @@ > > + nsXPIDLString title; > + mPIPStringBundle->GetStringFromName(NS_ConvertASCIItoUTF16("caCertExistsTitle").get(), getter_Copies(title)); You should be able to use bundle->GetStringFromName(NS_LITERAL_STRING("brandShortName").get(), ...), as well as nsAutoString instead of the acronym-heavy nsXPIDLString. @@ -223,4 @@ > > - > - rv = nsNSSDialogHelper::openDialog(parent, > - "chrome://pippki/content/cacertexists.xul", You'll presumably also want to remove this file and the strings/manifests associated with it.
Comment 6•12 years ago
|
||
Comment on attachment 720360 [details] [diff] [review] WIP: Conversion Patch v1 Review of attachment 720360 [details] [diff] [review]: ----------------------------------------------------------------- Looks like a good start. I don't have anything to add to what's already been said.
Attachment #720360 -
Flags: feedback?(dkeeler) → feedback+
| Assignee | ||
Comment 7•12 years ago
|
||
Thanks for the feedback! I tried to match the coding style of the rest of the file. Hope I haven't failed horribly...
Assignee: nobody → cykesiopka
Attachment #720360 -
Attachment is obsolete: true
Attachment #720360 -
Flags: feedback?(bsmith)
Attachment #720977 -
Flags: review?(dkeeler)
Comment 8•12 years ago
|
||
Comment on attachment 720977 [details] [diff] [review] Patch v1 Review of attachment 720977 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me, but I'm not really familiar with this code, nor am I a PSM peer, so I'll just mark this as feedback. ::: security/manager/pki/src/nsNSSDialogs.cpp @@ +232,2 @@ > > + promptSvc->Alert(parent, title.get(), msg.get()); I think you want to do nsresult rv = promptSvc->Alert... here and return rv (the same might go for the mPIPStringBundle->GetStringFromName calls, except using NS_ENSURE_SUCCESS(rv, rv) instead of return, but since those should really never fail, maybe not).
Attachment #720977 -
Flags: review?(dkeeler) → feedback+
| Assignee | ||
Comment 9•12 years ago
|
||
(In reply to David Keeler (:keeler) from comment #8) > Comment on attachment 720977 [details] [diff] [review] > Patch v1 > > Review of attachment 720977 [details] [diff] [review]: > ----------------------------------------------------------------- > > This looks good to me, but I'm not really familiar with this code, nor am I > a PSM peer, so I'll just mark this as feedback. > > ::: security/manager/pki/src/nsNSSDialogs.cpp > @@ +232,2 @@ > > > > + promptSvc->Alert(parent, title.get(), msg.get()); > > I think you want to do nsresult rv = promptSvc->Alert... here and return rv > (the same might go for the mPIPStringBundle->GetStringFromName calls, except > using NS_ENSURE_SUCCESS(rv, rv) instead of return, but since those should > really never fail, maybe not). Thanks for the feedback! I've updated the patch with the rv and NS_ENSURE_SUCCESS bits (may as well err on the side of caution).
| Assignee | ||
Comment 10•12 years ago
|
||
Attachment #720977 -
Attachment is obsolete: true
Attachment #721036 -
Flags: review?(kaie)
Comment 11•12 years ago
|
||
Comment on attachment 721036 [details] [diff] [review] Patch v2 please ask the module owner for review, I'm currently not able to help with PSM
Attachment #721036 -
Flags: review?(kaie)
| Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Kai Engert (:kaie) from comment #11) > Comment on attachment 721036 [details] [diff] [review] > Patch v2 > > please ask the module owner for review, I'm currently not able to help with > PSM Ok, thanks anyways!
| Assignee | ||
Updated•12 years ago
|
Attachment #721036 -
Flags: review?(bsmith)
| Assignee | ||
Comment 13•12 years ago
|
||
Review ping?
| Assignee | ||
Comment 14•12 years ago
|
||
bsmith: Since you seem busy with a bunch of other bugs, is there someone you recommend to review the patch?
Status: NEW → ASSIGNED
Flags: needinfo?(bsmith)
Updated•11 years ago
|
Attachment #721036 -
Flags: superreview?(dolske)
Attachment #721036 -
Flags: review?(bsmith)
Attachment #721036 -
Flags: review+
Comment 15•11 years ago
|
||
(In reply to Cykesiopka from comment #14) > bsmith: Since you seem busy with a bunch of other bugs, is there someone you > recommend to review the patch? Somebody from Toolkit/Firefox team should look at it because it is a UI patch. But, it looks reasonable to me.
Flags: needinfo?(bsmith)
Comment 16•11 years ago
|
||
Comment on attachment 721036 [details] [diff] [review] Patch v2 Looks fine, barely even a UI "change". :)
Attachment #721036 -
Flags: superreview?(dolske) → superreview+
Comment 18•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/78db908ccff3
Keywords: checkin-needed
Comment 19•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/78db908ccff3
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•