Closed Bug 1238945 Opened 10 years ago Closed 10 years ago

Be more lazy on message listeners to avoid ressources waste

Categories

(Firefox OS Graveyard :: B2gInstaller, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.6 S5 - 1/15

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

(Whiteboard: [systemsfe])

Attachments

(3 files, 2 obsolete files)

If a user installs the addon on his day to day profile, we probably don't want to be constantly listening for imaging tools messages, but rather just when the about: page is active.
Attachment #8706921 - Flags: review?(dale)
Whiteboard: [systemsfe]
Target Milestone: --- → 2.6 S5 - 1/15
Blocks: 1234217
Somehow, a solution making use of inner window ID does not work: > B2G Installer: Doing ImagingTools.init() bootstrap.js:96 > [...] > B2G Installer: All tools have been picked up. bootstrap.js:87 > B2G Installer: aTopic: inner-window-destroyed bootstrap.js:96 > B2G Installer: wId: 24 bootstrap.js:96 > B2G Installer: _windowID: 24 bootstrap.js:96 > B2G Installer: Doing ImagingTools.uninit() That happens when loading about:b2g-installer
With tests!
Attachment #8706921 - Attachment is obsolete: true
Attachment #8706921 - Flags: review?(dale)
Attachment #8707002 - Flags: review?(dale)
Attachment #8707002 - Attachment is obsolete: true
Attachment #8707002 - Flags: review?(dale)
Attachment #8707004 - Flags: review?(dale)
(In reply to Alexandre LISSY :gerard-majax from comment #5) > https://treeherder.mozilla.org/#/jobs?repo=try&revision=5bab6de0eb56 Green!
Comment on attachment 8707004 [details] [diff] [review] ImagingTools should be more started/stopped at demand Very nice, Cheers
Attachment #8707004 - Flags: review?(dale) → review+
Depends on: 1240707
Attached file PR of the patch
Attachment #8709529 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: