Open Bug 1720133 Opened 4 years ago Updated 1 year ago

Frequent /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | CSP: sandbox allow-popups allow-scripts allow-same-origin; CSP sandbox popup navigate to Cross-Origin-Opener-Policy document should work - assert_unreached: Navigation

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- disabled
firefox90 --- unaffected
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: intermittent-failure, leave-open, regression, Whiteboard: [retriggered][stockwell unknown][necko-triaged])

Attachments

(1 file)

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


[task 2021-07-12T10:47:48.188Z] 10:47:48     INFO - TEST-START | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html
[task 2021-07-12T10:47:48.193Z] 10:47:48     INFO - Closing window 6450df74-cd62-4e27-9239-2076c055d5bd
[task 2021-07-12T10:47:48.324Z] 10:47:48     INFO - Closing window 7d794caf-b6ae-4d8b-8d51-60acfdf83dbc
[task 2021-07-12T10:47:48.433Z] 10:47:48     INFO - PID 9385 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-12T10:47:48.433Z] 10:47:48     INFO - PID 9385 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-12T10:47:49.722Z] 10:47:49     INFO - PID 9385 | -----------------------------------------------------
[task 2021-07-12T10:47:49.724Z] 10:47:49     INFO - PID 9385 | Suppressions used:
[task 2021-07-12T10:47:49.724Z] 10:47:49     INFO - PID 9385 |   count      bytes template
[task 2021-07-12T10:47:49.724Z] 10:47:49     INFO - PID 9385 |      14        448 nsComponentManagerImpl
[task 2021-07-12T10:47:49.724Z] 10:47:49     INFO - PID 9385 |       2        288 libfontconfig.so
[task 2021-07-12T10:47:49.724Z] 10:47:49     INFO - PID 9385 | -----------------------------------------------------
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 | -----------------------------------------------------
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 | Suppressions used:
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 |   count      bytes template
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 |      14        448 nsComponentManagerImpl
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 |       2        288 libfontconfig.so
[task 2021-07-12T10:47:49.856Z] 10:47:49     INFO - PID 9385 | -----------------------------------------------------
[task 2021-07-12T10:47:53.906Z] 10:47:53     INFO - 
[task 2021-07-12T10:47:53.906Z] 10:47:53     INFO - TEST-UNEXPECTED-FAIL | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | CSP: sandbox allow-popups allow-scripts allow-same-origin; CSP sandbox popup navigate to Cross-Origin-Opener-Policy document should work - assert_unreached: Navigation from CSP sandbox to COOP document failed Reached unreachable code
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - @https://web-platform.test:8443/html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html:34:25
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - Test.prototype.step_timeout/<@https://web-platform.test:8443/resources/testharness.js:2148:22
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - Test.prototype.step@https://web-platform.test:8443/resources/testharness.js:2087:25
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - Test.prototype.step_func/<@https://web-platform.test:8443/resources/testharness.js:2114:35
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - .
[task 2021-07-12T10:47:53.907Z] 10:47:53     INFO - TEST-OK | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | took 5718ms
Summary: Intermittent /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | CSP: sandbox allow-popups allow-scripts allow-same-origin; CSP sandbox popup navigate to Cross-Origin-Opener-Policy document should work - assert_unreached: Navigation → Frequent /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | CSP: sandbox allow-popups allow-scripts allow-same-origin; CSP sandbox popup navigate to Cross-Origin-Opener-Policy document should work - assert_unreached: Navigation
Has Regression Range: --- → yes

There are 36 total failures in the last 7 days on

[task 2021-07-16T15:51:13.802Z] 15:51:13 INFO - TEST-START | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html
[task 2021-07-16T15:51:13.851Z] 15:51:13 INFO - Closing window 4e222ad2-4389-4375-a78a-6e99e41f8823
[task 2021-07-16T15:51:13.955Z] 15:51:13 INFO - PID 9250 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-16T15:51:13.957Z] 15:51:13 INFO - PID 9250 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-16T15:51:15.311Z] 15:51:15 INFO - PID 9250 | -----------------------------------------------------
[task 2021-07-16T15:51:15.312Z] 15:51:15 INFO - PID 9250 | Suppressions used:
[task 2021-07-16T15:51:15.312Z] 15:51:15 INFO - PID 9250 | count bytes template
[task 2021-07-16T15:51:15.312Z] 15:51:15 INFO - PID 9250 | 14 448 nsComponentManagerImpl
[task 2021-07-16T15:51:15.312Z] 15:51:15 INFO - PID 9250 | 2 288 libfontconfig.so
[task 2021-07-16T15:51:15.313Z] 15:51:15 INFO - PID 9250 | -----------------------------------------------------
[task 2021-07-16T15:51:19.237Z] 15:51:19 INFO -
[task 2021-07-16T15:51:19.237Z] 15:51:19 INFO - TEST-UNEXPECTED-FAIL | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | CSP: sandbox allow-popups allow-scripts allow-same-origin; CSP sandbox popup navigate to Cross-Origin-Opener-Policy document should work - assert_unreached: Navigation from CSP sandbox to COOP document failed Reached unreachable code
[task 2021-07-16T15:51:19.238Z] 15:51:19 INFO - @https://web-platform.test:8443/html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html:34:25
[task 2021-07-16T15:51:19.238Z] 15:51:19 INFO - Test.prototype.step_timeout/<@https://web-platform.test:8443/resources/testharness.js:2148:22
[task 2021-07-16T15:51:19.238Z] 15:51:19 INFO - Test.prototype.step@https://web-platform.test:8443/resources/testharness.js:2087:25
[task 2021-07-16T15:51:19.238Z] 15:51:19 INFO - Test.prototype.step_func/<@https://web-platform.test:8443/resources/testharness.js:2114:35
[task 2021-07-16T15:51:19.238Z] 15:51:19 INFO - .
[task 2021-07-16T15:51:19.239Z] 15:51:19 INFO - TEST-OK | /html/cross-origin-opener-policy/coop-csp-sandbox-navigate.https.html | took 5438ms

Emilio, please take a look.

Flags: needinfo?(emilio)
Whiteboard: [retriggered][stockwell needswork:owner]

The first subtest is already annotated as failing on all platforms. My
patch seems to have changed timing in a way such that the second test
also fails in non-macOS platforms.

I tried to reproduce the failure locally and investigate a bit more, but
couldn't. The test doesn't seem particularly racy, off-hand, other than
it using a timer which at best should make the test unexpectedly pass,
not unexpectedly fail...

The other thing that looked suspicious is that the test was waiting for
the load event of the main window, not of the popup it opens (which I
think might be unintended). However that also doesn't make the
failure reproduce here.

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

Do you know who knows the COOP code and could look into this properly? As per the above this was flakily failing before my patch too, but my patch changed timing by correctly activating the OOP iframe's refresh driver, which seemed to make the load arrive before the timeout much more often on automation.

Assignee: emilio → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(annevk)
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25f7e1613da5 Mark a test as flakily failing in all platforms, not just macOS. r=smaug

Nika and Valentin can help or nominate someone.

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(nika)
Flags: needinfo?(annevk)

Moving to a component so experts can keep closer eye on this. Re-set the severity to get their triage attention.

Blocks: 1595848
Severity: S4 → --
Component: DOM: Core & HTML → Networking
Severity: -- → S4
Priority: -- → P3

This failure only happens on ESR.

Flags: needinfo?(valentin.gosu)
Whiteboard: [retriggered][stockwell unknown] → [retriggered][stockwell unknown][necko-triaged]
Flags: needinfo?(nika)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: