[wpt-sync] Sync PR 41625 - idle-detection: Handle frame detach
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox119 fixed)
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41625 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41625
Details from upstream follow.
Scott Haseley <shaseley@chromium.org> wrote:
idle-detection: Handle frame detach
This makes IdleDetector an ExecutionContextLifecycleObserver and cleans
up state in ContextDestroyed(). start() is also changed to return a
rejected promise if the detector's context is destroyed.This fixes a null pointer deference that could happen if calling start()
before detach with a signal and again after detach without a signal.Bug: 1475163
Change-Id: I6be93159e4ef87bf00f4c87765ef87dd9f34a8a7
Reviewed-on: https://chromium-review.googlesource.com/4810975
WPT-Export-Revision: d9aff5994f5df922a6bbd517a7609a34445decbf
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /idle-detection/idle-detection-detached-frame.https.html [wpt.fyi]:
OK
[GitHub
],SKIP
[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview
,Gecko-android-em-7.0-x86_64-qr-debug-geckoview
,Gecko-android-em-7.0-x86_64-qr-opt-geckoview
,Gecko-linux1804-64-qr-debug
,Gecko-linux1804-64-qr-opt
,Gecko-windows11-32-2009-qr-debug
,Gecko-windows11-32-2009-qr-opt
,Gecko-windows11-64-2009-qr-debug
,Gecko-windows11-64-2009-qr-opt
] (Chrome:OK
, Safari:OK
)- Using an IdleDetector from a detached frame:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Using an IdleDetector from a detached frame:
Tests Disabled in Gecko Infrastructure
- /idle-detection/idle-detection-detached-frame.https.html [wpt.fyi]:
OK
[GitHub
],SKIP
[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview
,Gecko-android-em-7.0-x86_64-qr-debug-geckoview
,Gecko-android-em-7.0-x86_64-qr-opt-geckoview
,Gecko-linux1804-64-qr-debug
,Gecko-linux1804-64-qr-opt
,Gecko-windows11-32-2009-qr-debug
,Gecko-windows11-32-2009-qr-opt
,Gecko-windows11-64-2009-qr-debug
,Gecko-windows11-64-2009-qr-opt
] (Chrome:OK
, Safari:OK
)
Comment 4•1 year ago
|
||
bugherder |
Description
•