1
0
Fork 0
firefox/testing/web-platform/tests/xhr/resources/responseXML-unavailable-in-worker.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

9 lines
419 B
JavaScript

self.importScripts('/resources/testharness.js');
test(function() {
let xhr = new XMLHttpRequest();
assert_false(xhr.hasOwnProperty("responseXML"), "responseXML should not be available on instances.");
assert_false(XMLHttpRequest.prototype.hasOwnProperty("responseXML"), "responseXML should not be on the prototype.");
}, "XMLHttpRequest's responseXML property should not be exposed in workers.");
done();