Closed Bug 155928 Opened 22 years ago Closed 20 years ago

"Delete Entire Domain xxx" could be better worded

Categories

(Core Graveyard :: History: Global, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8alpha6

People

(Reporter: Biesinger, Assigned: Stefan.Borggraefe)

Details

Attachments

(2 files, 2 obsolete files)

In the History window, the Edit menu contains an entry "Delete entire domain
xxx". This is a pretty funny wording :)

Maybe use "Delete all from domain xxx"
Severity: normal → trivial
See also the discussion on Bug 81065.
Attached patch Patch (obsolete) — Splinter Review
This patch goes with biesi's suggestion. It also fixes the case of the menu
items and changes the access key for "Delete Host" from "l" to "e", because "e"
is wider.
Assignee: firefox → Stefan.Borggraefe
Status: NEW → ASSIGNED
Attachment #157530 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #157530 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 157530 [details] [diff] [review]
Patch

I think the no selection ones should say "All From" too. Forwarding review to
aaronlev in case he has an accesskey preference.
Attachment #157530 - Flags: review?(neil.parkwaycc.co.uk) → review?(aaronleventhal)
Comment on attachment 157530 [details] [diff] [review]
Patch

Shouldn't only the first word be capitalized?

Also, the great majority of users have no clue what a domain is.

I'm not sure if "Delete all from blah" is gramatically correct. It sounds a bit
funny.

May I suggest "Delete history items for %s"
Attachment #157530 - Flags: review?(aaronleventhal) → review-
How about "Delete History for [Site and/or Domain] %s" ?
(In reply to comment #4)
> (From update of attachment 157530 [details] [diff] [review])
> Shouldn't only the first word be capitalized?

I don't think so. The majority of Mozilla's menu items use title case.

> Also, the great majority of users have no clue what a domain is.

Mhh, I don't know another word for "domain". Also trying to explain what it is
inside of the menu item makes it a little bit long. Also the majority of users
probably don't really know what e.g. a "proxy" or a "cache" is, we have to use
these words nevertheless, because this is what these things are called and using
other terms would even be confusing for more advanced users.

> I'm not sure if "Delete all from blah" is gramatically correct. It sounds a bit
> funny.

Ok, I'm not a native speaker.

> May I suggest "Delete history items for %s"

Mhh, this doesn't solve the "domain" problem, since this would expand to

Delete History Items for Site/Host
Delete History Items for Domain

Otherwise you can't distinct the two. Or are you suggesting to consolidate the
two menu items into one?

I like Neil's idea to replace Host with Site, but I don't know a better word for
"domain".
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8alpha4
What's the difference between the two options?

For example, would delete everything for domain get rid of anything with
"mozilla.org" in it and delete everything for host is more specific -- e.g. only
bugzilla.mozilla.org stuff?
(In reply to comment #7)
> What's the difference between the two options?
> 
> For example, would delete everything for domain get rid of anything with
> "mozilla.org" in it and delete everything for host is more specific -- e.g. only
> bugzilla.mozilla.org stuff?

Say you have

http://www.mozilla.org
http://www.mozilla.org/projects/ui/accessibility/
http://bugzilla.mozilla.org
http://bonsai.mozilla.org
http://www.mozillazine.org/news.about.mozilla.org.html

in your history.

Then "Delete entire domain mozilla.org" would delete the first four entries
whereas "Delete all from www.mozilla.org" would delete only the first two
entries. So, yes. ;-)
I'm not trying to be difficult :) In my opinion, having both options is a bit
too complicated for what's needed. Do you agree this is a good time to think
about a better way? I don't want to take up all of your time.

> http://www.mozilla.org
> http://www.mozilla.org/projects/ui/accessibility/
> http://bugzilla.mozilla.org
> http://bonsai.mozilla.org
> http://www.mozillazine.org/news.about.mozilla.org.html

First, isn't it already possible to just use multiple selection and then hit the
delete key? This makes it easy to delete everything starting with
"www.mozilla.org" since they can be sorted to show up together.

Another idea would be these 2 choices:

"Delete everything from *.mozilla.org"
"Delete everything from www.mozilla.org"

This makes the feature 'accessible' from a usability perspective -- otherwise
only 2% of the audience will know what the options mean.
Comment on attachment 157530 [details] [diff] [review]
Patch

OK, I like *.mozilla.org, but are we going to delete everything, or all
history, or what from *.mozilla.org?
Attachment #157530 - Flags: superreview?(neil.parkwaycc.co.uk)
Attached patch Patch V2 (obsolete) — Splinter Review
Ok, this patch uses the * wildcard to avoid the word "domain":

Delete History for Site %s
Delete History for *.%s
Delete History for Site
Delete History for

The first two strings are for the enabled state, the last two for the disabled.
Attachment #157530 - Attachment is obsolete: true
Attachment #158685 - Flags: review?(aaronleventhal)
Comment on attachment 158685 [details] [diff] [review]
Patch V2

r=aaronlev

Is it better to use |var text as an intermediate variable|. Is that more
optimal in JS that to just set gDeleteByHostname.label or gDeleteByDomain.label
directly?
Attachment #158685 - Flags: review?(aaronleventhal) → review+
Comment on attachment 158685 [details] [diff] [review]
Patch V2

> Is it better to use |var text as an intermediate variable|. Is that more
> optimal in JS that to just set gDeleteByHostname.label or gDeleteByDomain.label
> directly?

I don't think this makes a big difference. I could as well directly assign to
the label attribute and eliminate var text. It's just a matter of style/taste.
Let's see if Neil wants var text to die.
Attachment #158685 - Flags: superreview?(neil.parkwaycc.co.uk)
Comment on attachment 158685 [details] [diff] [review]
Patch V2

I don't like the deleteDomainNoSelection string. Would it be too bad to put the
word "Domain" back at the end in this case?

>+                text = gHistoryBundle.getFormattedString("deleteHost", [ "" ]);
This is not localizable - the %S might be in the middle of the string. However
I like the idea of not formatting the deleteDomainNoSelection string.

>-            gDeleteByHostname.setAttribute("label", text);
>+
>+            gDeleteByHostname.label = text;
I know at some point this didn't work on a Mac, please check.
Attachment #158685 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview-
Attached patch Patch V2.1Splinter Review
Addressed Neil's review comments.

This patch still needs testing on Mac OS X.
Attachment #158685 - Attachment is obsolete: true
Is this going to be included with Firefox as well? Thanks.
timeless: Could you test Patch V2.1 with your Mac build? See comment 14. Thanks! :-)

Andrew: This patch doesn't change a thing in Firefox. If you want this feature
in Firefox, I think you should open a bug with severity enhancement for Firefox
(if there is none yet).
Target Milestone: mozilla1.8alpha4 → mozilla1.8alpha6
unfortunately my mac isn't building, and that's before bsmedberg rewrote the
build system, i'm dying because of zlib issues in xpinstall
Comment on attachment 160191 [details] [diff] [review]
Patch V2.1

Asking for reviews again. Since I can't find a Mac user who compiles the suite
to test this patch, I just want to check this in and find someone shortly after
who can test this with a nightly build an a Mac (timeless, *wink* *wink* ;-) ).
I hope this is okay.
Attachment #160191 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #160191 - Flags: review?(aaronleventhal)
that could be arranged *sigh*, i _want_ to build on doppler, it just isn't working
Attachment #160191 - Flags: review?(aaronleventhal) → review+
Attachment #160191 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
QA Contact: claudius → timeless
Resolution: --- → FIXED
timeless, does the menu-label update work on Mac OS X?
Downloaded a nightly for OS X. On a first glance, everything seems to work.
Stefan: what do you mean with menu label update? I'm attaching a screenshot how
it looks like. When Folders are selected, the menu items are disabled. 

With multiple selection, the menu label seems to be determined by the last
selected item.
Attached image OS X screenshot
(In reply to comment #23)
> Stefan: what do you mean with menu label update?

I meant the dynamically changing names of the two menu items reflecting the
currently selected history entry. From the screenshot it looks like this works
fine on Mac OS X, too. Thanks for testing! :-)
(In reply to comment #25)
> I meant the dynamically changing names of the two menu items reflecting the
> currently selected history entry. From the screenshot it looks like this works
> fine on Mac OS X, too. 

Yes, it does.

Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: