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)
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)
|
121 bytes,
text/html
|
Details | |
|
2.61 KB,
patch
|
bugzilla
:
review+
bugzilla
:
superreview+
bugzilla
:
approval-aviary+
|
Details | Diff | Splinter Review |
|
14.45 KB,
image/png
|
Details |
The enablePrivilege dialog uses "Yes" and "No" as button labels. Dialogs
shouldn't use "Yes" and "No" as button labels, espeically security dialogs.
| Reporter | ||
Comment 1•21 years ago
|
||
| Reporter | ||
Updated•21 years ago
|
Flags: blocking-aviary1.0PR?
Comment 2•21 years ago
|
||
Error: uncaught exception: A script from "http://bugzilla.mozilla.org" was
denied UniversalXPConnect privileges.
| Reporter | ||
Comment 3•21 years ago
|
||
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.
Updated•21 years ago
|
Flags: blocking-aviary1.0PR? → blocking-aviary1.0PR+
Comment 4•21 years ago
|
||
patch by the end of the week or this misses the boat.
Updated•21 years ago
|
Priority: -- → P3
Updated•21 years ago
|
Assignee: dveditz → firefox
Comment 5•21 years ago
|
||
blake, any update?
| Assignee | ||
Comment 6•21 years ago
|
||
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 | ||
Updated•21 years ago
|
Assignee: firefox → steffen.wilberg
Status: NEW → ASSIGNED
| Assignee | ||
Updated•21 years ago
|
Whiteboard: [have patch]
| Reporter | ||
Comment 7•21 years ago
|
||
Err, ok/cancel is even worse than yes/no. Maybe grant/cancel?
| Assignee | ||
Comment 8•21 years ago
|
||
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)
| Assignee | ||
Comment 9•21 years ago
|
||
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
| Assignee | ||
Updated•21 years ago
|
Attachment #156223 -
Flags: superreview?(bryner)
Attachment #156223 -
Flags: review?(bryner)
| Assignee | ||
Comment 10•21 years ago
|
||
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)
Updated•21 years ago
|
Attachment #156227 -
Flags: superreview?(bryner)
Attachment #156227 -
Flags: superreview+
Attachment #156227 -
Flags: review?(bryner)
Attachment #156227 -
Flags: review+
Attachment #156227 -
Flags: approval-aviary+
| Assignee | ||
Comment 11•21 years ago
|
||
My cvs account is limited to browser/ and toolkit/. Can somebody check this in
for me, please? See comment 9 for trunk checkin.
Comment 12•21 years ago
|
||
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.
| Assignee | ||
Comment 13•21 years ago
|
||
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.
| Assignee | ||
Updated•21 years ago
|
Whiteboard: [have patch] → [have patch][bug 253942 has a better fix]
Updated•21 years ago
|
Whiteboard: [have patch][bug 253942 has a better fix] → [have patch][incorporated into the fix for 253942]
Comment 14•21 years ago
|
||
Fixed on trunk plus aviary and 1.7 branches
Keywords: fixed-aviary1.0,
fixed1.7.x
Whiteboard: [have patch][incorporated into the fix for 253942] → fixed1.7.2+ [incorporated into the fix for 253942]
Comment 15•21 years ago
|
||
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
Comment 16•21 years ago
|
||
then again, the code looks like it does return a failure in that case, so I
think I'm wrong.
Comment 17•21 years ago
|
||
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.
Updated•21 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
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.
Description
•