Skip to content

Commit

Permalink
Fix Bug 1425454 - The onboarding flow should end up focusing the awes…
Browse files Browse the repository at this point in the history
…omebar instead of the search box in the page
  • Loading branch information
Mardak authored and alexgibson committed Feb 7, 2018
1 parent fb689e8 commit 50b56bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions media/js/firefox/firstrun/firstrun_quantum.js
Expand Up @@ -11,7 +11,7 @@
}

var beginAnimation = function (syncConfig) {
var redirectDest = 'about:home';
var redirectDest = 'about:newtab';

var scene = document.getElementById('scene');
var skipbutton = document.getElementById('skip-button');
Expand All @@ -38,7 +38,12 @@
var onVerificationComplete = function () {
scene.dataset.signIn = 'true';
document.getElementById('white-overlay').addEventListener('transitionend', function() {
window.location.href = redirectDest;
// Specially navigate to about:newtab and focus address bar
if (redirectDest === 'about:newtab') {
Mozilla.UITour.showNewTab();
} else {
window.location.href = redirectDest;
}
}, false);
};

Expand Down

0 comments on commit 50b56bf

Please sign in to comment.