<?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>105894</bug_id>
          
          <creation_ts>2013-01-01 00:11:59 -0800</creation_ts>
          <short_desc>Objective-C API: Objective-C functions exposed to JavaScript stop working after JSContext is released</short_desc>
          <delta_ts>2013-02-21 17:47:02 -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>JavaScriptCore</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>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin Barraclough">barraclough</reporter>
          <assigned_to name="Mark Hahnenberg">mhahnenberg</assigned_to>
          <cc>ggaren</cc>
    
    <cc>mhahnenberg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>798416</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2013-01-01 00:11:59 -0800</bug_when>
    <thetext>Instead we should probably retain a marked reference to the JSGlobalObject, and allocate a new JSContext as necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814497</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2013-01-23 12:23:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/12954143&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839057</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2013-02-21 17:24:11 -0800</bug_when>
    <thetext>I believe this was fixed in http://trac.webkit.org/changeset/143637. I&apos;ll try to write a test to verify this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839085</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2013-02-21 17:47:02 -0800</bug_when>
    <thetext>Actually we already get test coverage for this in the API tests from the aforementioned revision since they use setTimeout with Objective-C callbacks. I set a breakpoint in the code path that checks for null JSContexts in objCCallbackFunctionCallAsFunction and we hit it. So I think we can just close this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>