Closed
Bug 519479
Opened 17 years ago
Closed 16 years ago
places default title behavior shouldn't use part of the URL
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
| Tracking | Status | |
|---|---|---|
| fennec | 1.0+ | --- |
People
(Reporter: aakashd, Assigned: mak)
References
Details
Attachments
(1 file, 1 obsolete file)
|
19.60 KB,
patch
|
dietrich
:
review+
dveditz
:
approval1.9.2.2-
|
Details | Diff | Splinter Review |
Build ID:
Mozilla/5.0 (X11; U; Linux armv7l; en-US; rv:1.9.2b1pre) Gecko/20090928
Fennec/1.0b4pre
Litmus Testcase https://litmus.mozilla.org/show_test.cgi?id=7612
Steps to Reproduce:
1. Go to http://ed.agadak.net/blan
2. Go to the awesome bar and view the page title listed there
Actual Results:
"blank" shows up in the page title and not the url
Expected Results:
Due to the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=456084 , the url should show up in the title.
| Reporter | ||
Updated•17 years ago
|
Severity: normal → major
tracking-fennec: --- → ?
| Reporter | ||
Comment 1•17 years ago
|
||
This is also inconsistent with the bookmarks manager as the name field in the edit bookmark dialog shows the title to be the url there.
Comment 2•17 years ago
|
||
bug 456084 only fixed blanks for the URLBar itself. A different bug fixed blanks in bookmarks.
Comment 3•17 years ago
|
||
"blank" seems to be coming from the autocomplete controller, which kinda means that we are somehow saving it as "blank" - but Firefox doesn't
Comment 4•17 years ago
|
||
Turns out this is places' intended behavior. It tries to generate a title based on the URL for history entries that have no title:
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/src/nsNavHistory.cpp#7425 (GenerateTitleFromURI)
This happens in Firefox as well. We could turn this into a bug asking for that behavior to be changed, but otherwise I think it is INVALID.
Comment 5•17 years ago
|
||
(That page just happens to be "blank" because that's the last part of its URL)
Comment 6•17 years ago
|
||
(In reply to comment #5)
> (That page just happens to be "blank" because that's the last part of its URL)
So it's working as designed. I think we should close this bug too.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 7•17 years ago
|
||
There's an inconsistency to the user for the bookmarks dialog to have a different page title than the one in the awesome bar. This is definitely a bug.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 8•17 years ago
|
||
Not a Fennec bug, though...
Component: General → Places
Product: Fennec → Toolkit
QA Contact: general → places
Summary: Pages with blank titles show "blank" in the awesome bar results → places default title behavior shouldn't use part of the URL
Comment 9•17 years ago
|
||
Actually saving null titles is probably the best option - the consumer can decide what to actually show (e.g. by duplicating GenerateTitleFromURI in front-end code).
Note also that there is an inconsistency in behavior, which probably explains why we sometimes didn't see this bug in testing - InternalAddNewPage calls GenerateTitleFromURI if the title is void, but setPageTitle() called from nsDocShell::SetTitle doesn't, and seems to just save null titles.
| Assignee | ||
Comment 10•17 years ago
|
||
i completely agree with Gavin as i said or IRC, toolkit should not make assumption on titles, and leave decisions on how to fill empty titles to the frontend.
Saving a part of the uri as title means deciding that's the best option, and as we see here, is it not always true.
Saving meaningless informations is always bad from a db point of view, and from a user point of view.
We should really get rid of that code and just save a null title.
| Reporter | ||
Comment 11•17 years ago
|
||
This'll make changes to litmus test case on the fennec 1.0 test run:
https://litmus.mozilla.org/show_test.cgi?id=7612
Flags: in-litmus?
| Assignee | ||
Updated•17 years ago
|
Assignee: nobody → mak77
Status: REOPENED → ASSIGNED
| Assignee | ||
Updated•17 years ago
|
Flags: in-testsuite?
| Assignee | ||
Comment 12•17 years ago
|
||
the interesting question is:
is an empty string title different from a null title?
or in other words: should returned title be empty string or null, or should we always return an empty string (for example from getPageTitle)?
From a code point of view, since we allow to set a null title or an empty string title makes sense to allow distinguish them. But from a "contents" point of view this is the title of a page, and the page either has a title or has not.
I think i'll go for the widest impl, allowing to set and get both an empty string or a null title, so that an implementer can choice to only override null titles while setting empty string titles for some wanted page.
| Assignee | ||
Comment 13•17 years ago
|
||
| Assignee | ||
Comment 14•17 years ago
|
||
Attachment #406439 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #406441 -
Flags: review?(dietrich)
Updated•16 years ago
|
tracking-fennec: ? → 1.0+
Updated•16 years ago
|
Attachment #406441 -
Flags: review?(dietrich) → review+
| Assignee | ||
Comment 15•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 17 years ago → 16 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
| Assignee | ||
Comment 16•16 years ago
|
||
pushed an additional changeset to fix an orange: http://hg.mozilla.org/mozilla-central/rev/dcfa9c3a2388
| Assignee | ||
Comment 17•16 years ago
|
||
Comment on attachment 406441 [details] [diff] [review]
patch v1.1
this is blocking fennec, would probably need approval
Attachment #406441 -
Flags: approval1.9.2?
Updated•16 years ago
|
Attachment #406441 -
Flags: approval1.9.2? → approval1.9.2.2?
Comment 19•16 years ago
|
||
Comment on attachment 406441 [details] [diff] [review]
patch v1.1
Minusing this version because 1) we missed 1.9.2.2 and 2) this patch apparently needs a test fix before landing.
Does this really block Fennec? Because it doesn't seem to have... Anyway, if you still need this please create a merged 1.9.2.x patch with text fix and request 1.9.2.3 approval
Attachment #406441 -
Flags: approval1.9.2.2? → approval1.9.2.2-
| Assignee | ||
Comment 20•16 years ago
|
||
(In reply to comment #19)
> Does this really block Fennec?
not blocking in the strict sense, but pretty annoying unless they did workaround it (empty selection from the locationbar), that they should tell us.
Comment 21•16 years ago
|
||
Fennec didn't work around it, AFAIK. It's makes awesomebar results somewhat annoying for pages without titles, but it's certainly not the end of the world.
You need to log in
before you can comment on or make changes to this bug.
Description
•