Bug 225700 - HTMLMediaElement::mediaLoadingFailedFatally() does direct dispatch of events; should schedule
Summary: HTMLMediaElement::mediaLoadingFailedFatally() does direct dispatch of events;...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-12 09:02 PDT by Jer Noble
Modified: 2021-05-13 20:27 PDT (History)
15 users (show)

See Also:


Attachments
Patch (2.02 KB, patch)
2021-05-12 09:08 PDT, Jer Noble
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (2.00 KB, patch)
2021-05-12 09:19 PDT, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2021-05-12 09:02:24 PDT
HTMLMediaElement::mediaLoadingFailedFatally() does direct dispatch of events; should schedule
Comment 1 Jer Noble 2021-05-12 09:03:05 PDT
<rdar://75576322>
Comment 2 Jer Noble 2021-05-12 09:08:21 PDT
Created attachment 428376 [details]
Patch
Comment 3 Jer Noble 2021-05-12 09:19:12 PDT
Created attachment 428377 [details]
Patch
Comment 4 EWS 2021-05-12 11:00:31 PDT
Committed r277379 (237635@main): <https://commits.webkit.org/237635@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 428377 [details].
Comment 5 Darin Adler 2021-05-12 20:50:07 PDT
Comment on attachment 428377 [details]
Patch

Seems like we could make this more foolproof if we set some kind of "event dispatch forbidden" or "JavaScript forbidden" state somewhere so we can spot mistakes like this instantly with test failures without more sophisticated testing.
Comment 6 Ryosuke Niwa 2021-05-12 22:02:07 PDT
(In reply to Darin Adler from comment #5)
> Comment on attachment 428377 [details]
> Patch
> 
> Seems like we could make this more foolproof if we set some kind of "event
> dispatch forbidden" or "JavaScript forbidden" state somewhere so we can spot
> mistakes like this instantly with test failures without more sophisticated
> testing.

Yeah, we should probably do that in a separate bug since we want to keep this fix small enough to merge into a branch.
Comment 7 Darin Adler 2021-05-13 09:58:33 PDT
(In reply to Ryosuke Niwa from comment #6)
> Yeah, we should probably do that in a separate bug since we want to keep
> this fix small enough to merge into a branch.

Of course! This bug is already fixed.