Closed Bug 1617611 Opened 4 years ago Closed 1 year ago

Fix all the tests broken by "cookies sameSite=lax by default"

Categories

(Core :: Networking: Cookies, task, P3)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: baku, Unassigned)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(6 files)

Bug 1604212 disables "cookie sameSite=lax by default" feature in mochitests, and xpcshell-tests. Before enabling this feature in release, we need to fix the tests.

Summary: Fix all the tests related to cookies sameSite=lax by default → Fix all the tests broken by "cookies sameSite=lax by default"
Priority: -- → P3
Whiteboard: [necko-triaged]

This priority level concerns me. Tests were broken by bug 1604212, and fixed by prefing off that change for those tests. The last time a feature was turned on, but disabled in our tests, it broke an api. That caused me to start watching all changes to any extension related code in phab.

I'd prefer to see this as a P1, at least to the extent that we verify no extension api is broken.

Flags: needinfo?(dd.mozilla)
Flags: needinfo?(amarchesini)

Sorry this is my bad, I sometime put work by other teams to be P3 for necko, but this one is not that.

Flags: needinfo?(dd.mozilla)
Priority: P3 → P1

Assigning this to you. If this is a meta bug please mark as a [meta]. If someone else is going to work on it please reassign. If it should not be P1 please reclassify it.

(This is a P1 bug so we need an assignee).

Assignee: nobody → amarchesini
Assignee: amarchesini → ngogge
Status: NEW → ASSIGNED
Flags: needinfo?(amarchesini)

Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Attachment #9247091 - Attachment description: WIP: Bug 1617611: Enable SameSite=Lax by default in mochitests. r=ckerschb! → Bug 1617611: Enable SameSite=Lax by default in mochitests. r=ckerschb!
Attachment #9247092 - Attachment description: WIP: Bug 1617611: Annotate each failing test individually. r=ckerschb! → Bug 1617611: Annotate each failing test individually. r=ckerschb!
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/c3352f4b3681
Enable SameSite=Lax by default in mochitests. r=ckerschb
https://hg.mozilla.org/integration/autoland/rev/fdb2c6bfc0c6
Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/849b1fc5760f
Enable SameSite=Lax by default in mochitests. r=ckerschb
https://hg.mozilla.org/integration/autoland/rev/fb19eba784ee
Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0e09e99a2fd6
Port bug 1617611 - Annotate the tests broken by "cookies sameSite=lax by default". rs=bustage-fix

The tests haven't been fixed yet, but specific preferences for cookies have been set for individual tests that are failing with lax by default. As such I assume this bug should not be closed yet.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 96 Branch → ---
Flags: needinfo?(ngogge)
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/autoland/rev/b1ef9a4454c3
Enable SameSite=Lax by default in xpcshell tests. r=ckerschb
https://hg.mozilla.org/integration/autoland/rev/dbfe6b7dcadc
Annotate each failing xpcshell test individually. r=ckerschb,extension-reviewers,robwu
Keywords: leave-open
Regressions: 1742600

With all tests being correctly annotated and all patches belonging to this bug landed (see comment 9 and comment 15). I am removing the leave-open keyword and mark this bug as fixed.

Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Keywords: leave-open
Resolution: --- → FIXED

Which bug will be used to actually fix the broken tests? When I was asking to add a comment next to the disabled Remote Protocol browser chrome tests this bug was mentioned. So I'm wondering about the next steps. Thanks.

Flags: needinfo?(ckerschb)

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #17)

Sorry for the back and forth, we will keep this bug open to track the fixing. As you mentioned all the comments added in the patches reference this bug, so it makes sense to keep it open.

Status: RESOLVED → REOPENED
Flags: needinfo?(ckerschb)
Keywords: leave-open
Resolution: FIXED → ---
Regressions: 1742822
No longer blocks: samesitelax
See Also: → samesitelax
Depends on: 1743003

The leave-open keyword is there and there is no activity for 6 months.
:dragana, maybe it's time to close this bug?
For more information, please visit auto_nag documentation.

Flags: needinfo?(dd.mozilla)

The bug assignee didn't login in Bugzilla in the last months and this bug has priority 'P1'.
:dragana, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: n.goeggi → nobody
Flags: needinfo?(dd.mozilla)

Christoph, can you find someone to finish this?

Flags: needinfo?(dd.mozilla)
Flags: needinfo?(ckerschb)

(In reply to Dragana Damjanovic [:dragana] from comment #22)

Christoph, can you find someone to finish this?

Tom, is this something we even want to land after all? Or can we close this one out?

Flags: needinfo?(ckerschb) → needinfo?(tschuster)

This doesn't seem close to being done at all to me. There are still at least 50 tests that disable laxByDefault. For a lot of these however we already disable other cookie prefs as well, so fixing just laxByDefault doesn't seem too important to me. We can keep this in the backlog for now.

Assignee: nobody → tschuster
Flags: needinfo?(tschuster)

This turned out to be more complicated than expected, because:

  • SameSite=None requires https://
  • Many test were using the mochi.test domain, which is not reachable via https
Severity: normal → S3
Pushed by tschuster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/776e34d36cb6
Fix all tests using laxByDefault=false under browser/. r=freddyb
Assignee: tschuster → nobody

Is there anything else we need to do here? Does this still need to be a P1?

Flags: needinfo?(ckerschb)

(In reply to Valentin Gosu [:valentin] (he/him) from comment #28)

Is there anything else we need to do here? Does this still need to be a P1?

I don't think so, though Freddy is the better person to answer here.

Flags: needinfo?(ckerschb) → needinfo?(fbraun)

No. We are not going to ship "lax by default" anytime soon. OK to close this or down-prioritize.

Flags: needinfo?(fbraun)
Priority: P1 → P3
Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: