Closed Bug 920236 Opened 11 years ago Closed 11 years ago

Add a pref to display a page on first run after install/upgrade

Categories

(Firefox for Metro Graveyard :: Install/Update, defect, P2)

All
Windows 8.1
defect

Tracking

(firefox28 verified, firefox29 verified)

VERIFIED FIXED
Firefox 29
Tracking Status
firefox28 --- verified
firefox29 --- verified

People

(Reporter: mbrubeck, Assigned: rsilveira)

References

Details

(Whiteboard: [beta28] p=1)

Attachments

(1 file, 3 obsolete files)

In order to implement our first-run experience (bug 916326), we need to add some code and prefs similar to desktop Firefox to open a URL in a tab on first run.
Whiteboard: [preview] feature=work [shovel-ready] → [shovel-ready] feature=work
Since bug 916326 is set to [block28], I thought I'd take a look at this one.

It seems like most of the code to do this is already there except for some reason the line with '#expand' was not working. We could also do separate checks for "new profile" and "new version" if we want to have separate start pages in each case.
Attachment #833031 - Flags: feedback?(mbrubeck)
Comment on attachment 833031 [details] [diff] [review]
WIP: Show a 'first run' or 'upgrade' page

Looks good.  We'll probably use just "new profile" for now, and "new version" if we create a special upgrade page in the future.  We'll need to work with Yuan and/or webdev or SUMO to figure out what the URL will be for the first-run page.
Attachment #833031 - Flags: feedback?(mbrubeck) → feedback+
Blocks: 941284
Priority: -- → P2
Summary: Work - Add a pref to display a page on first run after install/upgrade → Add a pref to display a page on first run after install/upgrade
Whiteboard: [shovel-ready] feature=work → [beta28] p=0
Did we ever sort out what the first run url should be? Is this bug actionable yet? Marina, do you still want this one?
Attached patch WIP with about:start?firstrun (obsolete) — Splinter Review
Same patch setting first run page to "about:start?firstrun".
Assignee: nobody → rsilveira
Attachment #833031 - Attachment is obsolete: true
Hey Rodrigo, can you provide a point value.
Flags: needinfo?(rsilveira)
p=1
Flags: needinfo?(rsilveira)
Blocks: metrov1it21
No longer blocks: metrov1backlog
Status: NEW → ASSIGNED
QA Contact: jbecerra
Whiteboard: [beta28] p=0 → [beta28] p=1
Attached patch Patch v1 (obsolete) — Splinter Review
Switched to about:newtab?firstrun
Attachment #8347532 - Attachment is obsolete: true
Attachment #8349609 - Flags: review?(mbrubeck)
Comment on attachment 8349609 [details] [diff] [review]
Patch v1

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

r=mbrubeck with a possible change:

::: browser/metro/components/BrowserCLH.js
@@ +222,5 @@
>          // Default to the saved homepage
>          let defaultURL = getHomePage();
>  
> +        // Show page for first run or upgrade.
> +        if (needHomepageOverride() != "none") {

Maybe we should do this only if (needHomepageOverride() == "new profile"), so that we don't show the firstrun page after every version upgrade.

That's assuming that it will return "new profile" the first time Metro Firefox runs, even in an existing desktop Firefox profile.  I think that's the case but I haven't tested it.
Attachment #8349609 - Flags: review?(mbrubeck) → review+
Attached patch Patch v2Splinter Review
changed to using needHomepageOverride() == "new profile". Tested it and works fine even with a populated desktop profile.
Attachment #8349609 - Attachment is obsolete: true
Attachment #8349778 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/425e560ef39a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Comment on attachment 8349778 [details] [diff] [review]
Patch v2

[Approval Request Comment]
Bug caused by (feature/regressing bug #): No regression, triggers first run experience in bug 941284.
User impact if declined: Low, first run experience will not be enabled.
Testing completed (on m-c, etc.): yes.
Risk to taking this patch (and alternatives if risky): Very low, metro change only.
String or IDL/UUID changes made by this patch: None.
Attachment #8349778 - Flags: approval-mozilla-aurora?
Attachment #8349778 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified as fixed for iteration #21, with latest Nightly and Aurora on Win 8 64-bit and 32-bit: after install/upgrade, the "about:start?firstrun" page is displayed.
Status: RESOLVED → VERIFIED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: