Closed Bug 1493246 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 13139 - isXXX methods added to TrustedTypePolicyFactory

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

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

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

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

Maja Kabus <kabusm@google.com> wrote:
>  isXXX methods added to TrustedTypePolicyFactory
>  
>  isHTML(), isScript(), isScriptURL() and isURL() added to
>  TrustedTypePolicyFactory class as part of Trusted Types API update to
>  current JS polyfill.
>  The methods require additional code to be fully matched to polyfill
>  expected behaviour.
>  
>  Added a helper private method GetWrapperTypeInfoFromScriptValue.
>  
>  Bug: 739170
>  Change-Id: I027e43ab6432405c686255a4d0ce24248c59a4dc
>  Reviewed-on: https://chromium-review.googlesource.com/1238433
>  WPT-Export-Revision: dd4136e7a34e0b32952af75fbd0c42566bb3f3c4
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Ran 2 tests and 40 subtests
OK     : 2
FAIL   : 40

New tests that have failures or other problems:
/trusted-types/TrustedTypePolicyFactory-isXXX.tentative.html
    TrustedTypePolicyFactory.isHTML requires the object to be created via policy.: FAIL
    TrustedTypePolicyFactory.isScript requires the object to be created via policy.: FAIL
    TrustedTypePolicyFactory.isScriptURL requires the object to be created via policy.: FAIL
    TrustedTypePolicyFactory.isURL requires the object to be created via policy.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/845c69a518c6
[wpt PR 13139] - isXXX methods added to TrustedTypePolicyFactory, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/4187f201e088
[wpt PR 13139] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/845c69a518c6
https://hg.mozilla.org/mozilla-central/rev/4187f201e088
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.