<?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>199139</bug_id>
          
          <creation_ts>2019-06-23 17:16:48 -0700</creation_ts>
          <short_desc>REGRESSION (r246714): ASSERTION FAILED: m_prototype.get().isEmpty() || isValidPrototype(m_prototype.get()) seen with API and JSC tests</short_desc>
          <delta_ts>2019-06-24 20:38:01 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>196315</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=196315</see_also>
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547227</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-23 17:16:48 -0700</bug_when>
    <thetext>These tests are failing an assertion after r246714:

    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextAddCustomPropertiesFromJSTest
    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextAddCustomPropertiesFromObjCTest
    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextSanity2
    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextSanity1
    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextBackForwardCacheTest
    TestWebKitAPI.WebKitLegacy.DidCreateJavaScriptContextCallJSFunctionFromObjCCallbackTest
    TestWebKitAPI.WebKitLegacy.ReportExceptionTest

        ASSERTION FAILED: m_prototype.get().isEmpty() || isValidPrototype(m_prototype.get())
        /Volumes/Data/slave/mojave-debug/build/Source/JavaScriptCore/runtime/Structure.h(145) : void JSC::Structure::finishCreation(JSC::VM &amp;)
        1   0x10442fdb9 WTFCrash
        2   0x104432b7b WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x104985dc9 JSC::Structure::finishCreation(JSC::VM&amp;)
        4   0x10496bff9 JSC::Structure::create(JSC::VM&amp;, JSC::JSGlobalObject*, JSC::JSValue, JSC::TypeInfo const&amp;, JSC::ClassInfo const*, unsigned char, unsigned int)
        5   0x10496be85 JSC::JSCallbackObject&lt;JSC::JSAPIWrapperObject&gt;::createStructure(JSC::VM&amp;, JSC::JSGlobalObject*, JSC::JSValue)
        6   0x1049b6949 -[JSObjCClassInfo structureInContext:]
        7   0x1049b6409 -[JSObjCClassInfo wrapperForObject:inContext:]
        8   0x1049b73d1 -[JSWrapperMap jsWrapperForObject:inContext:]
        9   0x10496e6bd -[JSContext(Internal) wrapperForObjCObject:]
        10  0x10497a198 objectToValueWithoutCopy(JSContext*, objc_object*)
        11  0x104972e4f objectToValue(JSContext*, objc_object*)
        12  0x104975cc3 -[JSValue setValue:forProperty:]
        13  0x104978307 -[JSValue(SubscriptSupport) setObject:forKeyedSubscript:]
        14  0x10496e12c -[JSContext(SubscriptSupport) setObject:forKeyedSubscript:]
        15  0x102d1ae89 -[DidCreateJavaScriptContextFrameLoadDelegate webView:didCreateJavaScriptContext:forFrame:]
        16  0x10af79c39 objc_object* wtfCallIMP&lt;objc_object*, WebView*, objc_object*, objc_object*&gt;(void (*)(), objc_object*, objc_selector*, WebView*, objc_object*, objc_object*)
        17  0x10af77ed5 CallDelegate(void (*)(), WebView*, objc_object*, objc_selector*, objc_object*, objc_object*)
        18  0x10af77e75 CallFrameLoadDelegate(void (*)(), WebView*, objc_selector*, objc_object*, objc_object*)
        19  0x10afb406f WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld&amp;)
        20  0x1193018fc WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld&amp;)
        21  0x1184431f8 WebCore::ScriptController::initScriptForWindowProxy(WebCore::JSWindowProxy&amp;)
        22  0x118497b73 WebCore::WindowProxy::createJSWindowProxyWithInitializedScript(WebCore::DOMWrapperWorld&amp;)
        23  0x118431936 WebCore::WindowProxy::jsWindowProxy(WebCore::DOMWrapperWorld&amp;)
        24  0x1184420bc WebCore::ScriptController::jsWindowProxy(WebCore::DOMWrapperWorld&amp;)
        25  0x118441ead WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;, WebCore::ExceptionDetails*)
        26  0x11844233d WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;, WebCore::ExceptionDetails*)
        27  0x118b12af1 WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&amp;)
        28  0x118b10f58 WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport)
        29  0x118fb1037 WebCore::HTMLScriptRunner::runScript(WebCore::ScriptElement&amp;, WTF::TextPosition const&amp;)
        30  0x118fb0e5f WebCore::HTMLScriptRunner::execute(WTF::Ref&lt;WebCore::ScriptElement, WTF::DumbPtrTraits&lt;WebCore::ScriptElement&gt; &gt;&amp;&amp;, WTF::TextPosition const&amp;)
        31  0x118f97dfb WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder()

https://build.webkit.org/builders/Apple%20Mojave%20Debug%20WK2%20%28Tests%29/builds/3224/steps/run-api-tests/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547228</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-23 17:18:28 -0700</bug_when>
    <thetext>Also seen with 34 JSC tests:

https://build.webkit.org/builders/Apple%20High%20Sierra%20Debug%20JSC%20%28Tests%29/builds/3083</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547495</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-24 12:52:33 -0700</bug_when>
    <thetext>Yusuke, is this fixed with https://bugs.webkit.org/show_bug.cgi?id=199144?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547621</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-24 20:38:01 -0700</bug_when>
    <thetext>The change was rolled out.

*** This bug has been marked as a duplicate of bug 196315 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>