<?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>155365</bug_id>
          
          <creation_ts>2016-03-11 09:33:00 -0800</creation_ts>
          <short_desc>[ios-sim debug] API tests RequiresUserActionForPlaybackTest.DoesNotRequireUserActionForMediaPlayback and RequiresUserActionForAudioButNotVideoPlayback asserting</short_desc>
          <delta_ts>2016-03-11 14:48:51 -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>Media</component>
          <version>WebKit 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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Jer Noble">jer.noble</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jer.noble</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1173746</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-03-11 09:33:00 -0800</bug_when>
    <thetext>[ios-sim debug] API tests RequiresUserActionForPlaybackTest.DoesNotRequireUserActionForMediaPlayback and RequiresUserActionForAudioButNotVideoPlayback asserting

&lt;https://build.webkit.org/builders/Apple%20iOS%209%20Simulator%20Debug%20WK2%20(Tests)/builds/167/steps/run-api-tests/logs/stdio&gt;

ASSERTION FAILED: videoLayerID
/Volumes/Data/slave/ios-simulator-9-debug/build/Source/WebKit2/UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm(371) : void WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID(uint64_t, uint32_t, const WebCore::IntRect &amp;, float, HTMLMediaElementEnums::VideoFullscreenMode, bool)
1   0x10f787050 WTFCrash
2   0x11198ca52 WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool)
3   0x1119a63bf void IPC::callMemberFunctionImpl&lt;WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;(WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;&amp;&amp;, std::index_sequence&lt;0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;)
4   0x1119a5ef8 void IPC::callMemberFunction&lt;WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;, std::make_index_sequence&lt;6ul&gt; &gt;(std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;&amp;&amp;, WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool))
5   0x1119a3753 void IPC::handleMessage&lt;Messages::WebVideoFullscreenManagerProxy::SetupFullscreenWithID, WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool)&gt;(IPC::MessageDecoder&amp;, WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool))
6   0x1119a249c WebKit::WebVideoFullscreenManagerProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
7   0x1112cd7a4 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
8   0x1111cd037 WebKit::ChildProcessProxy::dispatchMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
9   0x1118a006a WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
10  0x1118a0167 non-virtual thunk to WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
11  0x1111dbc93 IPC::Connection::dispatchMessage(IPC::MessageDecoder&amp;)
12  0x1111d2f71 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)
13  0x1111dc28f IPC::Connection::dispatchOneMessage()
14  0x1111ebb5d IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10::operator()() const
15  0x1111ebb2d void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&amp;&gt;(IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&amp;&amp;&amp;)
16  0x1111eb97c std::__1::__function::__func&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10, std::__1::allocator&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&gt;, void ()&gt;::operator()()
17  0x10f1be60a std::__1::function&lt;void ()&gt;::operator()() const
18  0x10f7d427d WTF::RunLoop::performWork()
19  0x10f7d4964 WTF::RunLoop::performWork(void*)
20  0x11c5ac0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
21  0x11c5a1fcc __CFRunLoopDoSources0
22  0x11c5a1483 __CFRunLoopRun
23  0x11c5a0e98 CFRunLoopRunSpecific
24  0x11bc40891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
25  0x10e2fb793 TestWebKitAPI::Util::run(bool*)
26  0x10e4b647c RequiresUserActionForPlaybackTest::testVideoWithAudio()
27  0x10e4b490a RequiresUserActionForPlaybackTest_DoesNotRequireUserActionForMediaPlayback_Test::TestBody()
28  0x10e4d199a testing::Test::Run()
29  0x10e4d227d testing::internal::TestInfoImpl::Run()
30  0x10e4d2e1d testing::TestCase::Run()
31  0x10e4d8da2 testing::internal::UnitTestImpl::RunAllTests()

