Closed
Bug 606548
Opened 14 years ago
Closed 14 years ago
Start page options > Custom vs Current pages is redundant
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(fennec2.0b3+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
fennec | 2.0b3+ | --- |
People
(Reporter: tchung, Assigned: vingtetun)
Details
(Keywords: polish)
Attachments
(3 files, 2 obsolete files)
The workflow of the start page options (Custom vs. Current Page) is confusing. If i selected a "Use Current Page", it quickly displays "Custom Page" in the UI. If you select the droplist, you are presented an option to choose "Use Current Page" or "Custom Page".checked Use Current Page and Custom Page serves the same purpose in this case. I suggest removing "Custom Page" option altogether See screenshot Repro: 1) install android trunk nightly: Mozilla/5.0 (Android; Linux armv71; rv:2.0b8pre) Gecko/20101022 Firefox/4.0b8pre Fennec/4.0b2pre 2) visit any url thats not about:firefox 3) options > Prefs > select Start page droplist 4) Choose "Use Current Page" 5) Notice Button switches to "Custom Page" instead of Current page 6) Select droplist again, verify there's both use Current page and custom page options. both select the same thing, so it seems custom page is redundant. Expected: - stick with one choice "Use Current Page", and no more options Actual: - see screenshot
Comment 1•14 years ago
|
||
We add "Custom Page" only if the user has previously selected a "Use Current Page" item. We show "Custom Page" to let the user know the a custom web page is being used as the Start Page. This custom page might not be the current page shown in the browser, so "Custom Page" is not equal to "Use Current Page"
Reporter | ||
Comment 2•14 years ago
|
||
okay, then maybe we should hide "Use Current Page" option if the custom page is already set to the current page. Keep the display as it is now, to "Use current page", if the default page gets set to something else. Just seems odd to be show both options when Current Page == Custom page scenario
Comment 3•14 years ago
|
||
Good thought. Cc'ong Madhava to OK.
Comment 4•14 years ago
|
||
ah, just when you're currently on the page that is the custom page. Yeah - OK.
Updated•14 years ago
|
tracking-fennec: --- → ?
Updated•14 years ago
|
Flags: in-litmus?(nhirata.bugzilla)
Updated•14 years ago
|
Assignee: nobody → 21
tracking-fennec: ? → 2.0b3+
Assignee | ||
Comment 5•14 years ago
|
||
The patch hide the "Use Current Page" option if the user homepage is the current page. Please note that if the user has never made a choice and the browser is on the "Start Page" (about:home) it will be only two choices on the list : - Fennec Start Page - Blank Page instead of the normally 3 choices: - Fennec Start Page - Blank Page - Use Current Page Mark, in the patch I'm hiding the item in the raw menupopup and add it to the displayed list, I'm a bit hesitant about that, should I simply ignore it? Not sure if we want to keep it for some extensions purpose (not this case but some others - but I have no ideas of them)
Attachment #486486 -
Flags: review?(mark.finkle)
Comment 6•14 years ago
|
||
Hm - so there will be a slight feature-discoverability hit here (for users exploring, without ever having changed the start page). I hadn't thought of that. Would it be worth including the option but disabling it instead of removing it altogether?
Comment 7•14 years ago
|
||
(In reply to comment #5) > The patch hide the "Use Current Page" option if the user homepage is the > current page. It seems more informative to hide "Custom Page" in this case and have "Use Current Page" be the selected item. For one thing, this would mean that when you select "Use Current Page" from the dialog, it would remain selected instead of changing instantly to "Custom Page". Madhava, what do you think?
Comment 8•14 years ago
|
||
(In reply to comment #7) > (In reply to comment #5) > > The patch hide the "Use Current Page" option if the user homepage is the > > current page. > > It seems more informative to hide "Custom Page" in this case and have "Use > Current Page" be the selected item. If we do this and the user has a custom page already selected, how would they pick a new custom page?
Comment 9•14 years ago
|
||
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #5) > > > The patch hide the "Use Current Page" option if the user homepage is the > > > current page. > > > > It seems more informative to hide "Custom Page" in this case and have "Use > > Current Page" be the selected item. > > If we do this and the user has a custom page already selected, how would they > pick a new custom page? We would hide "Custom Page" only if the *current page* is already selected as the home page. If the user navigates to a different page, then "Custom Page" is selected and the user can choose "Use Current Page" to change the setting.
Assignee | ||
Comment 10•14 years ago
|
||
I've thought of it a bit during the past few days. I don't think we should hide the "Custom Page" row because it has an interesting property (not sure if it is a bug or not) but when you click on it and you have a previously selected start page, the start page preference is reverted to the default (I've integrated a fix into the code to show "Fennec Start" as the selected item in the list in this case) I think the question to take a decision is: do we want to keep this behavior for "Custom Page" or not?
Attachment #486486 -
Attachment is obsolete: true
Attachment #487230 -
Flags: review?(mark.finkle)
Attachment #486486 -
Flags: review?(mark.finkle)
Comment 11•14 years ago
|
||
(In reply to comment #10) > Created attachment 487230 [details] [diff] [review] > Patch v0.2 > I think the question to take a decision is: do we want to keep this behavior > for "Custom Page" or not? I don't think we want this behavior. The toggle-action is not good since no other choices behave this way. I think we are bike shedding this issue. What's the simplest approach? I don't like Matt's approach, leaving "Use Custom Page" visible, since this is the action - set my home page to a page of my choice I like leaving "Custom Page", which will be checked, since this is the state - you picked a custom page to be your home page I do not like picking "Custom Page" to toggle the state back to the default - that is a bug.
Assignee | ||
Comment 12•14 years ago
|
||
Attachment #487230 -
Attachment is obsolete: true
Attachment #488495 -
Flags: review?(mark.finkle)
Attachment #487230 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 13•14 years ago
|
||
This is the workflow implemented by the patch, the first column is when the user is on the about:home page to not penalized feature discoverability, the second column is the default behavior
Comment 14•14 years ago
|
||
Comment on attachment 488495 [details] [diff] [review] Patch v0.3 >diff --git a/chrome/content/preferences.js b/chrome/content/preferences.js >+ updateHomePageList: function updateHomePageMenuList() { >+ // Update the "Use Current Page" item in the menulist by disabling it if >+ // the current page is already the user homepage >+ let currentUrl = Browser.selectedBrowser.currentURI.spec; >+ let currentHomepage = Services.prefs.getComplexValue("browser.startup.homepage", Ci.nsIPrefLocalizedString).data; This will throw if the pref is not set, and it did throw on my build. Use Browser.getHomePage() r+ with nits fixed
Attachment #488495 -
Flags: review?(mark.finkle) → review+
Comment 15•14 years ago
|
||
fixed nits and pushed: http://hg.mozilla.org/mobile-browser/rev/a47fe6468101
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [has-patch]
Comment 16•14 years ago
|
||
verified FIXED on builds: Mozilla/5.0 (Maemo; Linux armv71; rv:2.0b8pre) Gecko/20101108 Namoroka/4.0b8pre Fennec/4.0b3pre and Mozilla/5.0 (Android; Linux armv71; rv:2.0b8pre) Gecko/20101108 Namoroka/4.0b8pre Fennec/4.0b3pre
Status: RESOLVED → VERIFIED
https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=13839
Flags: in-litmus?(nhirata.bugzilla) → in-litmus+
You need to log in
before you can comment on or make changes to this bug.
Description
•