[fix bug 1243890] Update FxA iframe param for Fx46. #3851
Conversation
|
|
||
| console.log('fx version = ' + version); | ||
|
|
||
| if (version >= 46) { |
alexgibson
Feb 12, 2016
Member
I may well be missing something, but if you're only after the major version number then using UITour for this could be overkill perhaps? If you needed the minor version or channel name then UITour is the only way, but if the major version number is the only thing of importance, then I would probably use Mozilla.Client.FirefoxMajorVersion instead. This is both synchronous and does not require any special config.
I may well be missing something, but if you're only after the major version number then using UITour for this could be overkill perhaps? If you needed the minor version or channel name then UITour is the only way, but if the major version number is the only thing of importance, then I would probably use Mozilla.Client.FirefoxMajorVersion instead. This is both synchronous and does not require any special config.
jpetto
Feb 12, 2016
Author
Contributor
I went right for the big guns, didn't I? Refactoring...
I went right for the big guns, didn't I? Refactoring...
ff9f3a2
to
55f5702
|
Okay, I think I've stopped trying too hard. Ready for a real review. |
|
When I updated the bedrock docs for local testing, I totally forgot to include the bit about using the right port ( |
I think I can handle that. |
- Update FxA docs to include local server IP/port
|
Tested locally and both pages are working as expected with the correct iframe query params, and I see blue button after verifying email in FF 46+ r+wc from me once the docs are updated for my faux pas Also noted that we should probably look to consolidate this code for the iframe sometime in the future, as there's a fair bit of duplication now? |
55f5702
to
644e2ff
…aram-fx46 [fix bug 1243890] Update FxA iframe param for Fx46.
Have not yet updated
firefox/accounts.jsas I wanted to first get a sanity check on the approach.Code is up on demo5:
https://www-demo5.allizom.org/en-US/firefox/46.0/firstrun/
Change isn't immediately obvious, so I'm logging the FxA iframe
srcto the console. If Fx 46+,srcstring should containcontext=fx_firstrun_v2. Otherwise,context=iframe.Actual change - after verifying email, Fx 46+ users see a blue "Sync Preferences" button in the iframe. Fx < 46 users do not get this button.
@alexgibson - Pre-review on approach? What do you think about the UITour fallback and timing?