Closed
Bug 1322726
Opened 8 years ago
Closed 7 years ago
Add a UITour API to open about:newtab in the same tab
Categories
(Firefox :: Tours, defect)
Firefox
Tours
Tracking
()
RESOLVED
FIXED
Firefox 53
People
(Reporter: Gijs, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
MattN
:
review+
lizzard
:
approval-mozilla-aurora+
lizzard
:
approval-mozilla-beta+
|
Details |
No description provided.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
For context: for the automigration (release) funnelcake for 51, we want the "intro" page that invites signups to sync etc. to segue into about:newtab. Webpages can't link to about:newtab (this is intentional.) and so we need to make an API available for it to do that.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8818880 [details] Bug 1322726 - add UITour API to support opening about:newtab in the current tab, https://reviewboard.mozilla.org/r/98834/#review99164 Thanks for the test
Attachment #8818880 -
Flags: review?(MattN+bmo) → review+
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/754a1e0b9dea add UITour API to support opening about:newtab in the current tab, r=MattN
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/754a1e0b9dea
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8818880 [details] Bug 1322726 - add UITour API to support opening about:newtab in the current tab, Approval Request Comment [Feature/Bug causing the regression]: bug 1322718 comment #1 [User impact if declined]: can't run the funnelcake [Is this code covered by automated tests?]: Yes. The patch adds a test. [Needs manual test from QE? If yes, steps to reproduce]: No. [List of other uplifts needed for the feature/fix]: this is related to all the other deps of bug 1322718, but the patch is standalone and can be uplifted independently. [Is the change risky?]: no [Why is the change risky/not risky?]: because it's a relatively small change covered by automated tests, that is strictly additive (doesn't modify existing functionality). [String changes made/needed]: no.
Attachment #8818880 -
Flags: approval-mozilla-beta?
Attachment #8818880 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•7 years ago
|
status-firefox51:
--- → affected
status-firefox52:
--- → affected
Comment 7•7 years ago
|
||
Comment on attachment 8818880 [details] Bug 1322726 - add UITour API to support opening about:newtab in the current tab, Adds new behavior for onboarding funnelcake experiment. OK for aurora and beta.
Attachment #8818880 -
Flags: approval-mozilla-beta?
Attachment #8818880 -
Flags: approval-mozilla-beta+
Attachment #8818880 -
Flags: approval-mozilla-aurora?
Attachment #8818880 -
Flags: approval-mozilla-aurora+
Comment 8•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/af31714b0309
Comment 9•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/7257cc404e7b
Comment 10•7 years ago
|
||
Hey Gijs, I thought this landed three weeks ago, but my Nightly [53.0a1 (2017-01-12) (64-bit)] says that Mozilla.UITour.showNewTab is undefined… Am I doing something wrong here? (Mozilla.UITour.showHighlight is there, though, if that helps…)
Comment 11•7 years ago
|
||
(In reply to Blake Winton (:bwinton) (:☕️) from comment #10) > I thought this landed three weeks ago, but my Nightly [53.0a1 (2017-01-12) > (64-bit)] says that Mozilla.UITour.showNewTab is undefined… Am I doing > something wrong here? (Mozilla.UITour.showHighlight is there, though, if > that helps…) The `Mozilla.UITour` namespace is part of the library which is included in various projects. Whatever scope you're running it in probably needs to update the library from https://dxr.mozilla.org/mozilla-central/source/browser/components/uitour/UITour-lib.js. Where are you running that code?
Flags: needinfo?(bwinton)
Comment 12•7 years ago
|
||
I just opened up a console on about:home. But it should eventually run on https://www.mozilla.org/en-US/firefox/50.0/firstrun/?f=99 and it looks like it's showing up on the custom copy of that that we're running, so that's cool. :) Having said that, it doesn't seem to do anything when called from the local instance at https://127.0.0.1:8111/en-US/firefox/50.0/firstrun/?f=99 I'm assuming that's because it's not allowed, but is there a pref we can set/change to enable it to test with? (Cc-ing Erica who's doing the actual work here… ;)
Flags: needinfo?(bwinton)
Assignee | ||
Comment 13•7 years ago
|
||
(In reply to Blake Winton (:bwinton) (:☕️) from comment #12) > Having said that, it doesn't seem to do anything when called from the local > instance at https://127.0.0.1:8111/en-US/firefox/50.0/firstrun/?f=99 I'm > assuming that's because it's not allowed, but is there a pref we can > set/change to enable it to test with? From the code, looks like browser.uitour.testingOrigins can be set to a comma-separated list of origins (so e.g. "https://127.0.0.1:8111/" in your example). You'll need to also toggle browser.uitour.requireSecure to false if you want to use plain (non-TLS) http. on about:home, I don't really know where the Mozilla.UITour bits come from, but _sendEvent with the right parameters there does also work, as a workaround if that's necessary or something... but it looks like it must be fetching an old version right now, maybe via snippets or something? Not sure off-hand and it's late here.
Comment 14•7 years ago
|
||
For about:home the copy does come from the snippet server as Gijs suspected: view-source:https://snippets.cdn.mozilla.net/4/Firefox/53.0a1/20170112030301/Darwin_x86_64-gcc3/en-US/nightly/Darwin%2016.3.0/default/default/ Btw. there are some bedrock docs at https://bedrock.readthedocs.io/en/latest/uitour.html https://github.com/mozilla/bedrock/blob/master/media/js/base/uitour-lib.js is the file to update from m-c in bedrock.
Comment 15•7 years ago
|
||
(In reply to Blake Winton (:bwinton) (:☕️) from comment #12) > But it should eventually run on > https://www.mozilla.org/en-US/firefox/50.0/firstrun/?f=99 and it looks like > it's showing up on the custom copy of that that we're running, so that's > cool. I understand what you're saying now. That lib was updated 10 days ago: https://github.com/mozilla/bedrock/commit/f04a95610e6e360526563cd4779ca0fa80beaa99
You need to log in
before you can comment on or make changes to this bug.
Description
•