Closed Bug 253944 Opened 21 years ago Closed 21 years ago

enablePrivilege dialog uses "Yes" and "No" as button labels

Categories

(Core :: Security, defect, P3)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: steffen.wilberg)

References

Details

(Keywords: fixed-aviary1.0, fixed1.7.5, Whiteboard: fixed1.7.3 [incorporated into the fix for 253942])

Attachments

(3 files, 1 obsolete file)

The enablePrivilege dialog uses "Yes" and "No" as button labels. Dialogs shouldn't use "Yes" and "No" as button labels, espeically security dialogs.
Flags: blocking-aviary1.0PR?
Error: uncaught exception: A script from "http://bugzilla.mozilla.org" was denied UniversalXPConnect privileges.
stdonner: You have to enable codebase principles in about:config, save the script to your hard drive, or get an attacker to sign the script.
Flags: blocking-aviary1.0PR? → blocking-aviary1.0PR+
patch by the end of the week or this misses the boat.
Assignee: dveditz → firefox
blake, any update?
Attached patch use OK/Cancel (obsolete) — Splinter Review
The question can be answered by OK/Cancel as well: A script from "%S" has requested %S privileges. You should grant these privileges only if you are comfortable downloading and executing a program from this source. Do you wish to allow these privileges?
Assignee: firefox → steffen.wilberg
Status: NEW → ASSIGNED
Whiteboard: [have patch]
Err, ok/cancel is even worse than yes/no. Maybe grant/cancel?
Comment on attachment 156223 [details] [diff] [review] use OK/Cancel Brian, this is really simple, yet a 1.0PR blocker.
Attachment #156223 - Flags: superreview?(bryner)
Attachment #156223 - Flags: review?(bryner)
Attached patch use Grant/CancelSplinter Review
Grant/Cancel this time. This patch is for the aviary branch. caps.properties used to live in /caps/src/caps.properties.
Attachment #156223 - Attachment is obsolete: true
Attachment #156223 - Flags: superreview?(bryner)
Attachment #156223 - Flags: review?(bryner)
Comment on attachment 156227 [details] [diff] [review] use Grant/Cancel Grant/Cancel is better indeed.
Attachment #156227 - Flags: superreview?(bryner)
Attachment #156227 - Flags: review?(bryner)
Attachment #156227 - Flags: superreview?(bryner)
Attachment #156227 - Flags: superreview+
Attachment #156227 - Flags: review?(bryner)
Attachment #156227 - Flags: review+
Attachment #156227 - Flags: approval-aviary+
My cvs account is limited to browser/ and toolkit/. Can somebody check this in for me, please? See comment 9 for trunk checkin.
I've more or less incorporated this into the fix for bug 253942, except I went with Allow/Deny because the dialog wording changed somewhat, and I reused the existing Yes/No caps strings so we won't have blank buttons in locales that don't catch on to the upgrade. Hm, maybe blank strings are better (easier to tell it's broken)? Except I'm afraid this is a dialog that doesn't get a lot of testing or use so it might not be caught either way. I see this is all reviewed and approved so I'll merge around it if you land first.
Blank buttons? No. If there's no "Grant" string, there's no dialog, and the request is denied: rv = sStrBundle->GetStringFromName(NS_LITERAL_STRING("Grant").get(), getter_Copies(grant)); if (NS_FAILED(rv)) return PR_FALSE; But I agree that showing Yes and No buttons is better than not showing the dialog.
Whiteboard: [have patch] → [have patch][bug 253942 has a better fix]
Whiteboard: [have patch][bug 253942 has a better fix] → [have patch][incorporated into the fix for 253942]
Depends on: 253942
Fixed on trunk plus aviary and 1.7 branches
Whiteboard: [have patch][incorporated into the fix for 253942] → fixed1.7.2+ [incorporated into the fix for 253942]
rv = sStrBundle->GetStringFromName(NS_LITERAL_STRING("Grant").get(), getter_Copies(grant)); if (NS_FAILED(rv)) return PR_FALSE; fwiw as I recall, this function happily succeeds and returns an empty string if the requested string is not found
then again, the code looks like it does return a failure in that case, so I think I'm wrong.
This patch is not exactly what was checked in... in the final patch in bug 253942 the existing Yes/No strings were reused (with new text) so that any lagging translations will still have something that makes sense.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: fixed1.7.2+ [incorporated into the fix for 253942] → fixed1.7.3 [incorporated into the fix for 253942]
Verified FIXED on trunk Seamonkey using 2004-11-12-04 on Windows XP.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: