function xhrPromise(url) { return new Promise(function(resolve, reject) { var xhrRequest = new XMLHttpRequest(); xhrRequest.open('GET', url, true); xhrRequest.responseType = "json"; xhrRequest.onload = function() { if (xhrRequest.status == 200) { if (xhrRequest.response) { resolve(xhrRequest.response); } else { reject({ request: xhrRequest, url:url}); } } else { reject({ request: xhrRequest, url:url}); } }; xhrRequest.onerror = function() { reject({ request: xhrRequest, url:url}); }; xhrRequest.send(); }); } var origin = new URL("https://svn.webkit.org/") var loadJavaScriptCoreFeatures = xhrPromise(new URL("/repository/webkit/trunk/Source/JavaScriptCore/features.json", origin)); var loadWebCoreFeatures = xhrPromise(new URL("/repository/webkit/trunk/Source/WebCore/features.json", origin)); EOF; include("header.inc"); ?>

WebKit Web Platform Status