[Webkit-unassigned] [Bug 50581] Make TestResultsServer return empty JSON or 404 for non-existing results files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 6 14:05:47 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=50581





--- Comment #6 from Ojan Vafai <ojan at chromium.org>  2010-12-06 14:05:47 PST ---
Looks like a webkit bug. At first glance, it seems we don't fire the error event for a 404 if the file contents are empty. Firefox fires the error event in this case. As a workaround, on the JS side, we can listen to the load event as well and check if the script is empty, e.g., 

<script
  id="foo" 
  src="http://test-results-test.appspot.com/testfile?builder=Linux%20Builder%20(Views%20dbg)&master=Chromium&testtype=unit_tests&name=results.json"
  onload="alert('innerHTML=\'' + document.getElementById('foo').innerHTML + '\'');"
  onerror="alert('error')"></script>

Eventually, we can fix the webkit bug and won't need this anymore.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list