Closed Bug 1880539 Opened 1 year ago Closed 11 months ago

Refactor firefoxview/syncedtabs.mjs to make business logic more reusable

Categories

(Firefox :: Sidebar, task)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: sclements, Assigned: jsudiaman)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-firefox-view])

Attachments

(1 file)

We have shared business logic already in the firefox-view-tabs-setup-manager.sys.mjs but there is more we can potentially extract to be able to create new synced tabs component that will render slightly different lists in sidebar vs Tabs from Other Devices and Recent Browsing in firefoxview. We may be able to use a reactive controller or context in lit. We ultimately want to end up with SyncedTabsSidebar extends MozLitElement whereas SyncedTabsView extends ViewPage, and (potentially) SyncedTabsRecentBrowsing extends ViewPage.

Summary: Refactor syncedtabs.mjs to make business logic more reusable → Refactor firefoxview/syncedtabs.mjs to make business logic more reusable

While you're in the syncedtabs.mjs file, if you can remove this dead code that'd be appreciated.

Attachment #9390241 - Attachment description: WIP: Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable → Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable #fxview-reviewers!
Attachment #9390241 - Attachment description: Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable #fxview-reviewers! → Bug 1880539 - Refactor firefoxview/syncedtabs.mjs to make business logic more reusable r?#fxview-reviewers!
Pushed by jsudiaman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2092d43bfaae Refactor firefoxview/syncedtabs.mjs to make business logic more reusable r=fxview-reviewers,nsharpley,sclements
Pushed by jsudiaman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67e5ff4a7d46 Refactor firefoxview/syncedtabs.mjs to make business logic more reusable r=fxview-reviewers,nsharpley,sclements
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
Flags: needinfo?(jsudiaman)
Regressions: 1887647
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: