Closed Bug 1251546 Opened 8 years ago Closed 8 years ago

The homepage button is enabled in browser when homepage is not set.

Categories

(Firefox OS Graveyard :: Gaia::TV, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-v2.5 fixed, b2g-master verified)

RESOLVED FIXED
blocking-b2g 2.5+
Tracking Status
b2g-v2.5 --- fixed
b2g-master --- verified

People

(Reporter: oscartsai, Assigned: danhuang)

References

()

Details

(Whiteboard: [ft:conndevices])

Attachments

(3 files, 2 obsolete files)

[Description]
The homepage button is enabled in browser when homepage is not set.

[Testing Steps]
1. Launch Browser.
2. Move cursor to the Menu icon and press OK.
3. Select "Settings" and press OK.
4. Select "Homepage" and press OK.
5. Press Up twice to focus on text field. 
6. Press Right and press OK to clear text.
7. Press Down twice and press OK.
8. Press Back.
9. Move cursor to Homepage icon.
10. The homepage button is highlighted and enabled.


[Expected result]
10. The homepage should be gray out.

[Actual result]
10. The homepage button is highlighted and enabled.
Homepage button is enabled although there is no action when pressing homepage button.
Please refer to: https://youtu.be/2l8G4Y4rg04


[Build Info]
Environment: 2.6 Simulator
gaia:
https://github.com/mozilla-b2g/gaia/commit/1ad93502b639e5c335c15c97882a4c516b2ffa23
gecko:
https://hg.mozilla.org/mozilla-central/rev/c1e0d1890cfee9d86c8d566b0490053f21e0afc6
please help to verify if 2.5 has this issue or not, if yes then nominate it as blocker
Keywords: qawanted
blocking-b2g: --- → 2.5?
Keywords: qawanted
Hi Yifan,
Could you please take a look? Thank you.
Flags: needinfo?(yliao)
Dan, could you help here?
Assignee: nobody → dhuang
blocking-b2g: 2.5? → 2.5+
Flags: needinfo?(yliao) → needinfo?(dhuang)
Yes, Got it!
Flags: needinfo?(dhuang)
Hi Tori,

Could you provide your opinion about how browser should interact when the homepage is set to empty?
I had tested the scenario on firefox desktop. 
When the homepage setting field is empty, click homepage button will go to the Mozilla home page.
Flags: needinfo?(tchen)
Hi Dan, I prefer this behavior:
When the homepage setting field is empty, disable the save button. So user can't save when the field is empty.
Flags: needinfo?(tchen)
Comment on attachment 8726111 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_when_homepage_is_empty > mozilla-b2g:master

Hi Yi-Fan, please help review. This patch add input check for homepage setting. And also if the input is invalid, disable the ok button. Thanks.
Attachment #8726111 - Flags: review?(yliao)
Comment on attachment 8726111 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_when_homepage_is_empty > mozilla-b2g:master

Just a nit on Github. Thanks!
Attachment #8726111 - Flags: review?(yliao) → review+
Thanks for the review!
Merge in master: https://github.com/mozilla-b2g/gaia/commit/af37a5c49c688dac4f0f8fccab113f684b2d6c54
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment on attachment 8726111 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_when_homepage_is_empty > mozilla-b2g:master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Bug 1187806
[User impact] if declined: The homepage url can been set to empty.
[Testing completed]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=b20e83218be4c0dba15772e4266c4074a3ba340d
[Risk to taking this patch] (and alternatives if risky): None
[String changes made]: None
Attachment #8726111 - Flags: approval-gaia-v2.5?
Hi Oscar,
Could you please verify this bug? Thank you.
Flags: needinfo?(oscartsai)
This issue is verified on following v2.6 build and the result is PASS.
The OK button is disabled when homepage is empty.
[Build Info]
gaia:
https://github.com/mozilla-b2g/gaia/commit/af37a5c49c688dac4f0f8fccab113f684b2d6c54
gecko:
https://hg.mozilla.org/mozilla-central/rev/b6acf4d4fc20431a8ae14bf32cdc6e43a9c0f9ad
Comment on attachment 8726111 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_when_homepage_is_empty > mozilla-b2g:master

Approve for TV 2.5
Attachment #8726111 - Flags: approval-gaia-v2.5? → approval-gaia-v2.5+
Blocks: 1256220
Dan,

please help to merge to 2.5 branch. Thanks
Flags: needinfo?(dhuang)
Attachment #8731533 - Attachment is obsolete: true
Flags: needinfo?(dhuang)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 1255325
Comment on attachment 8731571 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_and_show_input_validity_when_homepage_is_empty > mozilla-b2g:master

Hi Yi-Fan, please help review again. The difference this patch and last one are: 1. hide input invalid state when click restore-default button. 2. reset active element when setting dialog open. Thanks.
Attachment #8731571 - Attachment description: [gaia] danhuang1202:1251546_disable_ok_button_when_homepage_is_empty > mozilla-b2g:master → [gaia] danhuang1202:1251546_disable_ok_button_and_show_input_validity_when_homepage_is_empty > mozilla-b2g:master
Attachment #8731571 - Flags: review?(yliao)
Attachment #8731571 - Flags: review?(yliao) → review+
Thanks for the review!
Merge in master: https://github.com/mozilla-b2g/gaia/commit/5ad26b1c0d0c719b773a9e152fef83a8c6dfc786
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Comment on attachment 8731571 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_and_show_input_validity_when_homepage_is_empty > mozilla-b2g:master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Bug 1187806
[User impact] if declined: The homepage url can been set to empty.
[Testing completed]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=c9082fb9bf62c5aa80f30e3e76a01311fa633832
[Risk to taking this patch] (and alternatives if risky): None
[String changes made]: None
Attachment #8731571 - Flags: approval-gaia-v2.5?
Comment on attachment 8731571 [details] [review]
[gaia] danhuang1202:1251546_disable_ok_button_and_show_input_validity_when_homepage_is_empty > mozilla-b2g:master

Approve for TV 2.5
Attachment #8731571 - Flags: approval-gaia-v2.5? → approval-gaia-v2.5+
Attachment #8733268 - Attachment is obsolete: true
Flags: needinfo?(oscartsai)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: