Bug 1845305 - remove null principal check for autocompletion r=dimi

Removing the null principal check enables autocompletion in sandboxed iframe forms.

fyi: tests are in the previous commit of the stack.

Differential Revision: https://phabricator.services.mozilla.com/D203241
This commit is contained in:
Johannes J. Schmidt 2024-03-01 10:42:02 +00:00
parent 497846017a
commit 47a03bc616

View File

@ -327,11 +327,7 @@ export class FormAutofillChild extends JSWindowActorChild {
shouldIgnoreFormAutofillEvent(event) {
let nodePrincipal = event.target.nodePrincipal;
return (
nodePrincipal.isSystemPrincipal ||
nodePrincipal.isNullPrincipal ||
nodePrincipal.schemeIs("about")
);
return nodePrincipal.isSystemPrincipal || nodePrincipal.schemeIs("about");
}
handleEvent(evt) {