Commit d4a5194
[CE] Correct logic of DefaultEventHandler in HTMLUserMediaElement
Ensure that HTMLUserMediaElement does not initiate multiple concurrent
media stream requests. Previously, rapid user activations could trigger
overlapping requests before the initial one had completed.
Additionally, the activation logic was updated to use the base
capability element's activation handler, ensuring that permission
checks and media requests are correctly synchronized with user events.
Fixed: 5003039
Change-Id: I84f733a590d24d0fa60c08a49fc3a19b9314c695
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7734929
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Thomas Nguyen <tungnh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1616082}1 parent 7fe20e4 commit d4a5194
File tree
3 files changed
+12
-4
lines changed- html/semantics/permission-element/usermedia
3 files changed
+12
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments