2 var x
= new XMLHttpRequest({ mozAnon
: true, mozSystem
: false });
4 Assert
.ok(x
.mozSystem
); // Because we're system principal
6 x
= new XMLHttpRequest({ mozAnon
: true });
8 Assert
.ok(x
.mozSystem
);
10 x
= new XMLHttpRequest();
12 Assert
.ok(x
.mozSystem
);
14 Services
.prefs
.setBoolPref(
15 "network.fetch.systemDefaultsToOmittingCredentials",
18 x
= new XMLHttpRequest();
19 Assert
.ok(!x
.mozAnon
);
20 Assert
.ok(x
.mozSystem
);