Closed Bug 748077 Opened 13 years ago Closed 13 years ago

Remove some leaks in b2g/

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
DeveloperPhone

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
No description provided.
Attachment #617606 - Flags: review?(fabrice)
There is still one leak in dom/system/gonk/ril_worker.js but this is a different bug.
(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 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 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?
(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!
(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
No longer blocks: 751957
Depends on: 751957
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.

Attachment

General

Created:
Updated:
Size: