-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor FXIOS-11147 [Tabs] Remove Legacy Tab Manager Part 1 #24436
Conversation
Client.app: Coverage: 32.34
Generated by 🚫 Danger Swift against 8564de7 |
Making this a draft PR. I need to fix some more tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 , just a small comment about a TODO
firefox-ios/Client/TabManagement/TabManagerImplementation.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my device for a while and no issues jumped out at me! So happy to see this cleaned up. 🙌
func testRemoveScreenshotWithImage() async throws { | ||
let subject = createSubject() | ||
addTabs(to: subject, count: 5) | ||
guard let tab = subject.tabs.first else { | ||
XCTFail("First tab was expected to be found") | ||
return | ||
} | ||
|
||
tab.setScreenshot(UIImage()) | ||
await subject.removeScreenshot(tab: tab) | ||
try await Task.sleep(nanoseconds: sleepTime) | ||
XCTAssertEqual(mockDiskImageStore.deleteImageForKeyCallCount, 1) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take it this test was no longer useful..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appeared to be testing the same functionality as testSaveScreenshotWithImage
since tabDidSetScreenshot
calls removeScreenshot
when a previous screenshot is set.
…-mobile#24436) * V1 - remove legacy tab manager and move existing functionality into tab manager * reorder * fix linting error * clean up * Rename TabManagerDelegate and move out of Legacy code * clean up todo
📜 Tickets
Jira ticket
Github issue
💡 Description
We no longer need the
LegacyTabManger
now that we have finished the Tab Tray refactor. The way that things are currently architected, there is still a lot of logic inLegacyTabManager
that needed to be moved in toTabManagerImplmentation
. This is part 1 of clean up to theTabManager
📝 Checklist
You have to check all boxes before merging
@Mergifyio backport release/v120
)