| Auto-Submit | +1 |
| Owners-Override | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Bot-Commit | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Revert "[resource coordinator] TabManager discards via PageDiscardingHelper"
This reverts commit 0d54250ca6a72b86a12cc0e50d87bd355648e373.
Reason for revert: newly added test of DiscardEligibilityPolicyBrowserTest.CannotDiscardVisibleInSplit
failing https://ci.chromium.org/ui/p/chrome/builders/ci/linux-chromeos-chrome/55030/overview
Original change's description:
> [resource coordinator] TabManager discards via PageDiscardingHelper
>
> The TabManager and TabLifecycleUnit code to select the page to discard
> should be replaced by PageDiscardingHelper::DiscardAPage.
>
> Modified some browser tests because of the difference between
> TabLifecycleUnit::CanDiscard and DiscardEligibilityPolicy::CanDiscard.
> Some DiscardEligibilityPolicy::CanDiscard differences:
> 1. It always returns eligible for external discards. So a few tests are
> modified to use urgent discard instead of external discard.
> 2. ScopedSetClocksForTesting doesn't work. Passing
> minimum_time_in_background_to_discard = 0 instead.
> 3. Discarding a tab with file:// url is not eligible.
>
> Some subtests of TabLifecycleUnitTest are removed:
>
> DiscardEligibilityPolicyTest::TestCannotDiscardVisiblePage replaces
> SetFocused and SetFocusedSplit in TabLifecycleUnitTest. In
> DiscardEligibilityPolicy, all visible pages are protected instead of
> only the focused page.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardPageWithoutMainFrame
> replaces TabLifecycleUnitTest::CannotDiscardCrashed.
> DiscardEligibilityPolicy::CanDiscard returns kDisallowed for tab without
> a main frame, which includes the crashed tab case.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardVisiblePage replaces
> TabLifecycleUnitTest::CannotDiscardActive. In DiscardEligibilityPolicy,
> all visible pages are protected.
>
> TabLifecycleUnit::CanDiscard returns false when the discard count is not
> zero. It's replaced by the DiscardAttemptMarker mechanism in
> DiscardEligibilityPolicy. So TabLifecycleUnitTest::UrgentDiscardProtections
> is replaced by
> DiscardEligibilityPolicyTest::TestCannotDiscardPageWithDiscardAttemptMarker.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardPageCapturingVideo
> replaces TabLifecycleUnitTest::CannotDiscardVideoCapture.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardPageWithFormInteractions
> replaces TabLifecycleUnitTest::CannotDiscardHasFormInteractions.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardPageCapturingDisplay
> replaces TabLifecycleUnitTest::CannotDiscardDesktopCapture.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardRecentlyAudiblePage
> replaces TabLifecycleUnitTest::CannotDiscardRecentlyAudible.
>
> DiscardEligibilityPolicyTest::TestCanDiscardNeverAudiblePage replaces
> TabLifecycleUnitTest::CanDiscardNeverAudibleTab.
>
> DiscardEligibilityPolicyTest::TestCannotDiscardPdf replaces
> TabLifecycleUnitTest::CannotDiscardPDF.
>
> DiscardEligibilityPolicyBrowserTest::CannotDiscardVisibleInSplit
> replaces TabLifecycleUnitTest::SetFocusedSplit.
>
> Bug: 394889323
> Change-Id: Ie433615347033d4f0563d7e44fc53a67a29e7c14
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7129640
> Commit-Queue: Vovo Yang <vo...@chromium.org>
> Reviewed-by: Joe Mason <joenot...@google.com>
> Cr-Commit-Position: refs/heads/main@{#1550197}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey Vovo (and the next gardener), I realized that after reverting your CL, TabManagerTest.DiscardTabsWithOccludedWindow started to fail..
but without reverting your CL, DiscardEligibilityPolicyBrowserTest.CannotDiscardVisibleInSplit will fail.
Sorry for leaving this situation to you. I feel like maybe we have to disable one of the tests?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey Vovo (and the next gardener), I realized that after reverting your CL, TabManagerTest.DiscardTabsWithOccludedWindow started to fail..
but without reverting your CL, DiscardEligibilityPolicyBrowserTest.CannotDiscardVisibleInSplit will fail.
Sorry for leaving this situation to you. I feel like maybe we have to disable one of the tests?
I am working on relanding [resource coordinator] TabManager discards via PageDiscardingHelper (http://crrev.com/c/7206651) with DiscardEligibilityPolicyBrowserTest.CannotDiscardVisibleInSplit disabled on Chrome OS. I can re-enable DiscardTabsWithOccludedWindow after the reland.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |