<?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>126599</bug_id>
          
          <creation_ts>2014-01-07 14:14:40 -0800</creation_ts>
          <short_desc>Web Inspector: AngularJS + SocketIO + Web Inspector = Locked Webpage</short_desc>
          <delta_ts>2014-03-24 09:07:24 -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>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Moyer">cmoyer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>965161</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Moyer">cmoyer</who>
    <bug_when>2014-01-07 14:14:40 -0800</bug_when>
    <thetext>I have an AngularJS  application that creates several Socket.IO Connections back to a server, and as soon as I open the web inspector, the page freezes up, including the console, and becomes unresponsive. At this point I can&apos;t even close the tab, and have to force-close Webkit (the same happens with Safari, but I can close the tab there).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965162</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-01-07 14:15:51 -0800</bug_when>
    <thetext>&lt;rdar://problem/15766290&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965230</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-01-07 16:03:44 -0800</bug_when>
    <thetext>Chris, do you have a sample page or URL we can inspect to reproduce the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965540</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Moyer">cmoyer</who>
    <bug_when>2014-01-08 10:26:18 -0800</bug_when>
    <thetext>I&apos;ve gathered a few more details on the issue, and it&apos;s not quite what I thought before. I have disabled web sockets, and make Socket.IO use one of the other transports. I also noticed this ONLY happens over SSL.

I&apos;ve created a simple project to show the problem: https://github.com/kopertop/wkcrasher

You don&apos;t even need to have it connect to socket.io on the backend, so I&apos;m not sure if that is exactly the problem, but I know when I try to inspect this over SSL, the app (and inspector) completely hang up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965569</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2014-01-08 11:37:11 -0800</bug_when>
    <thetext>Thanks for creating a test case for us!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965571</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Moyer">cmoyer</who>
    <bug_when>2014-01-08 11:42:07 -0800</bug_when>
    <thetext>Digging a little further, if I comment out line 27 of js/services.js, the app works just fine, no crashes with the console opening up.

So it looks like this only happens when I explicitly set the &quot;transports&quot; of socket.io:

         sockets[namespace] = io.connect(namespace, {
            transports: transports, // This line causes the problem
            &apos;connect timeout&apos;: 500,
            &apos;reconnect&apos;: true,
            &apos;reconnection delay&apos;: 500,
            &apos;reopen delay&apos;: 500,
            &apos;max reconnection attempts&apos;: 10
         });</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993381</commentid>
    <comment_count>6</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2014-03-21 16:53:55 -0700</bug_when>
    <thetext>Can you try your site in a recently nightly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993822</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Moyer">cmoyer</who>
    <bug_when>2014-03-24 09:07:24 -0700</bug_when>
    <thetext>This appears to have fixed the problem. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>