Open Bug 1186702 Opened 9 years ago Updated 2 years ago

ProcessHangMonitor.jsm: TypeError: win.gBrowser is undefined

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

Tracking Status
firefox42 --- affected

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase
With:
  user_pref("nglayout.debug.disable_xul_cache", true);

JavaScript error: resource:///modules/ProcessHangMonitor.jsm, line 194: TypeError: win.gBrowser is undefined

(I'm testing with e10s disabled, and popups enabled.)
With that one I saw both:
* win.gBrowser is undefined
* win.gBrowser is null

I saw this error today when keeping Cmd+N pressed for a few seconds to open several browser windows at once. I was on this line: https://searchfox.org/mozilla-central/rev/5e3bffe964110b8d1885b4236b8abd5c94d8f609/browser/modules/ProcessHangMonitor.jsm#410

I think gBrowser doesn't exist yet because the window hasn't finished initializing. That's likely because Services.wm.getEnumerator("navigator:browser") returns all browser windows, including the ones that aren't done loading.

See Also: → 1526986
Component: DOM → DOM: Core & HTML
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: