Closed Bug 1599304 Opened 5 years ago Closed 5 years ago

SpecialPowers.Focus throws NS_ERROR_UNEXPECTED "TypeError: this.manager.rootFrameLoader is null"

Categories

(Testing :: Mochitest, defect)

Version 3
defect
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: bradwerth, Assigned: bradwerth)

Details

Attachments

(1 file)

Occasionally when I run tests locally, I'll get this console output:

JavaScript error: , line 0: NS_ERROR_UNEXPECTED: 1:29.35 INFO Console message: [JavaScript Error: "TypeError: this.manager.rootFrameLoader is null" {file: "resource://specialpowers/SpecialPowersParent.jsm" line: 580}]

The tests usually are unaffected by this issue, or perhaps require a manual focus to proceed and then run without further disruption. This error could be avoided if the method would check the availability of this.manager.rootFrameLoader before dereferencing it.

Pushed by bwerth@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c5cb4d45593
Make SpecialPowers.Focus check for availability of this.manager.rootFrameLoader before dereferencing it. r=kmag
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: