<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>145575</bug_id>
          
          <creation_ts>2015-06-02 15:18:48 -0700</creation_ts>
          <short_desc>MediaSessions should keep track of their current state</short_desc>
          <delta_ts>2015-06-02 17:45:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>145411</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Rajca">mrajca</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>conrad_shultz</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>mrajca</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1098932</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Rajca">mrajca</who>
    <bug_when>2015-06-02 15:18:48 -0700</bug_when>
    <thetext>Per the Media Session spec, each Media Session has a current state, which is &apos;Idle&apos; at the time of construction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098935</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-06-02 15:19:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/21210114&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098939</commentid>
    <comment_count>2</comment_count>
      <attachid>254113</attachid>
    <who name="Matt Rajca">mrajca</who>
    <bug_when>2015-06-02 15:33:19 -0700</bug_when>
    <thetext>Created attachment 254113
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098945</commentid>
    <comment_count>3</comment_count>
      <attachid>254113</attachid>
    <who name="Conrad Shultz">conrad_shultz</who>
    <bug_when>2015-06-02 15:41:39 -0700</bug_when>
    <thetext>Comment on attachment 254113
Patch

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

&gt; Source/WebCore/Modules/mediasession/MediaSession.h:55
&gt; +    };

Will this state eventually be exposed publicly? If so, should this start out outside the private section?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098949</commentid>
    <comment_count>4</comment_count>
      <attachid>254113</attachid>
    <who name="Matt Rajca">mrajca</who>
    <bug_when>2015-06-02 15:44:21 -0700</bug_when>
    <thetext>Comment on attachment 254113
Patch

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

&gt;&gt; Source/WebCore/Modules/mediasession/MediaSession.h:55
&gt;&gt; +    };
&gt; 
&gt; Will this state eventually be exposed publicly? If so, should this start out outside the private section?

This state is not exposed in the MediaSession IDL &quot;interface&quot; file, so we should keep it private until we actually need to access it outside of the Media Session itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098958</commentid>
    <comment_count>5</comment_count>
      <attachid>254113</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-06-02 16:03:19 -0700</bug_when>
    <thetext>Comment on attachment 254113
Patch

This is good, but I think it should be included with some changes that actually use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098986</commentid>
    <comment_count>6</comment_count>
      <attachid>254113</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-06-02 17:45:25 -0700</bug_when>
    <thetext>Comment on attachment 254113
Patch

Clearing flags on attachment: 254113

Committed r185136: &lt;http://trac.webkit.org/changeset/185136&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098987</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-06-02 17:45:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>254113</attachid>
            <date>2015-06-02 15:33:19 -0700</date>
            <delta_ts>2015-06-02 17:45:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-145575-20150602153259.patch</filename>
            <type>text/plain</type>
            <size>1370</size>
            <attacher name="Matt Rajca">mrajca</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg1MTI4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggOWJlNWI0NTM2OTJhZDdi
MDAyYWY4YTFjMDhhMjk2ZGNiOTkzYTI2Ni4uODE3ZmNlNDU3MmUzY2ZiMGU0NTVjYjgxNDhkNTVk
Mzk1YjQ4MGRhNCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDE1LTA2LTAyICBNYXR0
IFJhamNhICA8bXJhamNhQGFwcGxlLmNvbT4KKworICAgICAgICBNZWRpYVNlc3Npb25zIHNob3Vs
ZCBrZWVwIHRyYWNrIG9mIHRoZWlyIGN1cnJlbnQgc3RhdGUuCisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDU1NzUKKworICAgICAgICBSZXZpZXdlZC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