<?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>137887</bug_id>
          
          <creation_ts>2014-10-20 11:32:19 -0700</creation_ts>
          <short_desc>Lookup of &quot;self&quot; sometimes fails in a worker, making http/tests/security/cross-origin-shared-worker-allowed.html flaky</short_desc>
          <delta_ts>2016-09-09 10:55:42 -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>WebCore JavaScript</component>
          <version>528+ (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, MakingBotsRed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1042899</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-10-20 11:32:19 -0700</bug_when>
    <thetext>http/tests/security/cross-origin-shared-worker-allowed.html is flaky:

+CONSOLE MESSAGE: line 1: ReferenceError: Can&apos;t find variable: self

This test is trivially simple, so it&apos;s a pretty big correctness issue.

In debug builds, it asserts:

Thread 28 Crashed:: WebCore: Worker
0   com.apple.JavaScriptCore      	0x000000010b20bdea WTFCrash + 42 (Assertions.cpp:321)
1   com.apple.JavaScriptCore      	0x000000010afe9776 JSC::HashTable::createTable() const + 70 (Lookup.cpp:31)
2   com.apple.WebCore             	0x00000001106dafeb JSC::HashTable::initializeIfNeeded() const + 43 (Lookup.h:91)
3   com.apple.WebCore             	0x00000001106dad70 JSC::HashTable::entry(JSC::PropertyName) const + 32 (Lookup.h:98)
4   com.apple.WebCore             	0x000000011077d864 bool JSC::getStaticFunctionSlot&lt;JSC::JSObject&gt;(JSC::ExecState*, JSC::HashTable const&amp;, JSC::JSObject*, JSC::PropertyName, JSC::PropertySlot&amp;) + 100 (Lookup.h:229)
5   com.apple.WebCore             	0x0000000110c5d179 WebCore::JSWorkerGlobalScopePrototype::getOwnPropertySlot(JSC::JSObject*, JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&amp;) + 89 (JSWorkerGlobalScope.cpp:634)
6   com.apple.JavaScriptCore      	0x000000010a948b47 JSC::JSObject::fastGetOwnPropertySlot(JSC::ExecState*, JSC::VM&amp;, JSC::Structure&amp;, JSC::PropertyName, JSC::PropertySlot&amp;) + 167 (JSObject.h:1261)
7   com.apple.JavaScriptCore      	0x000000010a948926 JSC::JSObject::getPropertySlot(JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&amp;) + 150 (JSObject.h:1273)
8   com.apple.JavaScriptCore      	0x000000010a96c811 JSC::JSValue::get(JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&amp;) const + 257 (JSCJSValueInlines.h:695)
9   com.apple.JavaScriptCore      	0x000000010afdea21 llint_slow_path_get_by_id + 241 (LLIntSlowPaths.cpp:578)

This is ASSERT(!keys).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061573</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-01-15 10:21:50 -0800</bug_when>
    <thetext>This particular test is no longer relevant, with shared workers being removed. I don&apos;t remember if we hit this crash elsewhere, but the root cause seems unlikely to be specific to shared workers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228220</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-09-09 10:55:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/28228216&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>