Closed Bug 1805614 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 37496 - [ComputePressure] Resolve the issue when calling observe method multiple times without using await

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox110 fixed)

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Wei4 Wang <wei4.wang@intel.com> wrote:

[ComputePressure] Resolve the issue when calling observe method multiple times without using await

In current implementation, when we call observe method on the same
observer like this:
let promise1 = observer.observe('cpu');
let promise2 = observer.observe('cpu');
or when we call observe method on different observers like this:
let promise1 = observer1.observe('cpu');
let promise2 = observer2.observe('cpu');
promise2 is resolved before promise1 no matter promise1 is resolved
or rejected. This CL resolves this issue by returning the same Promise
for same observer case or making status of promise2 depend on promise1
for different observers case.

Bug: 1393210, 1360396
Change-Id: I580953c6ff586bd517eae610d695c4e55ff80ded
Reviewed-on: https://chromium-review.googlesource.com/4104850
WPT-Export-Revision: b3cd0e365f7343efed30c0942cf694e28bd9ca22

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 2 subtests

Status Summary

Firefox

OK : 4
FAIL : 10

Chrome

OK : 1
CRASH: 3
FAIL : 5

Safari

OK : 4
FAIL : 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/659ed5a3fdd1 [wpt PR 37496] - [ComputePressure] Resolve/reject the promises correctly when calling observe method., a=testonly https://hg.mozilla.org/integration/autoland/rev/38decae1b864 [wpt PR 37496] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.