WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148109
Media Session: don't begin listening for interruptions when an interruption provider is created
https://bugs.webkit.org/show_bug.cgi?id=148109
Summary
Media Session: don't begin listening for interruptions when an interruption p...
Matt Rajca
Reported
2015-08-17 17:01:25 PDT
If we call beginListeningForInterruption in MediaSessionInterruptionProvider's constructor, the current class's implementation will get called, not implementations provided by subclasses (this makes sense since base classes are initialized before derived classes). To fix this, we let clients of MediaSessionInterruptionProvider start listening for interruptions instead.
Attachments
Patch
(2.58 KB, patch)
2015-08-17 17:06 PDT
,
Matt Rajca
eric.carlson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-08-17 17:02:42 PDT
<
rdar://problem/22317444
>
Matt Rajca
Comment 2
2015-08-17 17:06:49 PDT
Created
attachment 259212
[details]
Patch
Eric Carlson
Comment 3
2015-08-18 08:20:03 PDT
Comment on
attachment 259212
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=259212&action=review
> Source/WebCore/Modules/mediasession/MediaSessionManager.cpp:48 > + m_interruptionProvider->beginListeningForInterruptions();
Shouldn't this and stopListeningForInterruptions be pure virtual?
Matt Rajca
Comment 4
2015-08-18 18:04:13 PDT
(In reply to
comment #3
)
> Comment on
attachment 259212
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=259212&action=review
> > > Source/WebCore/Modules/mediasession/MediaSessionManager.cpp:48 > > + m_interruptionProvider->beginListeningForInterruptions(); > > Shouldn't this and stopListeningForInterruptions be pure virtual?
Yeah. That wasn't possible before since we were calling these in MediaSessionInterruptionProvider's constructor/destructor, but now that that responsibility has been demoted to the caller, I'll make the switch.
Matt Rajca
Comment 5
2015-08-18 18:05:22 PDT
Committed
r188615
: <
http://trac.webkit.org/changeset/188615
>
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