WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
211585
[macOS] Playhead in Touch Bar continues when loading stalls
https://bugs.webkit.org/show_bug.cgi?id=211585
Summary
[macOS] Playhead in Touch Bar continues when loading stalls
Eric Carlson
Reported
2020-05-07 11:46:42 PDT
Playhead in Touch Bar should stop when loading stalls
Attachments
Patch
(3.15 KB, patch)
2020-05-07 11:50 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch for landing
(3.13 KB, patch)
2020-05-07 14:01 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2020-05-07 11:47:11 PDT
<
rdar://problem/33893306
>
Eric Carlson
Comment 2
2020-05-07 11:50:52 PDT
Created
attachment 398771
[details]
Patch
Darin Adler
Comment 3
2020-05-07 12:56:26 PDT
Comment on
attachment 398771
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398771&action=review
> Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:146 > + bool isPlaying = this->isPlaying() && !this->isStalled();
No need for the second "this->". The first one is needed because of a conflict with the name of the local variable we are setting.
> Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:436 > + return m_mediaElement ? m_mediaElement->readyState() <= HTMLMediaElement::HAVE_CURRENT_DATA : false;
I like using && for expressions like this one.
Eric Carlson
Comment 4
2020-05-07 13:57:31 PDT
Comment on
attachment 398771
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398771&action=review
Thanks for the review!
>> Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:146 >> + bool isPlaying = this->isPlaying() && !this->isStalled(); > > No need for the second "this->". The first one is needed because of a conflict with the name of the local variable we are setting.
Fixed.
>> Source/WebCore/platform/cocoa/PlaybackSessionModelMediaElement.mm:436 >> + return m_mediaElement ? m_mediaElement->readyState() <= HTMLMediaElement::HAVE_CURRENT_DATA : false; > > I like using && for expressions like this one.
That is nicer, changed.
Eric Carlson
Comment 5
2020-05-07 14:01:25 PDT
Created
attachment 398795
[details]
Patch for landing
EWS
Comment 6
2020-05-07 16:08:49 PDT
Committed
r261342
: <
https://trac.webkit.org/changeset/261342
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 398795
[details]
.
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