Closed Bug 1977915 Opened 1 year ago Closed 1 year ago

Avoid creating 2 homepage private tabs when switching to private mode with Homepage as a New Tab enabled

Categories

(Firefox for Android :: Homepage, task, P3)

All
Android
task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Enable Homepage as a New Tab via Secret Settings.
  2. Have no private tabs.
  3. Open the tabs tray and open a private tab.
  4. Observe that 2 private homepage tabs are opened.

Expected:

  • Only 1 private homepage tab should be opened.

We need to remove the call to HomeActivity#addPrivateHomepageTabIfNecessary. This was originally added to mitigate not having an opened private tab when the user clicked on the Private Browsing Mode toggle button to switch to private mode from the homepage, and then navigating to a site only to browse using the selected tab which is still in normal browsing mode. See Bug 1914852 for the use case.

Now that the PBM toggle button is removed from the homepage and private tabs are opened via the tabs tray, we do not need to mitigate this use case.

Depends on: 1914852
No longer depends on: homepage-as-new-tab
Pushed by gluong@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f9030195e5c4 https://hg.mozilla.org/integration/autoland/rev/814be6d7e78c Revert "Bug 1914852 - Ensure there's always a single private homepage tab when switching to private mode when Homepage as a New Tab is enabled" r=android-reviewers,devota
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: