Closed Bug 1631938 Opened 5 years ago Closed 5 years ago

content-security-policy/frame-src/frame-src-same-document-meta.html fails with TIMEOUT

Categories

(Core :: DOM: Security, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: jmaher, Assigned: jgraham)

References

Details

(Whiteboard: [domsecurity-active], [wptsync upstream])

Attachments

(1 file)

both:

  • content-security-policy/frame-src/frame-src-same-document-meta.html
  • content-security-policy/frame-src/frame-src-redirect.html

fail with timeout. I see it in automation and locally on windows 10. When running on windows 10, I see that we load up an iframe that is invalid:
http://www1.{{host}}/content-security-policy/support/frame.html#0

I assume WPT harness is supposed to make that a proper URL, but it doesn't seem to be doing that.

Maybe fixing this will allow these two tests to pass without a timeout?

:jgraham, is this a harness issue? if not, we could redirect to :ckerschb to figure out why these are failing.

Flags: needinfo?(james)

content-security-policy/frame-src/frame-src-redirect.html seems to be a different problem; it looks like we aren't firing the securitypolicyviolation events at all in that case. Can we file a seperate bug there please?

Flags: needinfo?(james)
Assignee: nobody → james
Status: NEW → ASSIGNED
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/2027191fe36f Fix host substitution in CSP test, r=jmaher
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/23229 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.

Backed out changeset 2027191fe36f (bug 1631938) for frame-src-same-document-meta.sub.html failures

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=299248570&searchStr=%28wpt5%29&fromchange=8808cb9cbff283175fd1decc8a5d3aac99ea1e03&tochange=8eaac8df6cd25e051585d5ff103280dbc033f404

Backout link: https://hg.mozilla.org/integration/autoland/rev/8eaac8df6cd25e051585d5ff103280dbc033f404

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=299248570&repo=autoland&lineNumber=4384

task 2020-04-24T13:50:19.722Z] 13:50:19     INFO - TEST-START | /2dcontext/text-styles/2d.text.draw.baseline.bottom.html
[task 2020-04-24T13:50:19.730Z] 13:50:19     INFO - Closing window 36
[task 2020-04-24T13:50:19.868Z] 13:50:19     INFO - PID 5608 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2020-04-24T13:50:20.126Z] 13:50:20     INFO - PID 5608 | [Child 6062, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/netwerk/base/nsNetUtil.cpp, line 2323
[task 2020-04-24T13:50:20.126Z] 13:50:20     INFO - PID 5608 | [Child 6062, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/caps/ContentPrincipal.cpp, line 398
[task 2020-04-24T13:50:20.127Z] 13:50:20     INFO - PID 5608 | [Child 6062, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/caps/ContentPrincipal.cpp, line 423
[task 2020-04-24T13:50:20.143Z] 13:50:20     INFO - PID 5608 | [Child 6062, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp, line 3359
[task 2020-04-24T13:50:20.239Z] 13:50:20     INFO - PID 5608 | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpthWkXv/runtests_leaks_983_tab_pid6126.log
[task 2020-04-24T13:50:20.240Z] 13:50:20     INFO - PID 5608 | [6126, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp, line 224
[task 2020-04-24T13:50:20.606Z] 13:50:20     INFO - PID 5608 | [Child 6126, Main Thread] WARNING: could not set real-time limit at process startup: file /builds/worker/checkouts/gecko/dom/ipc/ContentChild.cpp, line 1665
[task 2020-04-24T13:50:22.142Z] 13:50:22     INFO - 
[task 2020-04-24T13:50:22.142Z] 13:50:22     INFO - TEST-UNEXPECTED-TIMEOUT | /content-security-policy/frame-src/frame-src-same-document-meta.sub.html | Same-document navigations in an iframe blocked by CSP frame-src dynamically using the <meta> tag - Test timed out
[task 2020-04-24T13:50:22.143Z] 13:50:22     INFO - TEST-UNEXPECTED-TIMEOUT | /content-security-policy/frame-src/frame-src-same-document-meta.sub.html | expected OK
[task 2020-04-24T13:50:22.144Z] 13:50:22     INFO - TEST-INFO took 30994ms
Flags: needinfo?(james)
Upstream PR was closed without merging
Priority: -- → P2
Whiteboard: [domsecurity-active]
Flags: needinfo?(james)
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/c64e72b266b2 Fix host substitution in CSP test, r=jmaher
Whiteboard: [domsecurity-active] → [domsecurity-active], [wptsync upstream]
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: