Closed
Bug 453076
Opened 16 years ago
Closed 16 years ago
Add UI to see and remove certificate exceptions.
Categories
(Camino Graveyard :: Security, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino2.0
People
(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)
Details
(Whiteboard: l10n)
Attachments
(2 files, 3 obsolete files)
15.41 KB,
application/octet-stream
|
Details | |
24.10 KB,
application/octet-stream
|
mikepinkerton
:
superreview+
|
Details |
Bug 398417 will add the ability to create exceptions for invalid certificates, so we'll need UI in the Certificates window to list and delete those exceptions.
(In the mean time, for testing related to cert exceptions, they can be managed by editing the plain-text 'cert_override.txt' file in the profile.)
Flags: camino2.0+
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → stuart.morgan+bugzilla
Whiteboard: l10n
Flags: camino2.0b1?
Not going to block b1 on this (because of bug 467317).
Assignee | ||
Comment 2•16 years ago
|
||
Removing dependency, since we can (and are going to have to) hack around it.
No longer depends on: 467317
Assignee | ||
Comment 3•16 years ago
|
||
Adds a sheet to the Security pane for displaying and removing cert overrides. Adds an nsICertOverrideService wrapper to give the pref pane access to it without using Gecko, and switches the existing cert override stuff to use it. (Eventually the recent-bad-cert stuff could go in there as well, but I didn't feel like dealing with that at the moment.)
Attachment #371166 -
Flags: review?(trendyhendy2000)
Assignee | ||
Comment 4•16 years ago
|
||
Assignee | ||
Updated•16 years ago
|
Flags: camino2.0b3? → camino2.0b3+
Comment 5•16 years ago
|
||
Comment on attachment 371166 [details] [diff] [review]
fix
Behaviour is pretty good overall. I can still add exceptions just fine.
The XCode project has been changed by Breakpad checkins, so this patch applies with some offsetting and fuzzing.
The Remove All item has ellipses, so I would expect a confirmation dialog to be shown. This happens with other Remove All… commands, for example in the Keychain Exclusions sheet.
The Remove and Remove All… items should be conditionally enabled, depending on whether there are table items they can remove. This can be done in IB using bindings.
>+#pragma mark Cookie Permissions Sheet
This is the wrong label for this section.
>+ return [[[[self class] alloc] init] autorelease];
You can use self instead of [self class] here. Reference: http://lists.apple.com/archives/Objc-language/2006/Jan/msg00001.html
Code looks good otherwise.
Attachment #371166 -
Flags: review?(trendyhendy2000) → review-
Out of curiosity, why did you not just add this to the Certificates window (like Firefox does) instead of making an additional sheet?
Assignee | ||
Comment 7•16 years ago
|
||
a) Shimming it into our existing UI looked like it was going to be more work (e.g., we play games with re-using the same table, and we don't have 4 columns in this case).
b) It's more consistent with our other exceptions.
c) The certificates view is already confusing, and I thought that stuffing another slightly different concept wasn't going to help anyone.
Assignee | ||
Comment 8•16 years ago
|
||
Addresses review comments, thanks for catching those!
I also realized as I walked though with fresh eyes that I was using our internal language ("certificate overrides") in the UI, even though they are called "security exceptions" in all the UI for creating them, so I've adjusted all the user-visible strings I'm adding to use the exception terminology.
Attachment #371166 -
Attachment is obsolete: true
Attachment #375568 -
Flags: review?(trendyhendy2000)
Assignee | ||
Comment 9•16 years ago
|
||
Attachment #371167 -
Attachment is obsolete: true
Comment 10•16 years ago
|
||
Comment on attachment 375568 [details] [diff] [review]
v2
You forgot CHCertificateOverrideManager.* :-(.
Attachment #375568 -
Flags: review?(trendyhendy2000) → review-
Comment 11•16 years ago
|
||
Comment on attachment 375568 [details] [diff] [review]
v2
Actually, you probably haven't changed those files between versions. If you restore them and s/chose/chosen in the RemoveAllSecurityExceptionsWarning string, you'll get an r+ from me.
Attachment #375568 -
Flags: review- → review+
Assignee | ||
Comment 12•16 years ago
|
||
With typo fix and missing files
Attachment #375568 -
Attachment is obsolete: true
Attachment #375602 -
Flags: superreview?(mikepinkerton)
Comment 13•16 years ago
|
||
+ if ([components count] != 2)
+ continue;
what's special about 2? Just a comment would help about what you're parsing for.
+- (IBAction)editOverrides:(id)aSender
Would be nice to have function-level comments on all the new methods added here.
sr=pink with those addressed.
Updated•16 years ago
|
Attachment #375602 -
Flags: superreview?(mikepinkerton) → superreview+
Assignee | ||
Comment 14•16 years ago
|
||
Landed on CVS trunk with added comments.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•