<?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>207874</bug_id>
          
          <creation_ts>2020-02-17 18:12:56 -0800</creation_ts>
          <short_desc>TestWebKitAPI.WebKit.AllowsContentJavaScript fails on iPad simulator</short_desc>
          <delta_ts>2020-05-08 14:42:10 -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>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1620022</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-02-17 18:12:56 -0800</bug_when>
    <thetext>TestWebKitAPI.WebKit.AllowsContentJavaScript, added with https://trac.webkit.org/changeset/256715/webkit, fails when run with iPad simulator with the following output:

    TestWebKitAPI.WebKit.AllowsContentJavaScript
        LEAK: 1 WebProcessPool
        LEAK: 1 WebPageProxy
        
        File name unavailable
        Unknown C++ exception thrown in the test body.
        
Example of failure:
https://build.webkit.org/builders/Apple%20iPadOS%2013%20Simulator%20Debug%20WK2%20(Tests)/builds/1339

Result history:
https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.WebKit.AllowsContentJavaScript</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620023</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-02-17 18:13:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/59534712&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620407</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-18 15:56:03 -0800</bug_when>
    <thetext>Similar symptom to bug 207525, but the fix should have covered iPad as well, so probably something different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620429</commentid>
    <comment_count>3</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2020-02-18 16:29:48 -0800</bug_when>
    <thetext>It’s definitely not the same issue as webkit.org/b/207525:

(lldb) bt
error: invalid thread
Process 45639 stopped
* thread #1, queue = &apos;com.apple.main-thread&apos;, stop reason = breakpoint 1.1
    frame #0: 0x000000010aadc982 libobjc.A.dylib`objc_exception_throw
libobjc.A.dylib`objc_exception_throw:
-&gt;  0x10aadc982 &lt;+0&gt;: pushq  %rbp
    0x10aadc983 &lt;+1&gt;: movq   %rsp, %rbp
    0x10aadc986 &lt;+4&gt;: pushq  %r15
    0x10aadc988 &lt;+6&gt;: pushq  %r14
Target 0: (TestWebKitAPI) stopped.
(lldb) bt
* thread #1, queue = &apos;com.apple.main-thread&apos;, stop reason = breakpoint 1.1
  * frame #0: 0x000000010aadc982 libobjc.A.dylib`objc_exception_throw
    frame #1: 0x000000010ad17b2c CoreFoundation`+[NSException raise:format:] + 188
    frame #2: 0x0000000111dad922 WebKit`WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(this=0x00007fe39ad3c520, actionPolicy=WKNavigationActionPolicyAllow, policiesOrPreferences=0x00007fe3aac2a220)::$_2::operator()(WKNavigationActionPolicy, objc_object*) at NavigationState.mm:605:17
    frame #3: 0x0000000111dadeff WebKit`WTF::BlockPtr&lt;void (WKNavigationActionPolicy, objc_object*)&gt; WTF::BlockPtr&lt;void (this=0x00007fe39ad3c500, ptr=0x00007fe39ad3c500, args=WKNavigationActionPolicyAllow, args=0x00007fe3aac2a220)&gt;::fromCallable&lt;WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&amp;, WTF::Ref&lt;API::NavigationAction, WTF::DumbPtrTraits&lt;API::NavigationAction&gt; &gt;&amp;&amp;, WTF::Ref&lt;WebKit::WebFramePolicyListenerProxy, WTF::DumbPtrTraits&lt;WebKit::WebFramePolicyListenerProxy&gt; &gt;&amp;&amp;, API::Object*)::$_2&gt;(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&amp;, WTF::Ref&lt;API::NavigationAction, WTF::DumbPtrTraits&lt;API::NavigationAction&gt; &gt;&amp;&amp;, WTF::Ref&lt;WebKit::WebFramePolicyListenerProxy, WTF::DumbPtrTraits&lt;WebKit::WebFramePolicyListenerProxy&gt; &gt;&amp;&amp;, API::Object*)::$_2)::&apos;lambda&apos;(void*, WKNavigationActionPolicy, objc_object*)::operator()(void*, WKNavigationActionPolicy, objc_object*) const at BlockPtr.h:99:20
    frame #4: 0x0000000111dadea5 WebKit`WTF::BlockPtr&lt;void (WKNavigationActionPolicy, objc_object*)&gt; WTF::BlockPtr&lt;void (ptr=0x00007fe39ad3c500, args=WKNavigationActionPolicyAllow, args=0x00007fe3aac2a220)&gt;::fromCallable&lt;WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&amp;, WTF::Ref&lt;API::NavigationAction, WTF::DumbPtrTraits&lt;API::NavigationAction&gt; &gt;&amp;&amp;, WTF::Ref&lt;WebKit::WebFramePolicyListenerProxy, WTF::DumbPtrTraits&lt;WebKit::WebFramePolicyListenerProxy&gt; &gt;&amp;&amp;, API::Object*)::$_2&gt;(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&amp;, WTF::Ref&lt;API::NavigationAction, WTF::DumbPtrTraits&lt;API::NavigationAction&gt; &gt;&amp;&amp;, WTF::Ref&lt;WebKit::WebFramePolicyListenerProxy, WTF::DumbPtrTraits&lt;WebKit::WebFramePolicyListenerProxy&gt; &gt;&amp;&amp;, API::Object*)::$_2)::&apos;lambda&apos;(void*, WKNavigationActionPolicy, objc_object*)::__invoke(void*, WKNavigationActionPolicy, objc_object*) at BlockPtr.h:98:25
    frame #5: 0x0000000106dd6e05 TestWebKitAPI`__68-[TestNavigationDelegate waitForDidFinishNavigationWithPreferences:]_block_invoke(.block_descriptor=0x00007fe39d7093e0, action=0x00007fe39ad4c740, (null)=0x00007fe39ad47e90, handler=0x0000000111dade80) at TestNavigationDelegate.mm:125:9
    frame #6: 0x0000000106dd61b4 TestWebKitAPI`-[TestNavigationDelegate webView:decidePolicyForNavigationAction:preferences:decisionHandler:](self=0x00007fe39d70c160, _cmd=&quot;webView:decidePolicyForNavigationAction:preferences:decisionHandler:&quot;, webView=0x00007fe39c010400, navigationAction=0x00007fe39ad4c740, preferences=0x00007fe39ad47e90, decisionHandler=0x0000000111dade80) at TestNavigationDelegate.mm:38:9
    frame #7: 0x0000000111d9bca0 WebKit`WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(this=0x00000001475c6040, webPageProxy=0x00007fe39c856420, navigationAction=0x00007ffee93fc8d8, listener=0x00007ffee93fc9c8, userInfo=0x0000000000000000) at NavigationState.mm:646:13
    frame #8: 0x0000000111f7d8b2 WebKit`WebKit::WebPageProxy::decidePolicyForNavigationAction(this=0x00007fe39c856420, process=0x00007ffee93fcff8, frame=0x00007fe39d70ff00, frameSecurityOrigin=0x00007ffee93fd420, navigationID=6, navigationActionData=0x00007ffee93fd450, originatingFrameInfoData=0x00007ffee93fd528, originatingPageID=Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt; @ 0x00007ffee93fcfe8, originalRequest=0x00007ffee93fd670, request=0x00007ffee93fd778, requestBody=0x00007ffee93fd880, redirectResponse=0x00007ffee93fd888, userData=0x00007ffee93fd980, sender=0x00007ffee93fd040) at WebPageProxy.cpp:5086:29
    frame #9: 0x0000000111f7c4b5 WebKit`WebKit::WebPageProxy::decidePolicyForNavigationActionAsyncShared(this=0x00007fe39c856420, process=0x00007ffee93fd1f0, webPageID=(m_identifier = 7), frameID=(m_identifier = 20), frameSecurityOrigin=0x00007ffee93fd420, identifier=PolicyCheckIdentifier @ 0x00007ffee93fd0c0, navigationID=0, navigationActionData=0x00007ffee93fd450, frameInfoData=0x00007ffee93fd528, originatingPageID=Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt; @ 0x00007ffee93fd1c0, originalRequest=0x00007ffee93fd670, request=0x00007ffee93fd778, requestBody=0x00007ffee93fd880, redirectResponse=0x00007ffee93fd888, userData=0x00007ffee93fd980, listenerID=6) at WebPageProxy.cpp:4926:5
    frame #10: 0x0000000111f7c166 WebKit`WebKit::WebPageProxy::decidePolicyForNavigationActionAsync(this=0x00007fe39c856420, frameID=(m_identifier = 20), frameSecurityOrigin=0x00007ffee93fd420, identifier=PolicyCheckIdentifier @ 0x00007ffee93fd210, navigationID=0, navigationActionData=0x00007ffee93fd450, frameInfoData=0x00007ffee93fd528, originatingPageID=Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt; @ 0x00007ffee93fd310, originalRequest=0x00007ffee93fd670, request=0x00007ffee93fd778, requestBody=0x00007ffee93fd880, redirectResponse=0x00007ffee93fd888, userData=0x00007ffee93fd980, listenerID=6) at WebPageProxy.cpp:4910:5
    frame #11: 0x0000000112a637ce WebKit`void IPC::callMemberFunctionImpl&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long), std::__1::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData, WebKit::FrameInfoData, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest, WebCore::ResourceRequest, IPC::FormDataReference, WebCore::ResourceResponse, WebKit::UserData, unsigned long long&gt;, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul, 9ul, 10ul, 11ul, 12ul&gt;(object=0x00007fe39c856420, function=30 bf f7 11 01 00 00 00 00 00 00 00 00 00 00 00, args=size=13, (null)=std::__1::index_sequence&lt;0UL, 1UL, 2UL, 3UL, 4UL, 5UL, 6UL, 7UL, 8UL, 9UL, 10UL, 11UL, 12UL&gt; @ 0x00007ffee93fd358)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long), std::__1::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData, WebKit::FrameInfoData, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest, WebCore::ResourceRequest, IPC::FormDataReference, WebCore::ResourceResponse, WebKit::UserData, unsigned long long&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul, 9ul, 10ul, 11ul, 12ul&gt;) at HandleMessage.h:41:5
    frame #12: 0x0000000112a63570 WebKit`void IPC::callMemberFunction&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long), std::__1::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData, WebKit::FrameInfoData, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest, WebCore::ResourceRequest, IPC::FormDataReference, WebCore::ResourceResponse, WebKit::UserData, unsigned long long&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul, 9ul, 10ul, 11ul, 12ul&gt; &gt;(args=size=13, object=0x00007fe39c856420, function=30 bf f7 11 01 00 00 00 00 00 00 00 00 00 00 00)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long)) at HandleMessage.h:47:5
    frame #13: 0x0000000112a3ff1b WebKit`void IPC::handleMessage&lt;Messages::WebPageProxy::DecidePolicyForNavigationActionAsync, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long)&gt;(decoder=0x0000000147559d00, object=0x00007fe39c856420, function=30 bf f7 11 01 00 00 00 00 00 00 00 00 00 00 00)(WTF::ObjectIdentifier&lt;WebCore::FrameIdentifierType&gt;, WebCore::SecurityOriginData&amp;&amp;, WebCore::PolicyCheckIdentifier, unsigned long long, WebKit::NavigationActionData&amp;&amp;, WebKit::FrameInfoData&amp;&amp;, WTF::Optional&lt;WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt; &gt;, WebCore::ResourceRequest const&amp;, WebCore::ResourceRequest&amp;&amp;, IPC::FormDataReference&amp;&amp;, WebCore::ResourceResponse&amp;&amp;, WebKit::UserData const&amp;, unsigned long long)) at HandleMessage.h:120:5
(lldb) po $arg1
WKWebpagePreferences._customUserAgent must be nil for subframe navigations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620433</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-02-18 16:35:00 -0800</bug_when>
    <thetext>&gt; WKWebpagePreferences._customUserAgent must be nil for subframe navigations.

That... Sounds like a big deal?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628941</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-03-11 17:16:45 -0700</bug_when>
    <thetext>This continues to fail on the iPad simulator bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1650778</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-05-08 14:42:10 -0700</bug_when>
    <thetext>Disabled the test for iOS with r261418</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>