<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - JavaScript is not correctly connecting to rest api in iOS 10.3 beta"
   href="https://bugs.webkit.org/show_bug.cgi?id=169970#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - JavaScript is not correctly connecting to rest api in iOS 10.3 beta"
   href="https://bugs.webkit.org/show_bug.cgi?id=169970">bug 169970</a>
              from <span class="vcard"><a class="email" href="mailto:thomasmulhall410&#64;yahoo.com" title="paladox &lt;thomasmulhall410&#64;yahoo.com&gt;"> <span class="fn">paladox</span></a>
</span></b>
        <pre>It looks like polygerrit uses <a href="https://github.com/github/fetch/">https://github.com/github/fetch/</a>

Example code

   fetchJSON: function(url, opt_errFn, opt_cancelCondition, opt_params,
        opt_opts) {
      opt_opts = opt_opts || {};
      var fetchOptions = {
        credentials: 'same-origin',
        headers: opt_opts.headers,
      };

      var urlWithParams = this._urlWithParams(url, opt_params);
      return fetch(urlWithParams, fetchOptions).then(function(response) {
        if (opt_cancelCondition &amp;&amp; opt_cancelCondition()) {
          response.body.cancel();
          return;
        }

        if (!response.ok) {
          if (opt_errFn) {
            opt_errFn.call(null, response);
            return;
          }
          this.fire('server-error', {response: response});
          return;
        }

        return this.getResponseObject(response);
      }.bind(this)).catch(function(err) {
        if (opt_errFn) {
          opt_errFn.call(null, null, err);
        } else {
          this.fire('network-error', {error: err});
          throw err;
        }
        throw err;
      }.bind(this));
    },</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>