Closed
Bug 896773
Opened 12 years ago
Closed 12 years ago
setDisplayedApp case 2 does not even try to call the callback
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Firefox OS Graveyard
Gaia::System
Tracking
(blocking-b2g:leo+, b2g18 fixed, b2g-v1.1hd fixed)
RESOLVED
FIXED
blocking-b2g | leo+ |
People
(Reporter: khuey, Assigned: alive)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
87 bytes,
patch
|
timdream
:
review+
|
Details | Diff | Splinter Review |
https://github.com/mozilla-b2g/gaia/blob/4ecc18edfe9a41a057329751ddeb869af2969969/apps/system/js/window_manager.js#L827
'callback' is nowhere to be found.
Comment 1•12 years ago
|
||
In particular this is bad because it means that we leak the <iframe mozbrowser>. Leaking leaking an <iframe mozbrowser> is particularly bad because it leaks a bunch of IPC machinery.
Whiteboard: [MemShrink]
Assignee | ||
Comment 2•12 years ago
|
||
Which section do you mean?
// Just run the callback right away if it is not homescreen
if (callback) {
callback();
}
this one?
Reporter | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
I know what you mean now. I think we could simply add callback() in the |windowOpened|.
Assignee | ||
Comment 5•12 years ago
|
||
Though this is an edge case but the callback indeed isn't invoked in case 2.
(Only used for removeFrame)
Attachment #779744 -
Flags: review?(timdream)
Updated•12 years ago
|
Attachment #779744 -
Flags: review?(timdream) → review+
Reporter | ||
Updated•12 years ago
|
blocking-b2g: --- → leo?
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Uplifted bcc157b46e364856cdbc1eaa0ce159f2e10df1d6 to:
v1-train: 5bffab09198da3abfaf2c937f1f8b34fbe2b6046
Comment 9•12 years ago
|
||
v1.1.0hd: 5bffab09198da3abfaf2c937f1f8b34fbe2b6046
status-b2g-v1.1hd:
--- → fixed
Updated•11 years ago
|
Assignee: nobody → alive
You need to log in
before you can comment on or make changes to this bug.
Description
•