Closed Bug 1736934 Opened 3 years ago Closed 2 years ago

Intermittent dom/media/test/test_mixed_principals.html | Should not be able to readback after error - got true, expected false

Categories

(Core :: Audio/Video: Playback, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1776940

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Filed by: imoraru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=355500602&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Tkwtc26bQuKT4FYAkB4P_g/runs/0/artifacts/public/logs/live_backing.log


[task 2021-10-20T22:52:25.663Z] 22:52:25     INFO - TEST-START | dom/media/test/test_mixed_principals.html
[task 2021-10-20T22:52:26.720Z] 22:52:26     INFO - GECKO(7112) | [Parent 1336, Main Thread] WARNING: NS_ENSURE_TRUE(mCacheEntry) failed: file /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:4662
[task 2021-10-20T22:52:26.733Z] 22:52:26     INFO - GECKO(7112) | [Parent 1336, Main Thread] WARNING: NS_ENSURE_TRUE(mCacheEntry) failed: file /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:4662
[task 2021-10-20T22:52:26.762Z] 22:52:26     INFO - TEST-INFO | started process screenshot
[task 2021-10-20T22:52:28.879Z] 22:52:28     INFO - TEST-INFO | screenshot: exit 0
[task 2021-10-20T22:52:28.881Z] 22:52:28     INFO - Buffered messages logged at 22:52:25
[task 2021-10-20T22:52:28.882Z] 22:52:28     INFO - TEST-PASS | dom/media/test/test_mixed_principals.html | A valid string reason is expected 
[task 2021-10-20T22:52:28.882Z] 22:52:28     INFO - TEST-PASS | dom/media/test/test_mixed_principals.html | Reason cannot be empty 
[task 2021-10-20T22:52:28.882Z] 22:52:28     INFO - Loading from http://mochi.test:8888/tests/dom/media/test/midflight-redirect.sjs?resource=pixel_aspect_ratio.mp4&type=video/mp4
[task 2021-10-20T22:52:28.883Z] 22:52:28     INFO - Loading from http://example.org/tests/dom/media/test/midflight-redirect.sjs?resource=pixel_aspect_ratio.mp4&type=video/mp4
[task 2021-10-20T22:52:28.883Z] 22:52:28     INFO - Buffered messages finished
[task 2021-10-20T22:52:28.884Z] 22:52:28     INFO - TEST-UNEXPECTED-FAIL | dom/media/test/test_mixed_principals.html | Should not be able to readback after error - got true, expected false
[task 2021-10-20T22:52:28.884Z] 22:52:28     INFO -     SimpleTest.is@SimpleTest/SimpleTest.js:500:14
[task 2021-10-20T22:52:28.884Z] 22:52:28     INFO -     runTest/</<@dom/media/test/test_mixed_principals.html:61:13
[task 2021-10-20T22:52:28.885Z] 22:52:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-10-20T22:52:28.885Z] 22:52:28     INFO - TEST-UNEXPECTED-FAIL | dom/media/test/test_mixed_principals.html | Should not be able to readback after error - got true, expected false
[task 2021-10-20T22:52:28.885Z] 22:52:28     INFO -     SimpleTest.is@SimpleTest/SimpleTest.js:500:14
[task 2021-10-20T22:52:28.885Z] 22:52:28     INFO -     runTest/</<@dom/media/test/test_mixed_principals.html:61:13
[task 2021-10-20T22:52:28.886Z] 22:52:28     INFO - GECKO(7112) | MEMORY STAT | vsize 2103843MB | vsizeMaxContiguous 66171601MB | residentFast 120MB | heapAllocated 17MB
[task 2021-10-20T22:52:28.886Z] 22:52:28     INFO - TEST-OK | dom/media/test/test_mixed_principals.html | took 1158ms
[task 2021-10-20T22:52:28.887Z] 22:52:28     INFO - TEST-START | dom/media/test/test_mozHasAudio.html
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

The same failure symptoms can be induced by adding "redirectAt=2" to the video url.

This forces two loads to complete before reaching HAVE_METADATA.
The video is then drawn with a "No video supported format and MIME type found" message, which can be read back fine because it contains no cross-origin data.

In the unmodified test, the length of the first response is 451510 bytes, which is slightly less than the 512000 'media.cache_size'.
I don't know whether or not having 'media.cache_size' small enough might prevent the second fetch being issued.

In the redirect-to-cross-origin case, we block the cross-origin load, so I don't know why we need to taint reading of the same-origin content.

Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.