diff --git a/src/core/xfa/html_utils.js b/src/core/xfa/html_utils.js
index e788071c6..cd1f3b9df 100644
--- a/src/core/xfa/html_utils.js
+++ b/src/core/xfa/html_utils.js
@@ -541,6 +541,8 @@ function fixTextIndent(styles) {
function setAccess(node, classNames) {
switch (node.access) {
case "nonInteractive":
+ classNames.push("xfaNonInteractive");
+ break;
case "readOnly":
classNames.push("xfaReadOnly");
break;
diff --git a/src/display/xfa_layer.js b/src/display/xfa_layer.js
index 937061e8a..57504beb4 100644
--- a/src/display/xfa_layer.js
+++ b/src/display/xfa_layer.js
@@ -161,13 +161,24 @@ class XfaLayer {
}
}
+ /**
+ * TODO: re-enable that stuff once we've JS implementation.
+ * See https://bugzilla.mozilla.org/show_bug.cgi?id=1719465.
+ *
+ * for (const el of rootDiv.querySelectorAll(
+ * ".xfaDisabled input, .xfaDisabled textarea"
+ * )) {
+ * el.setAttribute("disabled", true);
+ * }
+ * for (const el of rootDiv.querySelectorAll(
+ * ".xfaReadOnly input, .xfaReadOnly textarea"
+ * )) {
+ * el.setAttribute("readOnly", true);
+ * }
+ */
+
for (const el of rootDiv.querySelectorAll(
- ".xfaDisabled input, .xfaDisabled textarea"
- )) {
- el.setAttribute("disabled", true);
- }
- for (const el of rootDiv.querySelectorAll(
- ".xfaReadOnly input, .xfaReadOnly textarea"
+ ".xfaNonInteractive input, .xfaNonInteractive textarea"
)) {
el.setAttribute("readOnly", true);
}
diff --git a/web/xfa_layer_builder.css b/web/xfa_layer_builder.css
index bc6c11048..379f10ff2 100644
--- a/web/xfa_layer_builder.css
+++ b/web/xfa_layer_builder.css
@@ -254,6 +254,8 @@
flex: 1;
}
+.xfaNonInteractive input,
+.xfaNonInteractive textarea,
.xfaDisabled input,
.xfaDisabled textarea,
.xfaReadOnly input,