Open
Bug 1967917
Opened 10 months ago
Updated 5 months ago
Use an https page in JSObjectsTestUtils.sys.mjs
Categories
(DevTools :: General, task, P3)
DevTools
General
Tracking
(Not tracked)
NEW
People
(Reporter: nchevobbe, Unassigned)
References
Details
At the moment we're using an http page in https://searchfox.org/mozilla-central/rev/02d33f4bf984f65bd394bfd2d19d66569ae2cfe1/devtools/shared/tests/objects/JSObjectsTestUtils.sys.mjs#47-54
const server = AddonTestUtils.createHttpServer({
hosts: ["example.com"],
});
server.registerPathHandler("/", (request, response) => {
response.setHeader("Content-Type", "text/html");
response.write(TEST_PAGE_HTML);
});
This means that some objects that requires a secured context can't be tested (e.g. objects from MIDI and indexedDB APIs)
Updated•5 months ago
|
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•