Issue #15017: Properly handle and report network errors on page loads.

This commit is contained in:
Simon Martin 2017-01-28 21:28:36 +01:00
parent a1187c12ee
commit abc9f785e8
3 changed files with 36 additions and 10 deletions

View file

@ -8768,6 +8768,12 @@
"url": "/_mozilla/mozilla/nested_asap_script.html"
}
],
"mozilla/network_error_page_load.html": [
{
"path": "mozilla/network_error_page_load.html",
"url": "/_mozilla/mozilla/network_error_page_load.html"
}
],
"mozilla/node_compareDocumentPosition.html": [
{
"path": "mozilla/node_compareDocumentPosition.html",

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset="utf-8">
<title>Test for issue #15017</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<html>
<iframe src="http://aowiejfoiawjef" id="foo"></iframe>
</html>
<script>
var t = async_test("Load resource with network error")
var iframe = document.getElementById('foo')
iframe.onload = t.step_func(function(e) { t.done() })
</script>