Open Bug 1191948 Opened 9 years ago Updated 2 years ago

FormLikeFactory.jsm: TypeError: Argument 1 of ChromeUtils.getClassName is not an object.

Categories

(Toolkit :: Password Manager, defect, P3)

defect

Tracking

()

Tracking Status
firefox42 --- wontfix
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Attached file testcase
JavaScript error: resource://gre/modules/LoginManagerContent.jsm, line 1221: TypeError: doc.documentElement is null

Probably a regression from https://hg.mozilla.org/mozilla-central/rev/2a9bb5102e19, which included the following change:

-      elements: [for (el of doc.querySelectorAll("input")) if (!el.form) el],
+      elements: [for (el of doc.documentElement.querySelectorAll("input")) if (!el.form) el],

(why?)
Flags: needinfo?(MattN+bmo)
This testcase still reproduces an error, though it's now:
> TypeError: rootElement is null  FormLikeFactory.jsm:78:1
>    for (let el of rootElement.querySelectorAll("input, select")) {
Flags: needinfo?(MattN+bmo)
Priority: -- → P3
Summary: LoginManagerContent.jsm: TypeError: doc.documentElement is null → FormLikeFactory.jsm: TypeError: Argument 1 of ChromeUtils.getClassName is not an object.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: