(In reply to :Gijs (he/him) from comment #10) > We were already dispatching non-specced events, but they were only visible to our code. The net result from my suggestion would be the same - we're dispatching into the (closed) shadow root, so AIUI the event would never be visible to web code if we didn't do the equivalent of setting `composed: true`. I don't know well how video control handles events from video element, so that is what I was looking for. If we can guarantee that the event won't be visible to web code, then I would totally agree for this way. So the solution would be that we make media element dispatch a normal event `MozNoControlsBlockedVideo` and simply let video control listen to that. In addition, I can copy the old test for this event which got removed unexpectedly when we abandoned Fennec. Do you know where the good place is to put this test? Thank you. [1] https://hg.mozilla.org/integration/autoland/file/7f1d96b0004f2d12a131dbf1116cda7bf3410dfb/mobile/android/tests/browser/chrome/test_mozAutoplayMediaBlocked.html
Bug 1674829 Comment 11 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to :Gijs (he/him) from comment #10) > We were already dispatching non-specced events, but they were only visible to our code. The net result from my suggestion would be the same - we're dispatching into the (closed) shadow root, so AIUI the event would never be visible to web code if we didn't do the equivalent of setting `composed: true`. I don't know well how video control handles events from video element, so that is what I was looking for. If we can guarantee that the event won't be visible to web code, then I would totally agree for this way. So the solution would be that we make media element dispatch a normal event `MozNoControlsBlockedVideo` and simply let video control listen to that. In addition, I can copy the old test [1] for this event which got removed unexpectedly when we abandoned Fennec. Do you know where the good place is to put this test? Thank you. [1] https://hg.mozilla.org/integration/autoland/file/7f1d96b0004f2d12a131dbf1116cda7bf3410dfb/mobile/android/tests/browser/chrome/test_mozAutoplayMediaBlocked.html