ASSERTION FAILED: videoLayerID
/Volumes/Data/slave/ios-simulator-9-debug/build/Source/WebKit2/UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm(371) : void WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID(uint64_t, uint32_t, const WebCore::IntRect &amp;, float, HTMLMediaElementEnums::VideoFullscreenMode, bool)
1   0x1096d4050 WTFCrash
2   0x10b8d9a52 WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool)
3   0x10b8f33bf void IPC::callMemberFunctionImpl&lt;WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;(WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;&amp;&amp;, std::index_sequence&lt;0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;)
4   0x10b8f2ef8 void IPC::callMemberFunction&lt;WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool), std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;, std::make_index_sequence&lt;6ul&gt; &gt;(std::__1::tuple&lt;unsigned long long, unsigned int, WebCore::IntRect, float, unsigned int, bool&gt;&amp;&amp;, WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool))
5   0x10b8f0753 void IPC::handleMessage&lt;Messages::WebVideoFullscreenManagerProxy::SetupFullscreenWithID, WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool)&gt;(IPC::MessageDecoder&amp;, WebKit::WebVideoFullscreenManagerProxy*, void (WebKit::WebVideoFullscreenManagerProxy::*)(unsigned long long, unsigned int, WebCore::IntRect const&amp;, float, unsigned int, bool))
6   0x10b8ef49c WebKit::WebVideoFullscreenManagerProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
7   0x10b21a7a4 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
8   0x10b11a037 WebKit::ChildProcessProxy::dispatchMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
9   0x10b7ed06a WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
10  0x10b7ed167 non-virtual thunk to WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;)
11  0x10b128c93 IPC::Connection::dispatchMessage(IPC::MessageDecoder&amp;)
12  0x10b11ff71 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)
13  0x10b12928f IPC::Connection::dispatchOneMessage()
14  0x10b138b5d IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10::operator()() const
15  0x10b138b2d void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&amp;&gt;(IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&amp;&amp;&amp;)
16  0x10b13897c std::__1::__function::__func&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10, std::__1::allocator&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;)::$_10&gt;, void ()&gt;::operator()()
17  0x10910b60a std::__1::function&lt;void ()&gt;::operator()() const
18  0x10972127d WTF::RunLoop::performWork()
19  0x109721964 WTF::RunLoop::performWork(void*)
20  0x1164f90a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
21  0x1164eefcc __CFRunLoopDoSources0
22  0x1164ee483 __CFRunLoopRun
23  0x1164ede98 CFRunLoopRunSpecific
24  0x115b8d891 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
25  0x108248793 TestWebKitAPI::Util::run(bool*)
26  0x10840354c RequiresUserActionForPlaybackTest::testVideoWithoutAudio()
27  0x10840234e RequiresUserActionForPlaybackTest_RequiresUserActionForAudioButNotVideoPlayback_Test::TestBody()
28  0x10841e99a testing::Test::Run()
29  0x10841f27d testing::internal::TestInfoImpl::Run()
30  0x10841fe1d testing::TestCase::Run()
31  0x108425da2 testing::internal::UnitTestImpl::RunAllTests()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173767</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-03-11 09:59:14 -0800</bug_when>
    <thetext>The tests were added with &lt;https://trac.webkit.org/changeset/197953&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173776</commentid>
    <comment_count>2</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2016-03-11 10:23:01 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; The tests were added with &lt;https://trac.webkit.org/changeset/197953&gt;

I bet that, on the iOS simulator, we are requiring that they enter fullscreen mode to begin playback.  We should (for the purposes of this test) allow them to play inline.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173822</commentid>
    <comment_count>3</comment_count>
      <attachid>273751</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2016-03-11 12:28:42 -0800</bug_when>
    <thetext>Created attachment 273751
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173883</commentid>
    <comment_count>4</comment_count>
      <attachid>273751</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-03-11 14:48:48 -0800</bug_when>
    <thetext>Comment on attachment 273751
Patch

Clearing flags on attachment: 273751

Committed r198048: &lt;http://trac.webkit.org/changeset/198048&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173884</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-03-11 14:48:51 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>273751</attachid>
            <date>2016-03-11 12:28:42 -0800</date>
            <delta_ts>2016-03-11 14:48:48 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-155365-20160311122830.patch</filename>
            <type>text/plain</type>
            <size>1651</size>
            <attacher name="Jer Noble">jer.noble</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk4MDM1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggZTFkZWY4NzQ2MTdkM2NjNTE0MWZiMmY2MmJhZTI4OTRm
MTkwNGM5NS4uZDEwNzM0MWJkZDU5M2Q4Njk1ZWU4ZTZmOWI4ZDQzY2NmZmNkOWE4OSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE2LTAzLTExICBKZXIgTm9ibGUgIDxqZXIubm9ibGVAYXBwbGUuY29tPgorCisgICAg
ICAgIFtpb3Mtc2ltIGRlYnVnXSBBUEkgdGVzdHMgUmVxdWlyZXNVc2VyQWN0aW9uRm9yUGxheWJh
Y2tUZXN0LkRvZXNOb3RSZXF1aXJlVXNlckFjdGlvbkZvck1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