mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
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:
parent
a7f3bc1ed9
commit
6e4b1228f5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user