Closed Bug 1488415 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 12825 - Idlharness.js tests added for Trusted Types API

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Maja Kabus <kabusm@google.com> wrote:
>  Idlharness.js tests added for Trusted Types API
>  
>  Added Idlharness tests for Trusted Types interfaces.
>  
>  Bug: 739170
>  Change-Id: Id8834affcdded63f3ebb9ebd4d288cfd01ef24a8
>  Reviewed-on: https://chromium-review.googlesource.com/1204150
>  WPT-Export-Revision: 58f331d5d86451d80b345f55f4342b966e3589fe
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Component: DOM: Security → DOM
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Ran 1 tests and 72 subtests
OK     : 1
PASS   : 1
FAIL   : 71

New tests that have failures or other problems:
/trusted-types/idlharness.window.html
    Stringification of window.TrustedTypes: FAIL
    Stringification of window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }): FAIL
    Stringification of window.TrustedTypes.createPolicy("SomeName1", { createHTML: s => s }).createHTML("A string"): FAIL
    Stringification of window.TrustedTypes.createPolicy("SomeName2", { createScript: s => s }).createScript("A string"): FAIL
    Stringification of window.TrustedTypes.createPolicy("SomeName3", { createScriptURL: s => s }).createScriptURL("A string"): FAIL
    Stringification of window.TrustedTypes.createPolicy("SomeName4", { createURL: s => s }).createURL("A string"): FAIL
    TrustedHTML interface object length: FAIL
    TrustedHTML interface object name: FAIL
    TrustedHTML interface: existence and properties of interface object: FAIL
    TrustedHTML interface: existence and properties of interface prototype object: FAIL
    TrustedHTML interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedHTML interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedHTML interface: stringifier: FAIL
    TrustedHTML must be primary interface of window.TrustedTypes.createPolicy("SomeName1", { createHTML: s => s }).createHTML("A string"): FAIL
    TrustedScript interface object length: FAIL
    TrustedScript interface object name: FAIL
    TrustedScript interface: existence and properties of interface object: FAIL
    TrustedScript interface: existence and properties of interface prototype object: FAIL
    TrustedScript interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedScript interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedScript interface: stringifier: FAIL
    TrustedScript must be primary interface of window.TrustedTypes.createPolicy("SomeName2", { createScript: s => s }).createScript("A string"): FAIL
    TrustedScriptURL interface object length: FAIL
    TrustedScriptURL interface object name: FAIL
    TrustedScriptURL interface: existence and properties of interface object: FAIL
    TrustedScriptURL interface: existence and properties of interface prototype object: FAIL
    TrustedScriptURL interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedScriptURL interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedScriptURL interface: stringifier: FAIL
    TrustedScriptURL must be primary interface of window.TrustedTypes.createPolicy("SomeName3", { createScriptURL: s => s }).createScriptURL("A string"): FAIL
    TrustedTypePolicy interface object length: FAIL
    TrustedTypePolicy interface object name: FAIL
    TrustedTypePolicy interface: attribute name: FAIL
    TrustedTypePolicy interface: calling createHTML(DOMString) on window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) with too few arguments must throw TypeError: FAIL
    TrustedTypePolicy interface: calling createScript(DOMString) on window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) with too few arguments must throw TypeError: FAIL
    TrustedTypePolicy interface: calling createScriptURL(DOMString) on window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) with too few arguments must throw TypeError: FAIL
    TrustedTypePolicy interface: calling createURL(DOMString) on window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) with too few arguments must throw TypeError: FAIL
    TrustedTypePolicy interface: existence and properties of interface object: FAIL
    TrustedTypePolicy interface: existence and properties of interface prototype object: FAIL
    TrustedTypePolicy interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedTypePolicy interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedTypePolicy interface: operation createHTML(DOMString): FAIL
    TrustedTypePolicy interface: operation createScript(DOMString): FAIL
    TrustedTypePolicy interface: operation createScriptURL(DOMString): FAIL
    TrustedTypePolicy interface: operation createURL(DOMString): FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must inherit property "createHTML(DOMString)" with the proper type: FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must inherit property "createScript(DOMString)" with the proper type: FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must inherit property "createScriptURL(DOMString)" with the proper type: FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must inherit property "createURL(DOMString)" with the proper type: FAIL
    TrustedTypePolicy interface: window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }) must inherit property "name" with the proper type: FAIL
    TrustedTypePolicy must be primary interface of window.TrustedTypes.createPolicy("SomeName", { createHTML: s => s }): FAIL
    TrustedTypePolicyFactory interface object length: FAIL
    TrustedTypePolicyFactory interface object name: FAIL
    TrustedTypePolicyFactory interface: calling createPolicy(DOMString, TrustedTypePolicyOptions) on window.TrustedTypes with too few arguments must throw TypeError: FAIL
    TrustedTypePolicyFactory interface: existence and properties of interface object: FAIL
    TrustedTypePolicyFactory interface: existence and properties of interface prototype object: FAIL
    TrustedTypePolicyFactory interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedTypePolicyFactory interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedTypePolicyFactory interface: operation createPolicy(DOMString, TrustedTypePolicyOptions): FAIL
    TrustedTypePolicyFactory interface: operation getPolicyNames(): FAIL
    TrustedTypePolicyFactory interface: window.TrustedTypes must inherit property "createPolicy(DOMString, TrustedTypePolicyOptions)" with the proper type: FAIL
    TrustedTypePolicyFactory interface: window.TrustedTypes must inherit property "getPolicyNames()" with the proper type: FAIL
    TrustedTypePolicyFactory must be primary interface of window.TrustedTypes: FAIL
    TrustedURL interface object length: FAIL
    TrustedURL interface object name: FAIL
    TrustedURL interface: existence and properties of interface object: FAIL
    TrustedURL interface: existence and properties of interface prototype object: FAIL
    TrustedURL interface: existence and properties of interface prototype object's "constructor" property: FAIL
    TrustedURL interface: existence and properties of interface prototype object's @@unscopables property: FAIL
    TrustedURL interface: stringifier: FAIL
    TrustedURL must be primary interface of window.TrustedTypes.createPolicy("SomeName4", { createURL: s => s }).createURL("A string"): FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/09260f4cac26
[wpt PR 12825] - Idlharness.js tests added for Trusted Types API, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/2d4bfa4346db
[wpt PR 12825] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/09260f4cac26
https://hg.mozilla.org/mozilla-central/rev/2d4bfa4346db
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.