Closed Bug 1688221 Opened 3 years ago Closed 3 years ago

Perma toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js | localStorage for https://example.org has expected value testKey=thirdParty - when Gecko 86 switches to Late Beta on 2021-02-05

Categories

(Core :: Storage: StorageManager, defect, P2)

defect

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- unaffected
firefox85 --- unaffected
firefox86 + fixed
firefox87 --- verified

People

(Reporter: aryx, Assigned: pbz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

central-as-late-beta simulation
Failure log

[task 2021-01-22T13:24:01.260Z] 13:24:01 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js | localStorage for https://example.com has expected value testKey=firstParty -
[task 2021-01-22T13:24:01.261Z] 13:24:01 INFO - Testing: Unpartitioned localStorage has not changed
[task 2021-01-22T13:24:01.262Z] 13:24:01 INFO - Buffered messages finished
[task 2021-01-22T13:24:01.265Z] 13:24:01 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js | localStorage for https://example.org has expected value testKey=thirdParty -
[task 2021-01-22T13:24:01.265Z] 13:24:01 INFO - Stack trace:
[task 2021-01-22T13:24:01.266Z] 13:24:01 INFO - chrome://mochikit/content/browser-test.js:test_ok:1323
[task 2021-01-22T13:24:01.266Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:testHasLocalStorageEntry:281
[task 2021-01-22T13:24:01.266Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:localStorageClearThirdParty/<:516
[task 2021-01-22T13:24:01.266Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:runClearSiteDataTest:169
[task 2021-01-22T13:24:01.271Z] 13:24:01 INFO - Testing: Partitioned localStorage for HOST_B (HOST_A) has been cleared
...
[task 2021-01-22T13:24:01.670Z] 13:24:01 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js | localStorage for https://example.org (partitioned under https://example.com) has expected value testKey=thirdPartyPartitioned -
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - Testing: Partitioned localStorage for HOST_A (HOST_B) has not changed
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js | localStorage for https://example.com (partitioned under https://example.org) has expected value testKey=thirdPartyPartitioned2 -
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - Stack trace:
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - chrome://mochikit/content/browser-test.js:test_ok:1323
[task 2021-01-22T13:24:01.671Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:testHasLocalStorageEntry:281
[task 2021-01-22T13:24:01.672Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:localStorageClearFirstParty/<:564
[task 2021-01-22T13:24:01.672Z] 13:24:01 INFO - chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js:runClearSiteDataTest:169
[task 2021-01-22T13:24:01.674Z] 13:24:01 INFO - Cleaning up.
[task 2021-01-22T13:24:01.755Z] 13:24:01 INFO - Leaving test bound localStorageClearFirstParty

Late Beta doesn't use the next generation storage.

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

I believe this fails because the legacy storage implementation that we ship to release only clears by host (instead of full origin). I've filed Bug 1688665. To unblock this for now I suggest we set dom.storage.next_gen=true for the test.
Currently testing to verify this fixes the test failure.

See Also: → 1688665
Attachment #9199046 - Attachment is obsolete: true
Severity: -- → S3
Priority: -- → P2
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99392b9e0290
Skip localStorage clear-site-data tests for legacy localStorage implementation. r=johannh
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

The patch landed in nightly and beta is affected.
:pbz, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(pbz)

Comment on attachment 9199253 [details]
Bug 1688221 - Skip localStorage clear-site-data tests for legacy localStorage implementation. r=johannh!

Beta/Release Uplift Approval Request

  • User impact if declined: No direct user impact, test failure.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Test change only
  • String changes made/needed:
Flags: needinfo?(pbz)
Attachment #9199253 - Flags: approval-mozilla-beta?

Comment on attachment 9199253 [details]
Bug 1688221 - Skip localStorage clear-site-data tests for legacy localStorage implementation. r=johannh!

Approved for 86 beta 5, thanks.

Attachment #9199253 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: