Closed Bug 453076 Opened 16 years ago Closed 16 years ago

Add UI to see and remove certificate exceptions.

Categories

(Camino Graveyard :: Security, defect)

All
macOS
defect
Not set
normal

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: nobody → stuart.morgan+bugzilla
Whiteboard: l10n
Not going to block b1 on this (because of bug 467317).
Depends on: 467317
Flags: camino2.0b2?
Flags: camino2.0b1?
Flags: camino2.0b1-
Removing dependency, since we can (and are going to have to) hack around it.
No longer depends on: 467317
Attached patch fix (obsolete) — Splinter Review
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)
Attached file corresponding nib (obsolete) —
Flags: camino2.0b3? → camino2.0b3+
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?
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.
Attached patch v2 (obsolete) — Splinter Review
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)
Attached file nib v2
Attachment #371167 - Attachment is obsolete: true
Comment on attachment 375568 [details] [diff] [review] v2 You forgot CHCertificateOverrideManager.* :-(.
Attachment #375568 - Flags: review?(trendyhendy2000) → review-
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+
Attached file v3
With typo fix and missing files
Attachment #375568 - Attachment is obsolete: true
Attachment #375602 - Flags: superreview?(mikepinkerton)
+ 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.
Attachment #375602 - Flags: superreview?(mikepinkerton) → superreview+
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.

Attachment

General

Creator:
Created:
Updated:
Size: