Closed Bug 1917784 Opened 1 year ago Closed 1 year ago

Implement `TrustedTypePolicyFactory`'s `getPropertyType`

Categories

(Core :: DOM: Security, task)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: mbrodesser, Assigned: fredw)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [domsecurity-backlog], [wptsync upstream])

Attachments

(3 files)

Whiteboard: [domsecurity-backlog]
Assignee: nobody → fwang
Blocks: 1917783

There are already tests for case-insensitivity, but make sure this is
the stronger ASCII case-insensitivity.

Attachment #9431808 - Attachment description: WIP: Bug 1917784 - Add WPT tests for elementNS parameter of `getPropertyType`. → Bug 1917784 - Add WPT tests for elementNS parameter of `getPropertyType`. r=mbrodesser-Igalia
Attachment #9431208 - Attachment description: WIP: Bug 1917784 - Implement `TrustedTypePolicyFactory`'s `getPropertyType` → Bug 1917784 - Implement `TrustedTypePolicyFactory`'s `getPropertyType`. r=smaug
Attachment #9431828 - Attachment description: Bug 1917784 - Add WPT tests for ASCII case-insensitivity in getPropertyType/getAttributeType. r=mbrodesser-Igalia → Bug 1917784 - Add WPT tests for ASCII case-insensitivity in getPropertyType/getAttributeType. r=smaug
Attachment #9431808 - Attachment description: Bug 1917784 - Add WPT tests for elementNS parameter of `getPropertyType`. r=mbrodesser-Igalia → Bug 1917784 - Add WPT tests for elementNS parameter of `getPropertyType`. r=smaug
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/4cff581a0df1 Add WPT tests for ASCII case-insensitivity in getPropertyType/getAttributeType. r=smaug https://hg.mozilla.org/integration/autoland/rev/083738a702c5 Add WPT tests for elementNS parameter of `getPropertyType`. r=smaug https://hg.mozilla.org/integration/autoland/rev/7bda4dc5eff8 Implement `TrustedTypePolicyFactory`'s `getPropertyType`. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48748 for changes under testing/web-platform/tests
Whiteboard: [domsecurity-backlog] → [domsecurity-backlog], [wptsync upstream]
Blocks: 1925952
Upstream PR was closed without merging
Blocks: 1926286

Y(In reply to Atila Butkovits from comment #6)

Backed out for causing failures at mozilla::dom::DOMString.

The assert is because we cannot call SetKnownLiveString after SetNull: https://searchfox.org/mozilla-central/rev/dfc3050503739883ce6d17e8365bc35410106aba/dom/bindings/DOMString.h#34 ; fixed in the latest version.

Flags: needinfo?(fwang)
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/186050bf0ca6 Add WPT tests for ASCII case-insensitivity in getPropertyType/getAttributeType. r=smaug https://hg.mozilla.org/integration/autoland/rev/f8cb9e794fee Add WPT tests for elementNS parameter of `getPropertyType`. r=smaug https://hg.mozilla.org/integration/autoland/rev/65f3d238048d Implement `TrustedTypePolicyFactory`'s `getPropertyType`. r=smaug
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Upstream PR merged by moz-wptsync-bot
Keywords: dev-doc-needed

:fredw do you want to nominate this for a release note? (Process info)

Flags: needinfo?(fwang)

I think this is only a small method from the Trusted Types spec, so probably not worth nominating it.

Flags: needinfo?(fwang)

FF133 MDN docs for this can be tracked in https://github.com/mdn/content/issues/36559. As this is very minimal implementation, mostly that is just a compatibility data update, and an experimental features doc section that just makes it clear that there is a lot more to come (essentially, a placeholder). The method already has documentation.

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

Attachment

General

Created:
Updated:
Size: