Closed Bug 838711 Opened 11 years ago Closed 11 years ago

mochitest-metro-chrome tests failing with several nsGlobalWindow leaked until shutdown

Categories

(Firefox for Metro Graveyard :: General, defect)

All
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Keywords: regression)

Attachments

(1 file)

Metro browser-chrome tests are failing with the following errors:

TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_plugin_input_keyboard.js | leaked until shutdown [nsGlobalWindow #25 chrome://mochitests/content/metro/browser_plugin_input.html]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_onscreen_keyboard.js | leaked until shutdown [nsGlobalWindow #22 chrome://mochitests/content/metro/browser_onscreen_keyboard.html]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_context_ui.js | leaked until shutdown [nsGlobalWindow #19 about:]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_context_ui.js | leaked until shutdown [nsGlobalWindow #16 about:]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_plugin_input_keyboard.js | leaked until shutdown [nsGlobalWindow #23 chrome://mochitests/content/metro/browser_plugin_input.html]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_onscreen_keyboard.js | leaked until shutdown [nsGlobalWindow #20 chrome://mochitests/content/metro/browser_onscreen_keyboard.html]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_context_ui.js | leaked until shutdown [nsGlobalWindow #17 about:]
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/metro/browser_context_ui.js | leaked until shutdown [nsGlobalWindow #14 about:]

This seems to be a regression from bug 836963.  Specifically, commenting out this event listener fixes the leaks:

http://hg.mozilla.org/projects/elm/rev/cbb24f3d4d11#l1.106
Attached patch patchSplinter Review
I wonder if desktop could use the same fix, or if they are protected for some reason.

I also wonder if we get a leak when _attachToInput is called.
Attachment #710807 - Flags: review?(netzen)
Comment on attachment 710807 [details] [diff] [review]
patch

Review of attachment 710807 [details] [diff] [review]:
-----------------------------------------------------------------

> I wonder if desktop could use the same fix, or if they are protected for some reason.

It seems like it from:
dxr.mozilla.org/mozilla-central/toolkit/components/passwordmgr/nsLoginManager.js.html
But I'm not sure.  Thanks for picking this up.
Attachment #710807 - Flags: review?(netzen) → review+
http://hg.mozilla.org/projects/elm/rev/cd95fa05c8fe

I'll file a follow-up to investigate this on desktop.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 838948
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: