Closed Bug 370286 Opened 19 years ago Closed 18 years ago

Audit use of pageTitle vs. displayTitle

Categories

(Camino Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)

Details

(Keywords: fixed1.8.1.5)

Attachments

(1 file)

Right now most of the UI uses pageTitle, rather than displayTitle. Most, if not all, actually should be using displayTitle (bookmarking, for example), so it should be changed where appropriate (and if that lets us eliminate pageTitle altogether, even better).
As expected, UI should all be using the display title, so I made pageTitle return the fixed up form and removed displayTitle. Since it's related, I'd also like to change 'untitled' to 'Untitled' in our strings file unless anyone objects. The comment says it's lower case to match the HIG, but: - NSDocument uses Untitled - Prominent AppKit engineers have commented on lists that the HIG is out of date in that respect, and that Untitled is now considered correct - The HIG argument for lower-case was to make it clear that it was unsaved to encourage the user to save; that's cleary irrelevant for us - It looks out of place relative to other titles, most of which are upper-case (and relative to most apps, given the NSDocument behavior).
Attachment #263837 - Flags: review?
Attachment #263837 - Flags: review? → review+
Comment on attachment 263837 [details] [diff] [review] remove displayTitle pink, when you look at this a yay or nay on the strings change in comment 1 would be good as well.
Attachment #263837 - Flags: superreview?(mikepinkerton)
I'm ok with the strings change in comment 1. - (NSString*)pageTitle { - return [mBrowserView pageTitle]; + return mDisplayTitle; } Why isn't |displayTitle| a better name for a member called |mDisplayTitle|? This seems more confusing to me...
(In reply to comment #3) > Why isn't |displayTitle| a better name for a member called |mDisplayTitle|? > This seems more confusing to me... displayTitle isn't a very descriptive name from an API standpoint; if you are looking for a method to give you the page's title, pageTitle is a lot more obvious, and similarly if you are reading code using it. I could change the member variable, but I thought it was still a useful internal distinction since it's not necessarily the same as the underlying title as reported by Gecko.
Comment on attachment 263837 [details] [diff] [review] remove displayTitle sr=pink
Attachment #263837 - Flags: superreview?(mikepinkerton) → superreview+
Checked in on trunk and MOZILLA_1_8_BRANCH
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.5
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: