Closed Bug 1797565 Opened 3 years ago Closed 3 years ago

[1.4] Add UI for the Cookie Banner preferences in Focus

Categories

(Focus :: General, task, P2)

All
Android
task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: amejia, Assigned: giorga)

References

Details

(Whiteboard: [cookie-banner] [geckoview:m108] [geckoview:m109])

No description provided.
Summary: [1] Add UI for the Cookie Banner preferences in Focus → 1 Add UI for the Cookie Banner preferences in Focus
Summary: 1 Add UI for the Cookie Banner preferences in Focus → Add UI for the Cookie Banner preferences in Focus
Summary: Add UI for the Cookie Banner preferences in Focus → [1.4] Add UI for the Cookie Banner preferences in Focus
Depends on: 1796144
Severity: -- → N/A
Type: enhancement → task
Component: Privacy → General
Priority: -- → P2
Product: Fenix → Focus
Whiteboard: [cookie-banner] [geckoview:m108] → [cookie-banner] [geckoview:m108] [geckoview:m109]
Version: unspecified → 5.2
Depends on: 1800663
Assignee: nobody → giorga
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Settings part
This is the GeckoView interface for Cookie banner

 * Represents settings options for cookie banner handling.
enum class CookieBannerHandlingMode(val mode: Int) {
  
     * The feature is turned off and cookie banners are not handled
    DISABLED(0),

     * Reject cookies if possible
    REJECT_ALL(1),

     * Reject cookies if possible. If rejecting is not possible, accept cookies
    REJECT_OR_ACCEPT_ALL(2),
}

Synthesising the Figma design we will have the following 3 scenarios:

1)If the 'Auto cookie banner consent' is not checked 'Further reduce cooke banners' item will be invisible and value for Cookie banner conform GeckoView interface will be DISABLED(0).
2) If the 'Auto cookie banner consent' is checked 'Further reduce cooke banners' item will be visible and unchecked the value for Cookie banner conform GeckoView interface will be REJECT_ALL(1).
3)If the 'Auto cookie banner consent' is checked 'Further reduce cooke banners' item will be visible and checked the value for Cookie banner conform GeckoView interface will be REJECT_OR_ACCEPT_ALL(2).

PS : If the user unchecked 'Auto cookie banner consent' 'Further reduce cooke banners' will become unchecked .
When the user enters first in the App the value will be REJECT_ALL(1) .

When the cookie banner option is disabled, the summary text for preference will be Off, and when the cookie banner option is reject_or_accept_all or reject_all, it will be On.

The link to be used for SUMO is https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/auto-cookie-banner

Verified on a local debug build from 11/25 that:

  • the "Cookie Banner Reduction" option is available in Settings - Privacy & Security - Cookies and Site Data,
  • the "Further reduce cookie banners" option is displayed only when the "Cookie Banner Reduction" toggle is enabled,
  • the "Further reduce cookie banners" option can be checked/unchecked, and it is working correctly.

🎉
Thanks @miralobontiu and @Iorga!

You need to log in before you can comment on or make changes to this bug.