Bug 1842573 - Remove the unused eventBusDispatchToDOM preference from various tests. r=pdfjs-reviewers,perftest-reviewers,marco,sparky

This preference was removed over three years ago, please see the upstream patch in https://github.com/mozilla/pdf.js/pull/11655

Differential Revision: https://phabricator.services.mozilla.com/D183153
This commit is contained in:
Jonas Jenwald 2023-07-10 18:30:36 +00:00
parent e5eebb2202
commit 0216b121fc
5 changed files with 0 additions and 14 deletions

View File

@ -6,9 +6,6 @@ const TEST_PATH = getRootDirectory(gTestPath).replace(
);
add_task(async function () {
await SpecialPowers.pushPrefEnv({
set: [["pdfjs.eventBusDispatchToDOM", true]],
});
await BrowserTestUtils.withNewTab(
TEST_PATH + "file_pdfjs_not_subject_to_csp.html",
async function (browser) {

View File

@ -3446,7 +3446,6 @@ For the sample commands found below, note that the capitalization used is import
* reporting: time from *performance.timing.navigationStart* to *pagerendered* event in ms (lower is better)
* data: load a PDF 20 times
* pdfpaint: True
* preferences: {'pdfjs.eventBusDispatchToDOM': True}
* timeout: 600
* tpmanifest: ${talos}/tests/pdfpaint/pdfpaint.manifest
* tppagecycles: 20

View File

@ -422,7 +422,6 @@ class pdfpaint(PageloaderTest):
timeout = 600
pdfpaint = True
unit = "ms"
preferences = {"pdfjs.eventBusDispatchToDOM": True}
@register_test()

View File

@ -19,12 +19,6 @@ class PrintHelper {
info("withTestPage: " + pageUrl);
let isPdf = pageUrl.endsWith(".pdf");
if (isPdf) {
await SpecialPowers.pushPrefEnv({
set: [["pdfjs.eventBusDispatchToDOM", true]],
});
}
let taskReturn = await BrowserTestUtils.withNewTab(
isPdf ? "about:blank" : pageUrl,
async function (browser) {

View File

@ -35,9 +35,6 @@ function waitForAcceptButtonToGetEnabled(doc) {
}
async function waitForPdfJS(browser, url) {
await SpecialPowers.pushPrefEnv({
set: [["pdfjs.eventBusDispatchToDOM", true]],
});
// Runs tests after all "load" event handlers have fired off
let loadPromise = BrowserTestUtils.waitForContentEvent(
browser,