Bug 778420 - Fix test_bug372964. r=bholley

--HG--
extra : rebase_source : 7d87cacdf187e743f40b6d56741e7d71101b58ec
This commit is contained in:
Gijs Kruitbosch 2012-08-03 22:19:54 +02:00
parent 8db3ac2304
commit 24690a0849

View File

@ -31,9 +31,10 @@ function eventHandler(evt) {
function test(trusted, type, removeAddedListener, removeSetListener, allowUntrusted) {
if (trusted) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var x1 = SpecialPowers.wrap(new XMLHttpRequest());
} else {
x1 = new XMLHttpRequest();
}
var x1 = new XMLHttpRequest();
var handlerCount = 0;
if (trusted || allowUntrusted || allowUntrusted == undefined) {