Closed Bug 1476825 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 12061 - Reland "Adjusted references in tests to match new helper.sub.js file"

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Ian Clelland <iclelland@chromium.org> wrote:
>  Reland "Adjusted references in tests to match new helper.sub.js file"
>  
>  This is a reland of ac436aaa9d361c99dcf4df11bd11ad201a2bccd8
>  
>  Original change's description:
>  > Adjusted references in tests to match new helper.sub.js file
>  >
>  > helper.js changed to helper.sub.js.
>  > URLS.safe modified to work with wpt.
>  >
>  > Bug: 739170
>  > Change-Id: I89e0efdb07c94e78be826c8807d0577ede8a97ec
>  > Reviewed-on: https://chromium-review.googlesource.com/1141725
>  > Reviewed-by: Mike West <mkwst@chromium.org>
>  > Commit-Queue: Maja Kabus <kabusm@google.com>
>  > Cr-Commit-Position: refs/heads/master@{#576037}
>  
>  Bug: 739170
>  Tbr: alexmos@chromium.org
>  Change-Id: Idc1e5d5cc4b1dbbc4de4145af38b894c5f4a65b5
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1142169
>  WPT-Export-Revision: 4f47c58740e381f346ceff1c6ae26b78441e34ea
PR 12061 applied with additional changes from upstream: 5834cfc29ec99cc30b3cb82a95ff52effd56a19d, 9e4a93afa661c4a6ecb39ce810fcc77d73cd6405, d886715e456fb9a2e23e310ceaf8f9edc38f24b2, bd2709244a313ed5ea8e08d83c22173955c1ed80, 4b0008b5230f13161ecf5a4ab01905af857bacdd, 085d47ef10ac636e73fe04e5c232046b329aa382, 5508b8d3acfd3980fcef034b87e90294669539d8, 0fd696381d8c02f0b635c415752dafe2ce0ba7e6, 60220357131c65146444da1f54624d5b54d0975d, 70afecf33059eab74cd92d97822386955e905a10
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Ran 34 tests and 96 subtests
OK     : 32
PASS   : 2
FAIL   : 94
TIMEOUT: 2

New tests that have failures or other problems:
/trusted-types/DOMParser-requiresTrustedTypes.tentative.html
    'innerTextOfDoc = null' throws: FAIL
    `innerTextOfDoc = string` throws.: FAIL
    innerTextOfDoc = TrustedHTML.escape().: FAIL
    innerTextOfDoc = TrustedHTML.unsafelyCreate().: FAIL
/trusted-types/DOMParser.tentative.html
    innerTextOfDoc = TrustedHTML.escape().: FAIL
    innerTextOfDoc = TrustedHTML.unsafelyCreate().: FAIL
/trusted-types/HTMLBaseElement-href.tentative.html
    base.href = URLS.safe, TrustedURL.create: FAIL
    base.href = URLS.safe, TrustedURL.unsafelyCreate: FAIL
/trusted-types/HTMLImageElement-src.tentative.html
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/HTMLMediaElement-src.tentative.html
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/HTMLSourceElement-src.tentative.html
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html
    `base.href = null` throws: FAIL
    `base.href = string` throws: FAIL
    base.href = URLS.safe, TrustedURL.create: FAIL
    base.href = URLS.safe, TrustedURL.unsafelyCreate: FAIL
/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html
    'src = string' throws.: FAIL
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html
    'src = string' throws.: FAIL
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html
    'src = string' throws.: FAIL
    src = TrustedURL.create().: FAIL
    src = TrustedURL.unsafelyCreate().: FAIL
/trusted-types/block-string-assignment-to-createContextualFragment.tentative.html
    DocumentFragment.textContent = TrustedHTML.escape().: FAIL
    DocumentFragment.textContent = TrustedHTML.unsafelyCreate().: FAIL
    `DocumentFragment.textContent = null` throws.: FAIL
    `DocumentFragment.textContent = string` throws.: FAIL
/trusted-types/block-string-assignment-to-embed-src.tentative.html
    src = 'string' assignment throws.: FAIL
    src = TrustedScriptURL.unsafelyCreate(URLS.external): FAIL
    src = TrustedScriptURL.unsafelyCreate(URLS.javascript): FAIL
    src = TrustedScriptURL.unsafelyCreate(URLS.safe): FAIL
    src = TrustedURL.unsafelyCreate(URLS.safe) assignment throws: FAIL
/trusted-types/block-string-assignment-to-location-assign.tentative.html: TIMEOUT
/trusted-types/block-string-assignment-to-location-replace.tentative.html: TIMEOUT
/trusted-types/createContextualFragment.tentative.html
    DocumentFragment.textContent = TrustedHTML.escape().: FAIL
    DocumentFragment.textContent = TrustedHTML.unsafelyCreate().: FAIL
/trusted-types/embed-src.tentative.html
    src = TrustedScriptURL.unsafelyCreate(URLS.external): FAIL
    src = TrustedScriptURL.unsafelyCreate(URLS.javascript): FAIL
    src = TrustedScriptURL.unsafelyCreate(URLS.safe): FAIL
/trusted-types/location-assign.tentative.html
    Basic processing: safe URL, safe construction.: FAIL
    Basic processing: safe URL, unsafe construction.: FAIL
/trusted-types/location-replace.tentative.html
    Basic processing: safe URL, safe construction.: FAIL
    Basic processing: safe URL, unsafe construction.: FAIL
/trusted-types/srcDoc-requiresTrustedTypes.tentative.html
    'srcdoc = string' throws.: FAIL
    srcdoc = TrustedHTML.escape().: FAIL
    srcdoc = TrustedHTML.unsafelyCreate().: FAIL
/trusted-types/srcDoc.tentative.html
    srcdoc = TrustedHTML.escape().: FAIL
    srcdoc = TrustedHTML.unsafelyCreate().: FAIL
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/778051077e97
[wpt PR 12061] - Reland "Adjusted references in tests to match new helper.sub.js file", a=testonly
https://hg.mozilla.org/mozilla-central/rev/778051077e97
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.