mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-21 14:55:37 +00:00
chore: Update to Firefox 143.0, c=l10n, common (#10304)
This commit is contained in:
22
src/dom/media/mediaelement/HTMLMediaElement-cpp.patch
Normal file
22
src/dom/media/mediaelement/HTMLMediaElement-cpp.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/dom/media/mediaelement/HTMLMediaElement.cpp b/dom/media/mediaelement/HTMLMediaElement.cpp
|
||||
index d46d5edc1d66c1eee8780abad444289fdc36a518..0e0d69819d9eee82add726792ec829c05551a076 100644
|
||||
--- a/dom/media/mediaelement/HTMLMediaElement.cpp
|
||||
+++ b/dom/media/mediaelement/HTMLMediaElement.cpp
|
||||
@@ -453,6 +453,7 @@ class HTMLMediaElement::MediaControlKeyListener final
|
||||
// audible state. Therefore, in that case we would noitfy the audible state
|
||||
// when media starts playing.
|
||||
if (mState == MediaPlaybackState::ePlayed) {
|
||||
+ NotifyMediaPositionState();
|
||||
NotifyAudibleStateChanged(mIsOwnerAudible
|
||||
? MediaAudibleState::eAudible
|
||||
: MediaAudibleState::eInaudible);
|
||||
@@ -7034,6 +7035,9 @@ void HTMLMediaElement::FireTimeUpdate(TimeupdateType aType) {
|
||||
QueueTask(std::move(runner));
|
||||
mQueueTimeUpdateRunnerTime = TimeStamp::Now();
|
||||
mLastCurrentTime = CurrentTime();
|
||||
+ if (aType == TimeupdateType::eMandatory) {
|
||||
+ mMediaControlKeyListener->NotifyMediaPositionState();
|
||||
+ }
|
||||
}
|
||||
if (mFragmentEnd >= 0.0 && CurrentTime() >= mFragmentEnd) {
|
||||
Pause();
|
||||
Reference in New Issue
Block a user