Closed Bug 1299350 Opened 8 years ago Closed 8 years ago

If a homepage is set, it should be displayed at the end of the welcome wizard

Categories

(Firefox for Android Graveyard :: Android partner distribution, defect)

defect
Not set
normal

Tracking

(firefox48 fixed, firefox49 fixed, firefox50 fixed, firefox51 fixed)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox48 --- fixed
firefox49 --- fixed
firefox50 --- fixed
firefox51 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file)

Currently when you click "Start browsing" at the end of the welcome wizard, it goes straight to the URL bar for editing.

If you have a homepage, it should show at the end of the wizard.
This should really only affect distributions because they would have a homepage set when the wizard appears.
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Attachment #8786561 - Flags: review?(rnewman)
Comment on attachment 8786561 [details] [diff] [review]
Only enter edit mode if there is no homepage

Review of attachment 8786561 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ +2751,5 @@
>              mFirstrunAnimationContainer.registerOnFinishListener(new FirstrunAnimationContainer.OnFinishListener() {
>                  @Override
>                  public void onFinish() {
> +                    if (mFirstrunAnimationContainer.showBrowserHint() &&
> +                        TextUtils.isEmpty(getHomepage())) {

This does I/O unless it's already been run, and if it's already been run it'll be as a side-effect (e.g., of telemetry).

Are you confident that this won't spew strictmode warnings?
Attachment #8786561 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/91956c5e327190081112ece804cb3ddfeee36e5a
Bug 1299350 - If there is a homepage, show it at the end of the wizard. r=rnewman
Comment on attachment 8786561 [details] [diff] [review]
Only enter edit mode if there is no homepage

Approval Request Comment
[Feature/regressing bug #]: Wizard should navigate to homepage at the end.
[User impact if declined]: At end of wizard, partner homepage doesn't show.
[Describe test coverage new/current, TreeHerder]:
[Risks and why]: Low - only applies for distributions (homepage at startup)
[String/UUID change made/needed]: None

I am asking for this for release because we are looking to have a one off done for a partner with this fix and bug 1299162
Attachment #8786561 - Flags: approval-mozilla-release?
Attachment #8786561 - Flags: approval-mozilla-beta?
Attachment #8786561 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/91956c5e3271
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
This should really only affect distributions because they would have a homepage set when the wizard appears. So I'm changing the component.
Component: General → Distributions
Hi Mike, could you please comment on the test coverage section of the uplift request? Are there automated tests for this already? If not, did you manually test it?
Flags: needinfo?(mozilla)
> Hi Mike, could you please comment on the test coverage section of the uplift request? Are there automated tests for this already? If not, did you manually test it?

It has been manually tested by me and by the partner. Unfortunately it is a difficult solution to test as it requires a rooted device with a homepage set in the distribution, so it cannot be automated.
Flags: needinfo?(mozilla)
Comment on attachment 8786561 [details] [diff] [review]
Only enter edit mode if there is no homepage

Last minute fix for welcome screen for partner deal. 
Let's do it.
Attachment #8786561 - Flags: approval-mozilla-release?
Attachment #8786561 - Flags: approval-mozilla-release+
Attachment #8786561 - Flags: approval-mozilla-beta?
Attachment #8786561 - Flags: approval-mozilla-beta+
Attachment #8786561 - Flags: approval-mozilla-aurora?
Attachment #8786561 - Flags: approval-mozilla-aurora+
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: