Closed
Bug 748077
Opened 13 years ago
Closed 13 years ago
Remove some leaks in b2g/
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
DeveloperPhone
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(1 file)
6.31 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #617606 -
Flags: review?(fabrice)
Assignee | ||
Comment 1•13 years ago
|
||
There is still one leak in dom/system/gonk/ril_worker.js but this is a different bug.
Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #1)
> There is still one leak in dom/system/gonk/ril_worker.js but this is a
> different bug.
Sorry, I meant dom/system/gonk/RadioInterfaceLayer.js
Comment 3•13 years ago
|
||
Comment on attachment 617606 [details] [diff] [review]
Patch
Review of attachment 617606 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/chrome/content/shell.js
@@ +137,5 @@
> browser.goHome();
> },
>
> stop: function shell_stop() {
> + ['keydown', 'keypress', 'keyup'].forEach((function unlistenKey(type) {
Nit: if we expect it to grow, move the event list to a const and use it both to add and remove event listeners.
Attachment #617606 -
Flags: review?(fabrice) → review+
Comment 4•13 years ago
|
||
Comment on attachment 617606 [details] [diff] [review]
Patch
Review of attachment 617606 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/chrome/content/shell.js
@@ +15,5 @@
> Cu.import('resource://gre/modules/Webapps.jsm');
>
> +XPCOMUtils.defineLazyServiceGetter(Services, 'env',
> + '@mozilla.org/process/environment;1',
> + 'nsIEnvironment');
If we're touching these lines, I would really prefer that we stop monkey patching Services.jsm. It's just bad form.
Can't we just add those to Services.jsm proper, or alternatively define these as local globals or in a B2GServices object?
Comment 5•13 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #2)
> (In reply to Vivien Nicolas (:vingtetun) from comment #1)
> > There is still one leak in dom/system/gonk/ril_worker.js but this is a
> > different bug.
>
> Sorry, I meant dom/system/gonk/RadioInterfaceLayer.js
Interesting. Can you please file? Thanks!
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Philipp von Weitershausen [:philikon] from comment #5)
> (In reply to Vivien Nicolas (:vingtetun) from comment #2)
> > (In reply to Vivien Nicolas (:vingtetun) from comment #1)
> > > There is still one leak in dom/system/gonk/ril_worker.js but this is a
> > > different bug.
> >
> > Sorry, I meant dom/system/gonk/RadioInterfaceLayer.js
>
> Interesting. Can you please file? Thanks!
Yup, I have opened bug 751957
Assignee | ||
Comment 7•13 years ago
|
||
Status: NEW → ASSIGNED
Target Milestone: --- → DeveloperPhone
Updated•13 years ago
|
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•