Closed
Bug 1144742
Opened 10 years ago
Closed 10 years ago
sdk/tab/events leaks
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(firefox39 fixed)
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: mossop, Assigned: mossop)
References
Details
Attachments
(2 files)
Requiring sdk/tab/events and then opening a new tab causes a leak for the lifetime of the app.
Assignee | ||
Comment 1•10 years ago
|
||
Not strictly necessary but unloading the test harness loader after tests are complete helps a lot with tracking real leaks with heapgraph.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8579558 -
Flags: review?(evold)
Comment 3•10 years ago
|
||
Comment on attachment 8579558 [details]
pull request
Looks good, it needs a test though.
Attachment #8579558 -
Flags: review?(evold)
Attachment #8579558 -
Flags: review-
Attachment #8579558 -
Flags: feedback+
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Erik Vold [:erikvold] (please needinfo? me) from comment #3)
> Comment on attachment 8579558 [details]
> pull request
>
> Looks good, it needs a test though.
I'm not sure what test I could write here, what did you have in mind?
Flags: needinfo?(evold)
Comment 5•10 years ago
|
||
(In reply to Dave Townsend [:mossop] from comment #4)
> (In reply to Erik Vold [:erikvold] (please needinfo? me) from comment #3)
> > Comment on attachment 8579558 [details]
> > pull request
> >
> > Looks good, it needs a test though.
>
> I'm not sure what test I could write here, what did you have in mind?
We could access the sandbox scope and check that `loader.sandbox("sdk/event/dom").listeners.keys().length` is 0. Or include an "end" event. If there is a way to check how many listeners a window has that would be better.
I'm open to other options.
Flags: needinfo?(evold)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8579558 [details]
pull request
Added some tests, they fail without the changes and pass with.
Attachment #8579558 -
Flags: review- → review?(evold)
Comment 7•10 years ago
|
||
Comment on attachment 8579558 [details]
pull request
Awesome!
Attachment #8579558 -
Flags: review?(evold) → review+
Comment 8•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/6b627247edf7340843a455bbb319ca73461c05e2
Bug 1144742: Clear promise debugging observer after tests and clear all added DOM event listeners on unload.
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Attachment #8579555 -
Flags: review?(evold) → review+
Assignee | ||
Comment 9•10 years ago
|
||
Oh right, I need to land the harness patch too
Status: RESOLVED → REOPENED
Flags: needinfo?(dtownsend)
Resolution: FIXED → ---
Assignee | ||
Comment 10•10 years ago
|
||
Flags: needinfo?(dtownsend)
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•