Closed Bug 281770 Opened 21 years ago Closed 1 year ago

Reset button on the fonts prefpane resets all fonts instead of just active language/script

Categories

(Camino Graveyard :: Preferences, defect, P3)

All
macOS
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alqahira, Unassigned)

Details

Attachments

(1 file)

Every option/control on the Fonts tab of the Appearance prefpane affects *only* the setting for the active ("Choose fonts for:") language/script--except for "Reset", which resets the font settings for *all* scripts/languages. This is bad UI. The user expects the buttons/selects to only operate on the active language/script, but instead one of them (Reset) acts on all scripts regardless of which one is active. (If en masse is the only way Gecko lets one reset fonts, then the "Reset" button needs to be renamed or have a bit of explanatory text to the effect of "Reset all font settings for all languages/scripts")
Taking.
Assignee: pinkerton → sfraser_bugs
If you have several tabs open, resetting fonts (as currently implemented, e.g. for all langGroups) can cause Camino to beachball and suck 60-80% of CPU (it's redrawing all the tabs). If you have a sufficient number or they are "big" enough--and I don't know a threshold; more than 5 but less than a dozen--Camino will become irrevocably hung. Attached is a zipped sample of a hung Camino when I had 8 or 9 tabs open and hit "Reset."
Are you sure you waited long enough? Yeah, I know this sucks, but it's entirely in gecko.
I waited a couple of minutes. By then, Activity Monitor reported "(hung)" in red, I waited a little while before I sampled it and then force quit.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → Camino1.0
(In reply to comment #0) > > This is bad UI. The user expects the buttons/selects to only operate on the > active language/script, but instead one of them (Reset) acts on all scripts > regardless of which one is active. > > (If en masse is the only way Gecko lets one reset fonts, then the "Reset" button > needs to be renamed or have a bit of explanatory text to the effect of "Reset > all font settings for all languages/scripts") Ugh...I worked on this for bug 158180. I'm pretty sure my nib quite clearly indicated that the button resets all scripts. I suppose I decided single-handedly that the Reset button should apply to all scripts. Also, re the performance issue/hang. Gecko is terribly slow at re-rendering a page after font changes. However, this problem seems worse using the Reset button than commiting font changes after switching prefs. I do not recall this being the case originally. It looks like it re-renders the page, then beachballs while doing who knows what. It also looks like the page is redrawn with the wrong fonts; reloading the page seems to fix it.
(In reply to comment #5) > It also looks like the page is redrawn with the > wrong fonts; reloading the page seems to fix it. I believe there's a Core bug on that. Spinning the hanging stuff off into bug 303987.
-> 1.1
Target Milestone: Camino1.0 → Camino1.1
QA Contact: preferences
Target Milestone: Camino1.1 → Camino1.2
Mass un-setting milestone per 1.6 roadmap. Filter on RemoveRedonkulousBuglist to remove bugspam. Developers: if you have a patch in hand for one of these bugs, you may pull the bug back to 1.6 *at that point*.
Target Milestone: Camino1.6 → ---
So do we want to re-label the button, or change its behavior (or add a button and do both)? Either would be pretty easy, so we should just pick something and do it.
Assignee: sfraser_bugs → nobody
Status: ASSIGNED → NEW
"Reset All" and "Reset" ? That's OK, presuming that moving min-font and default proportional from the sheet don't make a two-button scenario too cramped. If they do, then Reset should just reset the active script (both for sanity and perf reasons).
I'd like to get this done sooner rather than later; we need to make a decision on comment 10 (which I fully agree with, for the record).
Hardware: Macintosh → All
Here's a very quick mockup of what comment 10 could look like: http://chrislawson.net/camino/mockup.png
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: