WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226529
HTMLMediaElement::virtualHasPendingActivity may keep objects alive unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=226529
Summary
HTMLMediaElement::virtualHasPendingActivity may keep objects alive unnecessarily
youenn fablet
Reported
2021-06-02 01:26:24 PDT
HTMLMediaElement::virtualHasPendingActivity may keep objects alive unnecessarily
Attachments
Patch
(9.27 KB, patch)
2021-06-02 04:59 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(9.39 KB, patch)
2021-06-02 05:58 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(8.93 KB, patch)
2021-06-02 08:27 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-06-02 01:27:31 PDT
<
rdar://78726921
>
youenn fablet
Comment 2
2021-06-02 01:28:05 PDT
https://jsfiddle.net/cpx73bry/
is an example where we are keeping the object alive for no good reasons.
youenn fablet
Comment 3
2021-06-02 04:59:58 PDT
Created
attachment 430336
[details]
Patch
youenn fablet
Comment 4
2021-06-02 05:58:29 PDT
Created
attachment 430340
[details]
Patch
Chris Dumez
Comment 5
2021-06-02 07:34:27 PDT
Comment on
attachment 430340
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430340&action=review
> LayoutTests/fast/mediastream/mediaElement-gc.html:41 > +promise_test(async (test) => {
New test is flaky on EWS: - PASS GC a video element once its srcObject gets ended + FAIL GC a video element once its srcObject gets ended assert_less_than: expected a number less than 100 but got 100
youenn fablet
Comment 6
2021-06-02 08:26:19 PDT
(In reply to Chris Dumez from
comment #5
)
> Comment on
attachment 430340
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=430340&action=review
> > > LayoutTests/fast/mediastream/mediaElement-gc.html:41 > > +promise_test(async (test) => { > > New test is flaky on EWS: > - PASS GC a video element once its srcObject gets ended > + FAIL GC a video element once its srcObject gets ended assert_less_than: > expected a number less than 100 but got 100
Hum, not sure why it fails, let's start with the main bug. The ended MediaStream case can be fixed as a follow-up.
youenn fablet
Comment 7
2021-06-02 08:27:37 PDT
Created
attachment 430359
[details]
Patch
EWS
Comment 8
2021-06-02 09:44:24 PDT
Committed
r278359
(
238391@main
): <
https://commits.webkit.org/238391@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 430359
[details]
.
Truitt Savell
Comment 9
2021-06-14 15:05:18 PDT
It looks like the new test fast/mediastream/mediaElement-gc.html added in
https://trac.webkit.org/changeset/278359/webkit
has been a flaky failure on Mac sense introduction:
https://results.webkit.org/?suite=layout-tests&test=fast%2Fmediastream%2FmediaElement-gc.html
tracking in:
https://bugs.webkit.org/show_bug.cgi?id=226991
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug