Closed Bug 1964730 Opened 4 months ago Closed 2 months ago

[composable toolbar] Configure the toolbar for custom tabs support

Categories

(Firefox for Android :: Toolbar, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- wontfix
firefox142 --- fixed

People

(Reporter: petru, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3][composable toolbar] )

Attachments

(6 files)

We should use the BrowserToolbarMiddleware used for configuring the toolbar in normal tabs as an example for configurin the toolbar UX for custom tabs also.
The resulted UX should fully match the current one for the toolbar View, including the support for custom theming based on the incoming custom tabs configuration.
(More details to be added later)

Summary: [composable toolbar] Configure the custom tabs → [composable toolbar] Configure the toolbar for custom tabs support
Whiteboard: fxdroid][group3][composable toolbar] → [fxdroid][group3][composable toolbar]

Going by the principle of least knowledge the context dependency that leads
to a long chain of dependencies readings can be replaced with the exact data
the system needs.

When in custom tabs nothing should happen when the url is clicked, not even
a haptic event.

Assignee: nobody → petru
Attachment #9487089 - Attachment description: WIP: Bug 1964730 - part 1 - Code cleanup: Refactor out context dependency of CookieBannersStorage.getCookieBannerUIMode → Bug 1964730 - part 1 - Code cleanup: Refactor out context dependency of CookieBannersStorage.getCookieBannerUIMode r=#android-reviewers
Status: NEW → ASSIGNED
Attachment #9487090 - Attachment description: WIP: Bug 1964730 - part 2 - Allow the url in the composable toolbar to be configured without click handling → Bug 1964730 - part 2 - Allow the url in the composable toolbar to be configured without click handling r=#android-reviewers
Attachment #9487091 - Attachment description: WIP: Bug 1964730 - part 3 - Configure the composable toolbar in custom tabs → Bug 1964730 - part 3 - Configure the composable toolbar in custom tabs r=#android-reviewers

For custom tabs Fenix might want to show buttons with custom drawables
with default tinting enabled or disabled.

Attachment #9487815 - Attachment description: Bug 1964730 - part 4 - Support custom tabs custom colors r=#android-reviewers → Bug 1964730 - part 6 - Support custom tabs custom colors r=#android-reviewers
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3010472d6e90 https://hg.mozilla.org/integration/autoland/rev/11f1927f795b part 1 - Code cleanup: Refactor out context dependency of CookieBannersStorage.getCookieBannerUIMode r=android-reviewers,tchoh,skhan
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch

We have a few more things to land.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/49e4e2364616 https://hg.mozilla.org/integration/autoland/rev/9f93b2bd0ac1 part 2 - Allow the url in the composable toolbar to be configured without click handling r=android-reviewers,tchoh https://github.com/mozilla-firefox/firefox/commit/21ddb83c8eac https://hg.mozilla.org/integration/autoland/rev/102109dfef21 part 3 - Configure the composable toolbar in custom tabs r=android-reviewers,skhan https://github.com/mozilla-firefox/firefox/commit/ec230891ddf4 https://hg.mozilla.org/integration/autoland/rev/b28f8c1cf241 part 4 - Necessary composable toolbar updates to support Fenix buttons r=android-reviewers,Roger https://github.com/mozilla-firefox/firefox/commit/fecd20910ae4 https://hg.mozilla.org/integration/autoland/rev/7c5f0062c211 part 5 - Use custom back and action buttons if configured for the custom tab r=android-reviewers,Roger https://github.com/mozilla-firefox/firefox/commit/15b89ec032a0 https://hg.mozilla.org/integration/autoland/rev/a98301eace8c part 6 - Support custom tabs custom colors r=android-reviewers,007
Regressions: 1973744
No longer regressions: 1973744
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: