4 https://bugzilla.mozilla.org/show_bug.cgi?id=847119
8 <title>Test for Bug
847119</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
847119 **/
15 var xhr = new XMLHttpRequest();
16 var domthrows = function() { xhr.open(); };
22 for (var j =
0; j < count; ++j) {
23 try { domthrows(); } catch (e) { ++k; }
27 function g() { return count; }
29 is(f(), count,
"Should get count exceptions");
30 for (let h of [f, g]) {
31 try { is(h(), count,
"Should get count exceptions here too"); } catch (e) {}
33 ok(true,
"We should get here");
35 domthrows = function() { xhr.withCredentials = false; };
39 is(f(), count,
"Should get count exceptions from getter");
40 for (let h of [f, g]) {
41 try { is(h(), count,
"Should get count exceptions from getter here too"); } catch (e) {}
43 ok(true,
"We should get here too");
48 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=847119">Mozilla Bug
847119</a>
50 <div id=
"content" style=
"display: none">