<?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>74279</bug_id>
          
          <creation_ts>2011-12-12 02:47:03 -0800</creation_ts>
          <short_desc>[GTK] fullscreen/full-screen-iframe-legacy.html is flaky</short_desc>
          <delta_ts>2012-03-06 09:47:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Philippe Normand">pnormand</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>519087</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-12-12 02:47:03 -0800</bug_when>
    <thetext>[GTK] fullscreen/full-screen-iframe-legacy.html is flaky</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519088</commentid>
    <comment_count>1</comment_count>
      <attachid>118759</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-12-12 02:49:02 -0800</bug_when>
    <thetext>Created attachment 118759
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571839</commentid>
    <comment_count>2</comment_count>
      <attachid>118759</attachid>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2012-03-06 07:24:40 -0800</bug_when>
    <thetext>Comment on attachment 118759
Patch

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

&gt; LayoutTests/ChangeLog:8
&gt; +        * fullscreen/full-screen-iframe-legacy.html: Wait canplaythrough

Nit: &quot;Wait for canplaythrough&quot;

&gt; LayoutTests/fullscreen/full-screen-iframe-legacy.html:31
&gt; +    video.load();

This should be unnecessary, setting &apos;src&apos; triggers a load automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571877</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-03-06 08:20:32 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 118759 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=118759&amp;action=review
&gt; 
&gt; &gt; LayoutTests/ChangeLog:8
&gt; &gt; +        * fullscreen/full-screen-iframe-legacy.html: Wait canplaythrough
&gt; 
&gt; Nit: &quot;Wait for canplaythrough&quot;
&gt; 
&gt; &gt; LayoutTests/fullscreen/full-screen-iframe-legacy.html:31
&gt; &gt; +    video.load();
&gt; 
&gt; This should be unnecessary, setting &apos;src&apos; triggers a load automatically.

Hum if I remove that call the test times out. I might be wrong but I think setting &apos;src&apos; on the video is done before the canplaythrough listener is installed on the element. So doing a new load here ensures the event is fired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571895</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2012-03-06 08:58:08 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; &gt; LayoutTests/fullscreen/full-screen-iframe-legacy.html:31
&gt; &gt; &gt; +    video.load();
&gt; &gt; 
&gt; &gt; This should be unnecessary, setting &apos;src&apos; triggers a load automatically.
&gt; 
&gt; Hum if I remove that call the test times out. I might be wrong but I think setting &apos;src&apos; on the video is done before the canplaythrough listener is installed on the element. So doing a new load here ensures the event is fired.

The video element is in another frame so I expect the &apos;canplaythrough&apos; event could fire before or after you attach the listener. I think it would be slightly cleaner to set the &apos;src&apos; from the main frame instead of calling load(), but I already r+&apos;d this so it is your call.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571918</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-03-06 09:46:53 -0800</bug_when>
    <thetext>Committed r109928: &lt;http://trac.webkit.org/changeset/109928&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571920</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-03-06 09:47:45 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; LayoutTests/fullscreen/full-screen-iframe-legacy.html:31
&gt; &gt; &gt; &gt; +    video.load();
&gt; &gt; &gt; 
&gt; &gt; &gt; This should be unnecessary, setting &apos;src&apos; triggers a load automatically.
&gt; &gt; 
&gt; &gt; Hum if I remove that call the test times out. I might be wrong but I think setting &apos;src&apos; on the video is done before the canplaythrough listener is installed on the element. So doing a new load here ensures the event is fired.
&gt; 
&gt; The video element is in another frame so I expect the &apos;canplaythrough&apos; event could fire before or after you attach the listener. I think it would be slightly cleaner to set the &apos;src&apos; from the main frame instead of calling load(), but I already r+&apos;d this so it is your call.

Indeed much cleaner. I applied and tested this suggestion before landing. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118759</attachid>
            <date>2011-12-12 02:49:02 -0800</date>
            <delta_ts>2012-03-06 07:24:40 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-74279-20111212114859.patch</filename>
            <type>text/plain</type>
            <size>2660</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">U3V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gICB9KTsKKworICAgIHZh
ciB2aWRlbyA9IGZyYW1lLmNvbnRlbnREb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgndmlk
ZW8nKVswXTsKKyAgICB2aWRlby5hZGRFdmVudExpc3RlbmVyKCdjYW5wbGF5dGhyb3VnaCcsIGNh
bnBsYXl0aHJvdWdoKTsKKyAgICB2aWRlby5sb2FkKCk7Cit9CiA8L3NjcmlwdD4KIDxpZnJhbWUg
aWQ9ImZyYW1lIiBzcmM9InJlc291cmNlcy9sZWdhY3kuaHRtbCIgb25sb2FkPSJydW5UZXN0KCki
IHdpZHRoPSIzMzYiIGhlaWdodD0iMjU2Ij4KIDwvaWZyYW1lPgo=
</data>
<flag name="review"
          id="118600"
          type_id="1"
          status="+"
          setter="eric.carlson"
    />
          </attachment>
      

    </bug>

</bugzilla>