Attach (recommended) or Link to PDF file here:

Configuration:
- Web browser and its version: Firefox 95.0
- Operating system and its version: Windows 10
- PDF.js version: Whatever is shipped with Firefox 95.0
- Is a browser extension:

Steps to reproduce the problem:
1. Open file in Adobe Acrobat and get message that file is protected. Cannot change anything without password
2. Open file in Firefox 95.0. Allows free editing of form fields and on top the file can be saved.
3. Open the saved file from Firefox with Adobe Acrobat and you still get the password protected message but the values are changed!

Testfile
[testfile.pdf](https://github.com/mozilla/pdf.js/files/7692008/testfile.pdf)

What went wrong?
Firefox allows editing of protected PDF files!!!


createPromiseCapability,
  PixelsPerInch,
  RenderingCancelledException,
  SVGGraphics,
} from "pdfjs-lib";
import {
  approximateFraction,
  DEFAULT_SCALE,
  getOutputScale,
  RendererType,
  roundToDivide,
  TextLayerMode,
} from "./ui_utils.js";
import { compatibilityParams } from "./app_options.js";
import { NullL10n } from "./l10n_utils.js";
import { RenderingStates } from "./pdf_rendering_queue.js";
/**
 * @typedef {Object} PDFPageViewOptions
 * @property {HTMLDivElement} [container] - The viewer element.
 * @property {EventBus} eventBus - The application event bus.
 * @property {number} id - The page unique ID (normally its number).
 * @property {number} scale - The page scale display.
 * @property {PageViewport} defaultViewport - The page viewport.
 * @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise] -
 *   A promise that is resolved with an {@link OptionalContentConfig} instance.
 *   The default value is `null`.
 * @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
 * @property {IPDFTextLayerFactory} textLayerFactory
 * @property {number} [textLayerMode] - Controls if the text layer used for
 *   selection and searching is created, and if the improved text selection