Closed
Bug 370286
Opened 19 years ago
Closed 18 years ago
Audit use of pageTitle vs. displayTitle
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)
Details
(Keywords: fixed1.8.1.5)
Attachments
(1 file)
|
2.42 KB,
patch
|
jaas
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
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).
| Assignee | ||
Comment 1•18 years ago
|
||
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+
| Assignee | ||
Comment 2•18 years ago
|
||
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)
Comment 3•18 years ago
|
||
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...
| Assignee | ||
Comment 4•18 years ago
|
||
(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 5•18 years ago
|
||
Comment on attachment 263837 [details] [diff] [review]
remove displayTitle
sr=pink
Attachment #263837 -
Flags: superreview?(mikepinkerton) → superreview+
| Assignee | ||
Comment 6•18 years ago
|
||
Checked in on trunk and MOZILLA_1_8_BRANCH
You need to log in
before you can comment on or make changes to this bug.
Description
•