Closed Bug 1950626 Opened 1 year ago Closed 1 year ago

Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html fails

Categories

(Core :: DOM: Security, task)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: fwang, Assigned: fwang)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

It used to be fail because of bug 1944511 (for setAttributeNode).

Now it seems to be failing because it expects sourceFrame.contentWindow.TypeError whereas we are throwing a window.TypeError.

Assignee: nobody → fwang
Status: NEW → ASSIGNED

So after investigating, I think the test is broken: https://github.com/web-platform-tests/wpt/pull/44323#issuecomment-2687657504

Will fix it.

Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/cfc415b178e0 Fix mistakes in Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.html. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51019 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Upstream PR merged by moz-wptsync-bot

Comment on attachment 9468885 [details]
Bug 1950626 Test documents loaded from local schemes inherit TT CSP rules. r=smaug

Revision D239878 was moved to bug 1952498. Setting attachment 9468885 [details] to obsolete.

Attachment #9468885 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: