Closed Bug 1909918 Opened 2 years ago Closed 2 years ago

We should not run WPTs with laxByDefault pref set to true

Categories

(Core :: Networking: Cookies, defect)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(1 external file)

We run all the cookies/samesite WPTs with the network.cookie.sameSite.laxByDefault pref set to true, even if this pref is set to false by default in firefox. The result is a misperception of what works and what does not in our cookie implementation. In fact, we have many more failures than we see in the WPT reports, and some of them can cause web-compact issues.

Assignee: nobody → amarchesini
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2ed68b56f8b7 Run WPT cookie tests with network.cookie.sameSite.laxByDefault set to false, r=edgul

Backed out for causing wpt failures on setcookie-lax.https.html

[task 2024-07-26T12:14:14.645Z] 12:14:14     INFO - TEST-PASS | /cookies/samesite/setcookie-lax.https.html | Same-site window should be able to set `SameSite=Lax` or `SameSite=Strict` cookies. 
[task 2024-07-26T12:14:14.645Z] 12:14:14     INFO - TEST-UNEXPECTED-FAIL | /cookies/samesite/setcookie-lax.https.html | Cross-site window shouldn't be able to set `SameSite=Lax` or `SameSite=Strict` cookies. - assert_equals: `samesite_unspecified=0.19011952734398563` in `document.cookie` expected false but got true
[task 2024-07-26T12:14:14.645Z] 12:14:14     INFO - assert_dom_cookie@https://web-platform.test:8443/cookies/resources/cookie-helper.sub.js:53:16
[task 2024-07-26T12:14:14.645Z] 12:14:14     INFO - @https://web-platform.test:8443/cookies/samesite/setcookie-lax.https.html:29:22
[task 2024-07-26T12:14:14.708Z] 12:14:14     INFO - TEST-OK | /cookies/samesite/setcookie-lax.https.html | took 2445ms
[task 2024-07-26T12:14:15.482Z] 12:14:15     INFO - STDOUT: cleanup aborted: args: /builds/worker/fetches/android-sdk-linux/platform-tools/adb wait-for-device shell rm /data/data/org.mozilla.geckoview.test_runner/files/mozilla/profiles.ini; echo adb_returncode=$?, exitcode: 1, stdout: rm: /data/data/org.mozilla.geckoview.test_runner/files/mozilla/profiles.ini: No such file or directory
[task 2024-07-26T12:14:15.483Z] 12:14:15     INFO - Closing logging queue
[task 2024-07-26T12:14:15.483Z] 12:14:15     INFO - queue closed
[task 2024-07-26T12:14:15.495Z] 12:14:15     INFO - Setting up ssl
[task 2024-07-26T12:14:15.630Z] 12:14:15     INFO - certutil | b''
[task 2024-07-26T12:14:15.680Z] 12:14:15     INFO - certutil | b''
[task 2024-07-26T12:14:15.689Z] 12:14:15     INFO - certutil | b'\nCertificate Nickname                                         Trust Attributes\n                                                             SSL,S/MIME,JAR/XPI\n\nweb-platform-tests                                           CT,, \n'
[task 2024-07-26T12:14:20.989Z] 12:14:20     INFO - STDOUT: timed out waiting for profiles.ini
[task 2024-07-26T12:14:21.102Z] 12:14:21     INFO - adb Granting important runtime permissions to org.mozilla.geckoview.test_runner
[task 2024-07-26T12:14:22.256Z] 12:14:22     INFO - adb launch_application: am start -W -n org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.TestRunnerActivity -a android.intent.action.MAIN --es env0 MOZ_CRASHREPORTER=1 --es env1 MOZ_CRASHREPORTER_NO_REPORT=1 --es env2 MOZ_CRASHREPORTER_SHUTDOWN=1 --es env3 MOZ_HIDE_RESULTS_TABLE=1 --es env4 MOZ_IN_AUTOMATION=1 --es env5 MOZ_LOG=signaling:3,mtransport:4,DataChannel:4,jsep:4 --es env6 R_LOG_LEVEL=6 --es env7 R_LOG_DESTINATION=stderr --es env8 R_LOG_VERBOSE=1 --es env9 MOZ_PROCESS_LOG=/tmp/tmp9dbs8940pidlog --es env10 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es arg0 -no-remote --es arg1 -profile --es arg2 /data/local/tmp/test_root/profile --es arg3 --marionette --es arg4 about:blank
[task 2024-07-26T12:14:23.755Z] 12:14:23     INFO - Starting runner
[task 2024-07-26T12:14:26.529Z] 12:14:26     INFO - TEST-START | /cookies/samesite/setcookie-navigation.https.html
Flags: needinfo?(amarchesini)
Flags: needinfo?(amarchesini)
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8775a2c41f7 Run WPT cookie tests with network.cookie.sameSite.laxByDefault set to false, r=edgul
Backout by archaeopteryx@coole-files.de: https://hg.mozilla.org/mozilla-central/rev/b462e22c4468 Backed out changeset 2ed68b56f8b7 for causing wpt failures on setcookie-lax.https.html. CLOSED TREE.
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/56ac5c260f92 Run WPT cookie tests with network.cookie.sameSite.laxByDefault set to false, r=edgul CLOSED TREE

Comment 5 is the backout from comment 3 grafted with a new commit hash to mozilla-central to enable a merge of autoland to central. When it got merged back, it would have reverted the reland from comment 4. That's why it got applied again with the merge from central to autoland in comment 6.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: