Bug 1276910 - Do not show "Add to home screen" prompt in private browsing. r=margaret

MozReview-Commit-ID: DFoMnyx4Gde

--HG--
extra : rebase_source : 4f91aea87e161fa08d07677f5c90717e7514e59c
extra : histedit_source : b8f02f27216478603d61c3f71562da74e0297e16
This commit is contained in:
Sebastian Kaspari 2016-06-01 10:02:51 +02:00
Родитель a7f3bc1ed9
Коммит 6e4b1228f5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -134,6 +134,11 @@ public class AddToHomeScreenPromotion extends BrowserAppDelegate implements Tabs
return;
}
if (tab.isPrivate()) {
// Never show the prompt for private browsing tabs.
return;
}
if (!isInForeground) {
// We only want to show this prompt if this tab is in the foreground and not on top
// of the tabs tray.