Closed Bug 1868562 Opened 1 year ago Closed 1 year ago

Perma dom/tests/mochitest/general/test_interfaces_secureContext.html | If this is failing: DANGER, are you sure you want to expose the new interface WakeLock to all webpages as a property on 'window'? Do not mak when Gecko 122 merges to Beta on 2023-12-18

Categories

(Core :: DOM: Device Interfaces, defect)

defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox120 --- unaffected
firefox121 --- unaffected
firefox122 + verified

People

(Reporter: noriszfay, Assigned: edgar)

References

(Regression)

Details

(Keywords: regression)

Crash Data

Attachments

(1 file)

Central-as-beta simulation

How to run these simulations

Failure log:

[task 2023-12-06T13:00:45.838Z] 13:00:45     INFO - TEST-PASS | dom/tests/mochitest/general/test_interfaces_secureContext.html | AudioBuffer is exposed as an own property on 'window' but tests false for "in" in the global scope 
[task 2023-12-06T13:00:45.839Z] 13:00:45     INFO - TEST-PASS | dom/tests/mochitest/general/test_interfaces_secureContext.html | AudioBuffer is exposed as an own property on 'window' but has no property descriptor in the global scope 
[task 2023-12-06T13:00:45.839Z] 13:00:45     INFO - Buffered messages finished
[task 2023-12-06T13:00:45.840Z] 13:00:45     INFO - TEST-UNEXPECTED-FAIL | dom/tests/mochitest/general/test_interfaces_secureContext.html | If this is failing: DANGER, are you sure you want to expose the new interface WakeLock to all webpages as a property on 'window'? Do not make a change to this file without a  review from a DOM peer for that specific change!!! (or a JS peer for changes to ecmaGlobals) 
[task 2023-12-06T13:00:45.840Z] 13:00:45     INFO - SimpleTest.ok@https://example.com/tests/SimpleTest/SimpleTest.js:426:16
[task 2023-12-06T13:00:45.840Z] 13:00:45     INFO - runTest@https://example.com/tests/dom/tests/mochitest/general/test_interfaces.js:2032:7
[task 2023-12-06T13:00:45.841Z] 13:00:45     INFO - @https://example.com/tests/dom/tests/mochitest/general/test_interfaces.js:2083:8
[task 2023-12-06T13:00:45.841Z] 13:00:45     INFO - TEST-PASS | dom/tests/mochitest/general/test_interfaces_secureContext.html | WakeLock is exposed as an own property on 'window' but tests false for "in" in the global scope 
[task 2023-12-06T13:00:45.841Z] 13:00:45     INFO - TEST-PASS | dom/tests/mochitest/general/test_interfaces_secureContext.html | WakeLock is exposed as an own property on 'window' but has no property descriptor in the global scope 

It seems there are also multiple wpt failures on /screen-wake-lock/* that are all regressed by the same bug.
Assertion failure log (Bug 1855699), AddressSanitizer failure, Process-crash

Flags: needinfo?(vhilla)
See Also: → 1855699

I think, Pref="dom.screenwakelock.enabled" needs to be added to WakeLock.webidl and WakeLockSentinel.webidl. I only added it in Navigator.webidl and forgot the other two. That should fix this bug.

The failures in wpt stem from observing a pref change. I guess in WakeLockJS::Observe, instead of asserting there to be an extrant document, we could check whether there is one and otherwise do nothing. The asan failure also comes from accessing the document, but I'm wondering why no assertion was triggered.

I will try to get a patch ready later.

Flags: needinfo?(vhilla)

Copying crash signatures from duplicate bugs.

Crash Signature: [@ RefPtr<mozilla::dom::Document>::get]

:vhilla The Fx122 nightly soft code freeze starts on 2023-12-14, with Fx122 going to beta on 2023-12-18.
If you are still on track to have a patch for this by the end of this week?

Flags: needinfo?(vhilla)

I will take a look.

Flags: needinfo?(vhilla) → needinfo?(echen)
No longer duplicate of this bug: 1869118
See Also: 1855699

which should be exposed on Nightly only.

Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b665081b155 WakeLock and WakeLockSentinel should have a pref guard; r=smaug

This patch only fix the test_interfaces_secureContext.html error, I am going to handle the crash in bug 1869118.

Flags: needinfo?(echen)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

Verified fixed as there are no more related failures in today's beta-sim

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: