<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28505</bug_id>
          
          <creation_ts>2015-04-17 16:58:18 +0000</creation_ts>
          <short_desc>Synchronous XHR removal makes patching Error.prepareStackTrace impossible</short_desc>
          <delta_ts>2016-08-12 08:47:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>XHR</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <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="Evan Wallace">evan.exe</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>evan.exe</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      <flag name="needinfo"
          id="24"
          type_id="3"
          status="?"
          setter="annevk"
          requestee="evan.exe"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119641</commentid>
    <comment_count>0</comment_count>
    <who name="Evan Wallace">evan.exe</who>
    <bug_when>2015-04-17 16:58:18 +0000</bug_when>
    <thetext>I&apos;ve got a library that fixes Error.prototype.stack in V8 to work with source maps because Google refuses to fix this themselves (http://crbug.com/376409). However, it&apos;s recently come to my attention (https://github.com/evanw/node-source-map-support/issues/49) that this is about to break due to removal of synchronous XHR (https://xhr.spec.whatwg.org/#sync-warning).

Because of the way the API Error.prepareStackTrace API works, I need to fetch the source map before returning from the callback. I can&apos;t know what the URLs will be ahead of time and fetch them because 1) errors may happen before the source map download completes and 2) new code with the &quot;//# sourceMappingURL&quot; pragma can be created with eval at any time.

I understand the goals of removing synchronous XHR but my library legitimately needs this feature. Breaking this feature will greatly harm debugging for languages that are cross-compiled to JavaScript. The slowness of synchronous XHR doesn&apos;t matter here because it&apos;s just for debugging, not for production environments.

What are people&apos;s thoughts on this? Is there maybe some way to add a way in the spec to still allow synchronous XHR in certain circumstances?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119680</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-20 11:38:00 +0000</bug_when>
    <thetext>Is it not better to fix the bug in V8?

The bug you point to is marked as fixed. Can you file a new issue with the remaining bug(s) and make it block https://code.google.com/p/chromium/issues/detail?id=392311 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127129</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-08-12 08:47:26 +0000</bug_when>
    <thetext>If this continuous to be a problem, please contribute to this thread on GitHub: https://github.com/whatwg/xhr/issues/20

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>