Repository navigation
Conversation
Metrics.Tablet sat in TabletLayoutPreferences.swift, beside the layout choices. Every other size is in Design/Metrics.swift, and the fixes that follow add the iPad's downloads sizes there. Nothing changes on screen.
The iPad's workspace never mounts ChromeLayer, where the phone keeps the download question, the Now line and the Downloads page. A site's first download asked a question nothing showed, so it never started. - A downloads button in the sidebar's foot, and in the toolbar while the sidebar is away and there is a file: its popover asks a site's first file, then lists every file. - Site Controls gains Downloaded Here and shows the Downloads page; its Downloads permission had the microphone's mark. - Share sheets point under the toolbar on iPad, and topController skips a popover on its way out, so Share from Site Controls presents.
…on iPad DownloadsUITests failed on iPad for four reasons, one in the app: - The popover's panel named itself tablet.downloads around the question too, and the card and panel made one element: the card lost its name, download.ask, so VoiceOver and the tests could not find it, though it was on screen. The panel's name now goes on its list only. - The test then looked for the phone's Now line and plate menu. On iPad it opens the downloads button's list and Site Controls instead; the button's VoiceOver value now says how many files its list holds, so a file's arrival can be waited on without opening the popover over the page, which would refuse the file (WebPool.canInteract). - Download Linked File was counted among every button whose label begins with Download, the iPad's Downloads button too. - Save to Photos waited up to nine seconds on a question iOS asks once per install, so on a simulator that had answered it the toast came and went unseen. It now waits for whichever comes first. A tap on the page as a popover finishes going can be UIKit's: the allowed site's second file is tapped once more if it isn't in after five seconds, as hold() does for a lost press.
A site's first file opens the downloads popover with its question. Once answered, the popover stayed up with the list, and the next tap on the page only closed it: tap a link again after Cancel and nothing came, and DownloadsUITests' second Report found no question. The phone's card goes as it is answered. A popover the question opened now closes with the answer; one the person opened, or that was open already, stays. The test waits for the popover's ground to go before it taps the page.
This was referenced Nov 25, 2026
[Medium impact] The PR appears safe to merge; no concrete actionable regression was found. SummaryAdds an iPad downloads popover for the first-download question and saved files.
Review was based on source inspection. iOS builds, simulator tests, and visual capture were not run in this Linux environment; the PR's reported checks were not independently verified. Reviews (1) · Last reviewed commit: "fix: the iPad's downloads popover a ques..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
On iPad, a site's first download now asks, then downloads. Before, it never started. A downloads button in the sidebar's foot shows the question, then lists every file. While the sidebar is hidden and there is a file, the button moves to the toolbar.
This is the downloads button the owner asked for on #1049. The Mac's ring and arrival animation come later, with the layout PR (approval asked in #1105).
Why it happened
The iPad's workspace never mounts
ChromeLayer, where the phone keeps the download question, the Now line and the Downloads page. A site's first download asked a question nothing showed, so it waited forever.topControllerskips a popover that is closing. Without this, Share from Site Controls didn't present.Design/Metrics.swiftwith every other size.Proof
TabletWorkspaceTests: with the iPad layout, a downloads button is on screen and the question reaches it. Fails onmain.DownloadsUITestscases now run and pass on iPad (TEST_RUNNER_YAB_MODEL=ipad). They used to wait for the iPhone's Now line and menu; on iPad they use the downloads button and Site Controls. The button reports how many files it holds, which the tests wait on.-YabState downloads.askanddownloads.now.main)Checked on
Checklist
main: one Duo layout test../design-check --base origin/mainandscripts/swift-parse-check --base origin/mainare clean.