This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where tabs opened via `right click > open in new private ta…
…b` were not opening in a private tab. During app/browser/tab::create(), `isPrivate` is set to true. However, there is no partition set. If this is missing, I believe the code is checking the opener (which is not correct in this case). When handler `add-new-contents` fired, the `incognito` property was always set to false. Partition `default` seems to match picking "New private tab" from file menu and hitting + button > New private tab in tabs bar After review by @bbondy, this also makes sure to assign partition if isPartitioned/partitionNumber are set (same conditions as checked in getPartition) Fixes #8271 Auditors: @bbondy, @bridiver Test Plan: 1. Go to https://slashdot.org/ 2. Right click any link and pick (from the context menu) `Open Link in New Private Tab` 3. Confirm tab that opens is private 4. Close private tab, go back to slashdot.org 5. Right click a link and pick (from the context menu) `Open Link in New Session Tab` 6. Go back to slashdot.org and repeat step 5 7. You should now have two session tabs opened, each with a different ID
- Loading branch information