WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147414
Media Session: test Play/Pause media control events delivered to non-Content media sessions
https://bugs.webkit.org/show_bug.cgi?id=147414
Summary
Media Session: test Play/Pause media control events delivered to non-Content ...
Matt Rajca
Reported
2015-07-29 12:04:38 PDT
Add tests to ensure that Transient, Transient Solo, and Ambient media sessions don't respond to media control events.
Attachments
Patch
(5.65 KB, patch)
2015-07-29 14:50 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-07-29 12:05:16 PDT
<
rdar://problem/22056208
>
Matt Rajca
Comment 2
2015-07-29 14:50:12 PDT
Created
attachment 257774
[details]
Patch
Eric Carlson
Comment 3
2015-07-30 07:37:33 PDT
Comment on
attachment 257774
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257774&action=review
> LayoutTests/media/session/play-pause-media-events-in-non-content-sessions.html:31 > + video.play();
Nit: If you want to add the event listener with "video.on<event type>", I think it will make the test results easier to understand if you log the event name as you would if you used waitForEvent, eg: consoleWrite("EVENT(" + event.type + ")");
> LayoutTests/media/session/play-pause-media-events-in-non-content-sessions.html:62 > + <p>'Transient' sessions should not respond to Play/Pause media control events.</p>
You are testing both transient and ambient sessions.
Matt Rajca
Comment 4
2015-07-30 15:12:34 PDT
(In reply to
comment #3
)
> Comment on
attachment 257774
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=257774&action=review
> > > LayoutTests/media/session/play-pause-media-events-in-non-content-sessions.html:31 > > + video.play(); > > Nit: If you want to add the event listener with "video.on<event type>", I > think it will make the test results easier to understand if you log the > event name as you would if you used waitForEvent, eg: > > consoleWrite("EVENT(" + event.type + ")");
I switched to `waitForEvent`.
> > > LayoutTests/media/session/play-pause-media-events-in-non-content-sessions.html:62 > > + <p>'Transient' sessions should not respond to Play/Pause media control events.</p> > > You are testing both transient and ambient sessions.
Good catch.
Matt Rajca
Comment 5
2015-07-30 15:14:00 PDT
Committed
r187612
: <
http://trac.webkit.org/changeset/187612
>
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