Closed Bug 1483943 Opened Last year Closed Last year

[wpt-sync] Sync PR 12528 - TrustedTypes tests updated to match newest API version.

Categories

(Core :: DOM: Security, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog3])

Sync web-platform-tests PR 12528 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/12528
Details from upstream follow.

Maja Kabus <kabusm@google.com> wrote:
>  TrustedTypes tests updated to match newest API version.
>  
>  Requires change 1167282 to be merged first.
>  
>  Bug: 739170
>  Change-Id: Ia0ec627627b8ad6b208eb9351f3e7786e6d2c9b2
>  Reviewed-on: https://chromium-review.googlesource.com/1177752
>  WPT-Export-Revision: 79ad47cc67a7084ee074f28affd05688598e0611
Component: web-platform-tests → DOM: Security
Product: Testing → Core
PR 12528 applied with additional changes from upstream: fa06664dc85df3024762f5e082e05aa293f90d88
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 26 tests and 70 subtests
OK     : 23
PASS   : 1
FAIL   : 69
TIMEOUT: 3

New tests that have failures or other problems:
/trusted-types/DOMParser-parseFromString.tentative.html
    document.innerText assigned via policy (successful HTML transformation).: FAIL
/trusted-types/Document-write.tentative.html
    document.write with html assigned via policy (successful URL transformation).: FAIL
/trusted-types/Element-innerHTML.tentative.html
    innerHTML assigned via policy (successful HTML transformation).: FAIL
/trusted-types/Element-insertAdjacentHTML.tentative.html
    insertAdjacentHTML with html assigned via policy (successful HTML transformation).: FAIL
/trusted-types/Element-outerHTML.tentative.html
    outerHTML with html assigned via policy (successful HTML transformation).: FAIL
/trusted-types/HTMLElement-generic.tentative.html
    a.href assigned via policy (successful URL transformation): FAIL
    area.href assigned via policy (successful URL transformation): FAIL
    base.href assigned via policy (successful URL transformation): FAIL
    embed.src assigned via policy (successful ScriptURL transformation): FAIL
    frame.src assigned via policy (successful URL transformation): FAIL
    iframe.src assigned via policy (successful URL transformation): FAIL
    img.src assigned via policy (successful URL transformation): FAIL
    input.src assigned via policy (successful URL transformation): FAIL
    link.href assigned via policy (successful URL transformation): FAIL
    object.codeBase assigned via policy (successful URL transformation): FAIL
    object.data assigned via policy (successful URL transformation): FAIL
    script.src assigned via policy (successful ScriptURL transformation): FAIL
    source.src assigned via policy (successful URL transformation): FAIL
    track.src assigned via policy (successful URL transformation): FAIL
    video.src assigned via policy (successful URL transformation): FAIL
/trusted-types/HTMLIFrameElement-srcdoc.tentative.html
    iframe.srcdoc assigned via policy (successful HTML transformation).: FAIL
/trusted-types/Location-assign.tentative.html
    location.assign via policy (successful URL transformation).: FAIL
/trusted-types/Location-href.tentative.html
    location.href assigned via policy (successful URL transformation).: FAIL
/trusted-types/Location-replace.tentative.html
    location.replace via policy (successful URL transformation).: FAIL
/trusted-types/Range-createContextualFragment.tentative.html
    range.createContextualFragment assigned via policy (successful HTML transformation).: FAIL
/trusted-types/TrustedTypePolicyFactory-createPolicy.tentative.html
    policy.name = name: FAIL
/trusted-types/Window-open.tentative.html
    document.open via policy (successful URL transformation).: FAIL
    window.open via policy (successful URL transformation).: FAIL
/trusted-types/Window-trustedTypes.tentative.html
    factory = window.trustedTypes: FAIL
/trusted-types/block-string-assignment-to-DOMParser-parseFromString.tentative.html
    'document.innerText = null' throws: FAIL
    `document.innerText = string` throws.: FAIL
    document.innerText assigned via policy (successful HTML transformation).: FAIL
/trusted-types/block-string-assignment-to-Document-write.tentative.html
    `document.write(null)` throws: FAIL
    `document.write(string)` throws: FAIL
    document.write with html assigned via policy (successful URL transformation).: FAIL
/trusted-types/block-string-assignment-to-Element-innerHTML.tentative.html
    block-string-assignment-to-Element-innerHTML: FAIL
/trusted-types/block-string-assignment-to-Element-insertAdjacentHTML.tentative.html
    `insertAdjacentHTML(null)` throws.: FAIL
    `insertAdjacentHTML(string)` throws.: FAIL
    insertAdjacentHTML with html assigned via policy (successful HTML transformation).: FAIL
/trusted-types/block-string-assignment-to-Element-outerHTML.tentative.html
    `outerHTML = null` throws.: FAIL
    `outerHTML = string` throws.: FAIL
    outerHTML with html assigned via policy (successful HTML transformation).: FAIL
/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html
    a.href accepts only TrustedURL: FAIL
    area.href accepts only TrustedURL: FAIL
    base.href accepts only TrustedURL: FAIL
    embed.src accepts only TrustedScriptURL: FAIL
    frame.src accepts only TrustedURL: FAIL
    iframe.src accepts only TrustedURL: FAIL
    img.src accepts only TrustedURL: FAIL
    input.src accepts only TrustedURL: FAIL
    link.href accepts only TrustedURL: FAIL
    object.codeBase accepts only TrustedURL: FAIL
    object.data accepts only TrustedURL: FAIL
    script.src accepts only TrustedScriptURL: FAIL
    source.src accepts only TrustedURL: FAIL
    track.src accepts only TrustedURL: FAIL
    video.src accepts only TrustedURL: FAIL
/trusted-types/block-string-assignment-to-HTMLIFrameElement-srcdoc.tentative.html
    `iframe.srcdoc = null` throws.: FAIL
    `iframe.srcdoc = string` throws.: FAIL
    iframe.srcdoc assigned via policy (successful HTML transformation).: FAIL
/trusted-types/block-string-assignment-to-Location-assign.tentative.html: TIMEOUT
/trusted-types/block-string-assignment-to-Location-href.tentative.html: TIMEOUT
/trusted-types/block-string-assignment-to-Location-replace.tentative.html: TIMEOUT
/trusted-types/block-string-assignment-to-Range-createContextualFragment.tentative.html
    `range.createContextualFragment(null)` throws.: FAIL
    `range.createContextualFragment(string)` throws.: FAIL
    range.createContextualFragment assigned via policy (successful HTML transformation).: FAIL
/trusted-types/block-string-assignment-to-Window-open.tentative.html
    `document.open(null)` throws.: FAIL
    `document.open(string)` throws.: FAIL
    `window.open(null)` throws.: FAIL
    `window.open(string)` throws.: FAIL
    document.open via policy (successful URL transformation).: FAIL
    window.open via policy (successful URL transformation).: FAIL
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog3]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd8f7a9072e7
[wpt PR 12528] - TrustedTypes tests updated to match newest API version., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb5f92fb339b
[wpt PR 12528] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/cd8f7a9072e7
https://hg.mozilla.org/mozilla-central/rev/fb5f92fb339b
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.