Closed Bug 746394 Opened 13 years ago Closed 13 years ago

No label for home screen icons when adding page without title

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 14

People

(Reporter: bnicholson, Assigned: Margaret)

Details

Attachments

(1 file, 2 obsolete files)

If a page without a title is added to the home screen, the label below the icon is empty. We should use something, such as the page URL, when the title is empty.
Attached patch patch (obsolete) — Splinter Review
This totally bothered me the other day - I should have filed a bug.
Assignee: nobody → margaret.leibovic
Attachment #616162 - Flags: review?(bnicholson)
I hope the OS crops the URL when shown on the homescreen. I think it does.
Maybe we should strip the http (and www if its there)?
(In reply to Mark Finkle (:mfinkle) from comment #2) > I hope the OS crops the URL when shown on the homescreen. I think it does. It does. (In reply to Wesley Johnston (:wesj) from comment #3) > Maybe we should strip the http (and www if its there)? Yeah, that seems like a good idea, since we don't have much space to work with. I was also thinking about just using the name of the file at the end of the path, since we do something like that for downloads, but that seems less informative than the domain.
Attached patch alternate patch (obsolete) — Splinter Review
This patch also strips the protocol from the url. This is more complicated, and I'm not sure if it's worth the extra effort.
This gets rid of the protocol and the "www." if it exists. I'm trying to think of ways this regex can break, but it seems okay to me. I tested this with: "http://www.foo.com" "foo://foo.com" "http://wwww.foo.com" "http://ww.foo.com"
Attachment #616162 - Attachment is obsolete: true
Attachment #616172 - Attachment is obsolete: true
Attachment #616162 - Flags: review?(bnicholson)
Attachment #616215 - Flags: review?(bnicholson)
Attachment #616215 - Flags: review?(bnicholson) → review+
Comment on attachment 616215 [details] [diff] [review] patch using regex Self-contained change that will only affect adding a title-less page to your home screen. And it's a nice small win to avoid title-less icons on your home screen.
Attachment #616215 - Flags: approval-mozilla-central?
Comment on attachment 616215 [details] [diff] [review] patch using regex low risk and we hope people start using home screen shortcuts to launch the browser
Attachment #616215 - Flags: approval-mozilla-central? → approval-mozilla-central+
Target Milestone: --- → Firefox 14
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Can the protocol stripping part of this bug be used in any way for bug 729495 ? If yes, maybe it would be nice to add a comment there about this implementation for future reference. Can you do that Margaret?
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: