Closed Bug 432200 Opened 18 years ago Closed 17 years ago

Loose ampersand in 'unresponsive script' dialogue box

Categories

(Camino Graveyard :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: phiw2, Assigned: bugzilla-graveyard)

Details

Attachments

(2 files, 1 obsolete file)

Attached image the offender
Next to the 'don't ask me again' checkbox there is an ampersand that doesn't seem to make too much sense. Seen with the 20080501 trunk build.
This must be another shortcut marker sneaking through (bug 244670)
Depends on: 413884
D'oh. CVS blame says bug 413884 broke this. http://mxr.mozilla.org/mozilla/source/dom/locales/en-US/chrome/dom/dom.properties#46 Apparently that & gets hidden somehow by non-embedding apps or something... This should probably be kicked to Core:DOM, but leaving in Camino for now until someone figures out whether this is purely a Camino bug, an embedding bug, or something that Core should figure out another means to solve. For the record, the above looks like a file that would ordinarily have l10n implications as well. Smokey, how do we currently handle this? I suppose we could just strip out the & (since the bug it's intended to fix, accesskeys, doesn't apply to native Cocoa sheets) during the build process if we had to...
No longer depends on: 413884
Hardware: PC → All
Version: unspecified → Trunk
Ah, presumably we could use the strategy from bug 244670 again, then. We should probably audit our sheets to ensure this doesn't happen again. I suspect it could be important again when the security certificate UI stuff gets done for 2.0.
(In reply to comment #3) > Ah, presumably we could use the strategy from bug 244670 again, then. We should figure out why the code from bug 244670 is not working here.
We only route button names through that function; we need to run checkbox strings through it as well. (In reply to comment #3) > I suspect it could be important again when the security certificate UI stuff > gets done for 2.0. Since that UI will be custom, that's highly unlikely.
Attached patch fix v1 (obsolete) — Splinter Review
This ought to do it.
Assignee: nobody → cl-bugs-new
Status: NEW → ASSIGNED
Attached patch fix v2Splinter Review
Bulletproofs all instances of checkbox titles in CocoaPromptService so this can't happen again. I guess in theory we could do it in nsAlertController too, but as far as I know CPS is the only place these Gecko-caused shortcuts can come through.
Attachment #324531 - Attachment is obsolete: true
Attachment #324538 - Flags: review?(stuart.morgan)
Attachment #324538 - Flags: superreview?(mikepinkerton)
Attachment #324538 - Flags: review?(stuart.morgan)
Attachment #324538 - Flags: review+
Comment on attachment 324538 [details] [diff] [review] fix v2 sr=pink
Attachment #324538 - Flags: superreview?(mikepinkerton) → superreview+
Landed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: