Bug 148289 - Media Session: let UI clients change the volume of the focused media element
Summary: Media Session: let UI clients change the volume of the focused media element
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 145411
  Show dependency treegraph
 
Reported: 2015-08-20 21:42 PDT by Matt Rajca
Modified: 2015-08-21 17:52 PDT (History)
4 users (show)

See Also:


Attachments
Patch (9.53 KB, patch)
2015-08-20 21:46 PDT, Matt Rajca
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rajca 2015-08-20 21:42:13 PDT
UI clients should be able to adjust the volume of the focused media element.
Comment 1 Radar WebKit Bug Importer 2015-08-20 21:42:45 PDT
<rdar://problem/22374771>
Comment 2 Matt Rajca 2015-08-20 21:46:06 PDT
Created attachment 259583 [details]
Patch
Comment 3 Eric Carlson 2015-08-21 09:12:06 PDT
Comment on attachment 259583 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259583&action=review

Looks good to me.

> Source/WebCore/page/Page.cpp:1232
> +        ExceptionCode code;
> +        element->setVolume(volume, code);

Nit: you should use ASSERT_NO_EXCEPTION here.
Comment 4 Matt Rajca 2015-08-21 17:03:12 PDT
Committed r188775: <http://trac.webkit.org/changeset/188775>
Comment 5 Matt Rajca 2015-08-21 17:52:52 PDT
(In reply to comment #3)
> Comment on attachment 259583 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=259583&action=review
> 
> Looks good to me.
> 
> > Source/WebCore/page/Page.cpp:1232
> > +        ExceptionCode code;
> > +        element->setVolume(volume, code);
> 
> Nit: you should use ASSERT_NO_EXCEPTION here.

Done.