Closed Bug 999771 Opened 11 years ago Closed 10 years ago

eyedropper_basic.js leaks windows until shutdown on linux debug when running from a standalone directory

Categories

(DevTools :: Inspector, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jmaher, Assigned: harth)

References

Details

I am working on bug 992911 where we run each subdirectory by itself, not a bunch of tests as a large chunk. This yields some new failures, and on linux debug (32|64) dt1, we get a consistent leak failure: https://tbpl.mozilla.org/?tree=Try&rev=c4f289ae1a05 here is a link to the log file: https://tbpl.mozilla.org/php/getParsedLog.php?id=38269608&tree=Try in bug 939040 we seem to have landed this test, it is disabled on windows debug, but the comment in browser.ini doesn't seem to be accurate.
Patrick- would you have more information on this bug? I would like to know a bit more about this.
Flags: needinfo?(pbrosset)
The eyedropper tool creates and loads an inner iframe which appears to be leaking here. The test itself creates 2 instances of EyeDropper (`let dropper = new Eyedropper(window);`) but doesn't seem to destroy them and, the EyeDropper's `destroy` method is supposed to clear the iframe, so perhaps this leak can simply be avoided by calling destroy. Heather, do you think that could be it?
Flags: needinfo?(pbrosset) → needinfo?(fayearthur)
(In reply to Patrick Brosset [:pbrosset] [:patrick] from comment #2) > The eyedropper tool creates and loads an inner iframe which appears to be > leaking here. > The test itself creates 2 instances of EyeDropper (`let dropper = new > Eyedropper(window);`) but doesn't seem to destroy them and, the EyeDropper's > `destroy` method is supposed to clear the iframe, so perhaps this leak can > simply be avoided by calling destroy. destroy() is called by the eyedropper itself once you've pressed esc or selected a color from the page, so you won't see it explicitly in the test, but it should be called. > Heather, do you think that could be it? I don't know what could be the issue off the top of my head. Maybe the finish() is called before the last eyedropper is destroyed - so the clipboard listener picks up on the copied string before destroy() is called. One solution is to remove the iframe and build the UI manually, like you were suggesting before. This wouldn't be a super quick fix, but would get rid of this problem for sure.
Flags: needinfo?(fayearthur)
I'll try to fix the test or at least put some more logging in.
Assignee: nobody → fayearthur
Blocks: 1041500
No longer blocks: run-by-dir
this doesn't seem to be a problem anymore, we now run devtools with --run-by-dir
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.