Closed Bug 1858370 Opened 2 years ago Closed 2 years ago

"Clear cookies and site data" from the address bar does not work

Categories

(Firefox for Android :: General, defect)

Firefox 118
All
Android
defect

Tracking

()

VERIFIED FIXED
123 Branch
Tracking Status
firefox121 --- wontfix
firefox122 --- wontfix
firefox123 --- verified

People

(Reporter: mrs_ophelia, Assigned: jackyzy823)

References

Details

(Whiteboard: [qa-triaged])

Attachments

(3 files)

Steps to reproduce:

  • Open a website and log into your account
  • Tap the padlock icon in the address bar
  • Tap "Clear cookies and site data" menu item
  • Tap the Delete button in the dialog
  • Reload the page

Actual results:

You are still logged in.

Expected results:

You should have been logged out.

This happens on all the websites I tried.

It is probably the same issue as in bug 1810374, but I had no permissions to comment on it.

It is not a duplicate of bug 1810311, as the latter is about redirection making it impossible to invoke the cookie deletion on the initial host name.
Your only option to clear the cookies for such websites is to clean everything from Settings.
This issue, OTOH, occurs even for websites that do no redirection, e.g. community.signalusers.org

My user agent is: Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/118.0 Firefox/118.0

Hi, thanks for reporting. I was not able to reproduce the issue described issue on the latest Nightly 120.0a1 (from 16.10.2023) and Firefox 118.2.0 with Google Pixel 7 PRO (Android 14) and OnePlus A3000 (Android 6)

In order to further look into the issue you're experiencing, could you please provide the following additional information:

Details regarding the Device used and Android version;
Is this bug reproducible on the latest Nightly?

Thanks!

Flags: needinfo?(mrs_ophelia)
Whiteboard: [qa-triaged]

(In reply to Adina Petridean from comment #1)

Details regarding the Device used and Android version;
Is this bug reproducible on the latest Nightly?

The device is Xiaomi Redmi Note 11 Pro, OTA-upgraded to MIUI Global 14.0.3 (Android 13 TP1A.220624.014).

The issue is reproducible with Firefox 118.2.0 and Firefox Nightly 120.0a1.

Flags: needinfo?(mrs_ophelia)

Thank you, mrs_ophelia, for your prompt response. Could you please provide a video with this issue?

Flags: needinfo?(mrs_ophelia)
Flags: needinfo?(mrs_ophelia)

The video is with a fresh install of Nightly from Oct 23, no extensions, no changes to settings other than disabling the homepage stuff (so I can "bookmark" the website and record a shorter video, without unnecessary fiddling).

If you want, I can record a video showing the aforementioned details.

I'm unable to reproduce this issue, but considering the provided video and details, I'm opening this issue as it seems to be specific to certain devices.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to Adina Petridean from comment #6)

I'm unable to reproduce this issue, but considering the provided video and details, I'm opening this issue as it seems to be specific to certain devices.

I can. On Fenix 120.1.1, I log in to addons.mozilla.org, then touch "Clear cookies and site data", then refresh the page, it is still log in. This bug not only happens on regular browsing mode, but also private browsing mode.

I can reproduce this error too, on several phone models. Can a more detailed check be made on this problem?

Flags: needinfo?(jonalmeida942)
Flags: needinfo?(cpeterson)
Flags: needinfo?(apetridean)

@Tom25519, thank you! I initially tried to reproduce this issue on Facebook, Instagram, and Twitter without success. However, after testing on addons.mozilla.org, I can confirm the issue on the latest Nightly 123.0a1 from December 22, 2023, using a Motorola G9 Plus (Android 11).

Flags: needinfo?(apetridean)

STR:

Vist https://a.setcookie.net/ and set 5 cookies by "Submit Query" with options

  1. Name 1_unspec , Cookie Domain: unspecified
  2. Name 2_base , Cookie Domain: setcookie.net
  3. Name 3_dotbase Cookie Domain: .setcookie.net
  4. Name 4_sub Cookie Domain: a.setcookie.net
  5. Name 5_dotsub Cookie Domain: .a.setcookie.net

(Other options keep default)

Then click "Icon" in the address bar , click "Clear Cookies and site data" , then click "DELETE".
Refresh the page to observe the remain cookies ( 1_unspec , 4_sub , 5_dotsub)


You can do further test under https://a.b.setcookie.net
Remaining cookies: ( 1_unspec , 4_b , 5_dot_b , 6_a_b , 7_dot_a_b )


It looks like only base domain's cookie is cleared.

Thanks again jackyzy! The patch has been approved, but let's land it next week to avoid disruptions over the holiday weekend.

Updated the tracking flags so this doesn't get lost.

Flags: needinfo?(jonalmeida942)
Flags: needinfo?(cpeterson)
Assignee: nobody → jackyzy823
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

The patch landed in nightly and beta is affected.
:jackyzy823, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox122 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jackyzy823)
Flags: needinfo?(jackyzy823)
Flags: qe-verify+

Verified as fixed on the latest Nightly -123.0a1 from 17.01.2024 with Motorola G9 Plus (Android 11) and OnePlus A3000 (Android 6).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1875048
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: