Opened 3 years ago

Last modified 23 months ago

#19575 new defect

Test for privacy.thirdparty.isolate fails with a timeout

Reported by: boklm Owned by: cypherpunks
Priority: Medium Milestone:
Component: Applications/Quality Assurance and Testing Version:
Severity: Normal Keywords: tbb-test-failures
Cc: arthuredelstein Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The test in dom/tests/mochitest/localstorage/test_localStorageByFirstParty.html is failing with a timeout error.

In the logs we have:

1 INFO TEST-START | dom/tests/mochitest/localstorage/test_localStorageByFirstParty.html
JavaScript error: http://example.net/tests/dom/tests/mochitest/localstorage/firstPartyInner.html?domain=example.com&prescribed=test1&pref=0&host=http%3A%2F%2Fexample.com, line 10: SecurityError: The operation is insecure.

Line 10 in firstPartyInner.html is:

found = localStorage.getItem("firstPartyTest"),

I think the reason might be https://bugzilla.mozilla.org/show_bug.cgi?id=536509 which now prevents localStorage access from an iframe when third-party cookies is disabled.

Child Tickets

Change History (3)

comment:1 Changed 3 years ago by gk

Component: Applications/Tor BrowserApplications/Quality Assurance and Testing
Keywords: tbb-test-failures added
Owner: changed from tbb-team to cypherpunks

comment:2 Changed 3 years ago by gk

Yes, that's due to https://bugzilla.mozilla.org/show_bug.cgi?id=536509. I think what we want to do is having kind of 2 tests:

1) The test running while e.g. third party cookies are enabled (to make sure we can test our isolation technique.
2) The test catching the exception in a way that it succeeds as long as it throws where it throws right now.

comment:3 Changed 23 months ago by cypherpunks

Does 1) work now?

Note: See TracTickets for help on using tickets.