<?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>219355</bug_id>
          
          <creation_ts>2020-11-30 06:51:51 -0800</creation_ts>
          <short_desc>[GStreamer] SleepDisabler leaked when closing tab</short_desc>
          <delta_ts>2021-06-28 10:16:36 -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>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=186971</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=219354</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=219353</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>DoNotImportToRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1710592</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-11-30 06:51:51 -0800</bug_when>
    <thetext>Add some WTFLogAlways() debug to the SleepDisabler constructor and destructor to see when it is created and destroyed. Start playing a YouTube video and note that a SleepDisabler is created. Then close the browser tab. Notice that the destructor never runs: the SleepDisabler has somehow been leaked.

This might be a media bug, or it might be a higher-level bug if some other code is leaking the entire media player (hopefully not?). I&apos;m not sure what is happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1772995</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-06-28 01:52:48 -0700</bug_when>
    <thetext>I can&apos;t reproduce this after fixing bug 219353.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773053</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-06-28 07:11:46 -0700</bug_when>
    <thetext>I can no longer reproduce this, so I&apos;ll close this. But see also bug #219354.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1773110</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-06-28 10:16:36 -0700</bug_when>
    <thetext>After more testing, I&apos;m fairly confident this is reliably fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>