Open Bug 1939805 Opened 11 months ago Updated 2 months ago

(trusted types) Audit test coverage, making sure that the remaining annotations are timeouts, but not failures - part 2

Categories

(Core :: DOM: Security, task)

task

Tracking

()

People

(Reporter: fredw, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

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

Depends on: 1939802
Depends on: 1939811
Depends on: 1939866
Depends on: 1939893
Depends on: 1940244
Depends on: 1940948
Depends on: 1940979
Depends on: 1940968
Depends on: 1941278
Depends on: 1941267
Depends on: 1941356
Depends on: 1941424, 1941383
Depends on: 1941800
Depends on: 1942119
Depends on: 1943316
Depends on: 1943646
Depends on: 1943976
Depends on: 1944482

Remaining failures at https://searchfox.org/mozilla-central/source/testing/web-platform/meta/trusted-types:

  • block-string-assignment-to-attribute-via-attribute-node.html: Fixed by bug 1944511
  • block-string-assignment-to-Element-setAttribute.html: Fixed by bug 1944511
  • block-text-node-insertion-into-script-element.html: likely bug 1928932
  • block-text-node-insertion-into-svg-script-element.html: likely bug 1928932
  • Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html: bug 1944511 + likely some other actual bug to check.
  • HTMLScriptElement-internal-slot.html: likely bug 1928932
  • set-event-handlers-content-attributes.tentative.html: Fixed by bug 1944504
  • trusted-types-event-handlers.html: Some touch events only work on Android.
  • trusted-types-from-literal.tentative.html: This was from https://github.com/w3c/trusted-types/issues/347 but no longer seems part of the spec.
  • trusted-types-navigation.html: likely bug 1915629
  • TrustedTypePolicyFactory-blocking.tentative.html: Need to check this.
  • TrustedTypePolicyFactory-getAttributeType-event-handler-content-attributes.tentative.html: Fixed by bug 1944504

Remaining failures at https://searchfox.org/mozilla-central/source/testing/web-platform/meta/trusted-types after 1944511 is fixed:

  • block-text-node-insertion-into-script-element.html: likely bug 1928932
  • block-text-node-insertion-into-svg-script-element.html: likely bug 1928932
  • Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html: Need to check this.
  • HTMLScriptElement-internal-slot.html: likely bug 1928932
  • trusted-types-event-handlers.html: Some touch events only work on Android.
  • trusted-types-from-literal.tentative.html: This was from https://github.com/w3c/trusted-types/issues/347 but no longer seems part of the spec.
  • trusted-types-navigation.html: likely bug 1915629
  • TrustedTypePolicyFactory-blocking.tentative.html: Need to check this.
Depends on: 1950632

Updated analysis of remaining failures:

block-text-node-insertion-into-script-element.html: likely bug 1928932
block-text-node-insertion-into-svg-script-element.html: likely bug 1928932
Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html: Incorrect test, see bug 1950626.
HTMLScriptElement-internal-slot.html: likely bug 1928932
trusted-types-event-handlers.html: likely we can just remove the .ini, see bug 1950601.
trusted-types-from-literal.tentative.html: not part of the spec, see bug 1950600.
trusted-types-navigation.html: likely bug 1915629
TrustedTypePolicyFactory-blocking.tentative.html: not part of the spec, see bug 1950598.
Depends on: 1952498
Depends on: 1945495
Depends on: 1952248
Depends on: 1951684
Depends on: 1949754
Depends on: 1944474
Depends on: 1951710
Depends on: 1945616
Depends on: 1945548
Depends on: 1952460
Depends on: 1949435
Depends on: 1945506
Depends on: 1949822
Depends on: 1952468
Depends on: 1950083
Depends on: 1946451
Depends on: 1949396
Depends on: 1946499
Depends on: 1955088
Depends on: 1955048
Depends on: 1954742
Depends on: 1954999
Depends on: 1954765
Depends on: 1954554
Depends on: 1954980
Depends on: 1954792
Depends on: 1954753
Depends on: 1954783
Depends on: 1954950
Depends on: 1954997
Depends on: 1479697
Depends on: 1477845
Depends on: 1476813
Depends on: 1481396
Depends on: 1662294
Depends on: 1478317
Depends on: 1475748
Depends on: 1927805
Depends on: 1483829
Depends on: 1662290
Depends on: 1478054
Depends on: 1955656
Depends on: 1955673
No longer depends on: 1927805
Depends on: 1955920
Depends on: 1956444
Depends on: 1956781
Depends on: 1957116
Depends on: 1957327
Depends on: 1958778

Remaining failures at https://hg-edge.mozilla.org/mozilla-central/file/579be884653b93d808e818f2f1a9b0a784ed36b1/testing/web-platform/meta/trusted-types:

  • HTMLScriptElement-internal-slot.html: bug 1928932
  • SVGScriptElement-internal-slot.html.ini: bug 1928932
  • TrustedTypePolicyFactory-blocking.tentative.html: bug 1950598
  • block-text-node-insertion-into-script-element.html: bug 1928932
  • block-text-node-insertion-into-svg-script-element.html: bug 1928932
  • trusted-types-from-literal.tentative.html: bug 1950600
  • trusted-types-navigation.html: bug 1915629
Depends on: 1974369
Depends on: 1974374
Depends on: 1985570
Depends on: 1985927
Depends on: 1986597
Depends on: 1986598
Depends on: 1986599

Remaining failures at https://github.com/mozilla-firefox/firefox/tree/8f85432344cfd6d6ae425801b16319f90b687400/testing/web-platform/meta/trusted-types

  • beforecreatepolicy not implemented (bug 1950598): TrustedTypePolicyFactory-blocking.tentative.html
  • fromLiteral not implemented (bug 1950600): trusted-types-from-literal.tentative.html
  • win flaky tests (bug 1986597): block-string-assignment-to-Element-setAttribute.html, set-attributes-no-require-trusted-types.html, trusted-types-reporting-for-ServiceWorker-ServiceWorkerContainer-register.https.html
  • Android pre-navigation check failures (bug 1986598): navigate-to-javascript-url-001.html, navigate-to-javascript-url-003.html, navigate-to-javascript-url-004.html, trusted-types-navigation.html

Also relevant tests in content-security-policy are:

  • trusted-types-eval (bug 1940493): script-src/script-src-trusted_types_*
  • sample in report (bug 1986599): content-security-policy/reporting/report-clips-sample.https

(note that securitypolicyviolation/source-file.html uses Trusted Types to generate a violation, but it's not actually specific to Trusted Types, see bug 1944479)

Remaining failures at https://github.com/mozilla-firefox/firefox/tree/7620954e589eb74f20e94e284b250848a159fca0/testing/web-platform/meta/trusted-types

  • beforecreatepolicy not implemented (bug 1950598): TrustedTypePolicyFactory-blocking.tentative.html
  • fromLiteral not implemented (bug 1950600): trusted-types-from-literal.tentative.html
  • Android pre-navigation check failures (bug 1986598): navigate-to-javascript-url-001.html, navigate-to-javascript-url-003.html, navigate-to-javascript-url-004.html, trusted-types-navigation.html

Other relevant tests in content-security-policy we pass:

  • script-src/script-src-trusted_types_*
  • content-security-policy/reporting/report-clips-sample.https.html

Remaining failures at https://github.com/mozilla-firefox/firefox/tree/3c23ce1368431d49bae08e8e211f7f2bf4e4829d/testing/web-platform/meta/trusted-types

  • beforecreatepolicy not implemented (bug 1950598): TrustedTypePolicyFactory-blocking.tentative.html
  • fromLiteral not implemented (bug 1950600): trusted-types-from-literal.tentative.html

Other relevant tests in content-security-policy we pass:

  • script-src/script-src-trusted_types_*
  • content-security-policy/reporting/report-clips-sample.https.html

TrustedTypePolicyFactory-blocking.tentative.html was removed in https://chromium-review.googlesource.com/c/chromium/src/+/6842536 ; so we are only failing fromLiteral tests.

You need to log in before you can comment on or make changes to this bug.