Closed Bug 471836 Opened 16 years ago Closed 14 years ago

don't need to dynamically set Clear Recent History... menu item label

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a1

People

(Reporter: Gavin, Assigned: cork)

References

Details

(Whiteboard: [good first bug])

Attachments

(1 file, 3 obsolete files)

Bug 469158 removed the option of avoiding the prompt when clearing private data, so there's no reason that we need to set the label to sanitizeWithPromptLabel2 in initializeSanitizer(), since we could instead just update clearRecentHistoryCmd.label accordingly.
Whiteboard: [good first bug]
Attached patch First try (obsolete) — Splinter Review
Attachment #422037 - Flags: review?
Comment on attachment 422037 [details] [diff] [review]
First try

I'm not a reviewer (I've requested review from one though), however you have to change the entity id when you change the entity for l10n reasons.
Attachment #422037 - Flags: review? → review?(gavin.sharp)
Attached patch v2 (obsolete) — Splinter Review
Thanks for the comment, i hope this is the change you meant.
Attachment #422037 - Attachment is obsolete: true
Attachment #422106 - Flags: review?(gavin.sharp)
Attachment #422037 - Flags: review?(gavin.sharp)
That is, only the |.label| part isn't supposed to be the part that is changed, rather the part before the '.'. Change it to something like 'clearRecentHistory.label'.
Assignee: nobody → Cork
Should I make the same change to the name of the accesskey entity too, or only the label?
Attached patch v3 (obsolete) — Splinter Review
Lets start with just the label.
Attachment #422106 - Attachment is obsolete: true
Attachment #422111 - Flags: review?(gavin.sharp)
Attachment #422106 - Flags: review?(gavin.sharp)
(In reply to comment #5)
> Should I make the same change to the name of the accesskey entity too, or only
> the label?

There are some tools which try to associate the labels and accesskeys, and they usually use try to look for a foorbar.accesskey for each foobar.label.  So, in this case, I would actually suggest changing the accesskey entity name as well, in order to keep these two in sync.
Attached patch v3Splinter Review
Something like this?

I hold on the review request, I don't feel like spamming Gavin any more...
Attachment #422111 - Attachment is obsolete: true
Attachment #422111 - Flags: review?(gavin.sharp)
(In reply to comment #8)
> Created an attachment (id=422219) [details]
> v3
> 
> Something like this?

Yes!
Attachment #422219 - Flags: review?(gavin.sharp)
Attachment #422219 - Flags: review?(gavin.sharp) → review+
Landed on trunk:

http://hg.mozilla.org/mozilla-central/rev/e1ac16b86b80

Thanks for your patch, Cork!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: