Closed Bug 1904827 Opened 1 year ago Closed 1 year ago

Perma /trusted-types/trusted-types-event-handlers.html | Event handler div.ondragexit should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw when Gecko 129 merges to beta on 2024-07-08

Categories

(Core :: DOM: Security, defect)

defect

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox127 --- unaffected
firefox128 --- unaffected
firefox129 + verified

People

(Reporter: ctuns, Assigned: mbrodesser)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

[Tracking Requested - why for this release]:

Central-as-beta simulation:
How to run these simulations:
Failure log

[task 2024-06-26T12:11:37.244Z] 12:11:37     INFO - TEST-START | /trusted-types/trusted-types-event-handlers.html
[task 2024-06-26T12:11:37.253Z] 12:11:37     INFO - Closing window fd2b0dbc-c8a9-48c9-81c4-7d018db71e13
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - ..........................
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncontextlost should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncontextmenu should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncontextrestored should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncopy should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.544Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncuechange should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.oncut should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.ondblclick should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.ondrag should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.ondragend should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.545Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - TEST-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.ondragenter should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - TEST-UNEXPECTED-FAIL | /trusted-types/trusted-types-event-handlers.html | Event handler div.ondragexit should be blocked. - assert_throws_js: function "_ => element.setAttribute(name, "2+2")" did not throw
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:45:23
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:2622:25
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - test@http://web-platform.test:8000/resources/testharness.js:633:30
[task 2024-06-26T12:11:37.546Z] 12:11:37     INFO - @http://web-platform.test:8000/trusted-types/trusted-types-event-handlers.html:44:9
[task 2024-06-26T12:11:37.600Z] 12:11:37     INFO - ............................................................................
[task 2024-06-26T12:11:37.600Z] 12:11:37     INFO - TEST-OK | /trusted-types/trusted-types-event-handlers.html | took 295ms

Hi Mirko, I think Bug 1903551 might be causing this. Can you please take a look?

Flags: needinfo?(mbrodesser)

dragexit is enabled outside Nightly builds. The change of the implementation status of trusted types in the test manifest away from backlog causes these tests to be part of central-as-beta simulations for the first time.

An additional expectation which uses if release_or_beta: FAIL for the failed test step would be feasible.

Keywords: regression
Regressed by: 1903551
Assignee: nobody → mbrodesser
Status: NEW → ASSIGNED

Once the review is accepted and the corresponding Try run passed, the patch can be merged.

Flags: needinfo?(mbrodesser)
Pushed by mbrodesser@igalia.com: https://hg.mozilla.org/integration/autoland/rev/a800d0118afc add expectation that <trusted-types-event-handlers.html> fails for `dragexit` event handlers for release- and beta-builds. r=aryx
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Patch is working and it's verified fixed in latest central as beta simulation

Status: RESOLVED → VERIFIED

Set release status flags based on info from the regressing bug 1903551

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

Attachment

General

Created:
Updated:
Size: