Closed Bug 840287 Opened 12 years ago Closed 12 years ago

Work - Move NewTabUtils.jsm from /browser/modules to /toolkit/modules

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

(Blocks 1 open bug)

Details

(Whiteboard: [feature=work])

Attachments

(1 file, 1 obsolete file)

For bug 808770, we would like to use NewTabUtils.jsm in Metro Firefox. I think the simplest way to do this is to move it into /toolkit/content. Any objections, comments, alternatives? See also the discussion in similar bug 811548.
Attached patch patch (obsolete) — Splinter Review
Attachment #712798 - Flags: review?(ttaubert)
(In reply to Matt Brubeck (:mbrubeck) from comment #0) > Any objections None from me - there's nothing explicitly specific to desktop Firefox in there. Without having thought about it too deeply, I'd say its probably worth looking into whether it should init itself on first use, like what's being done in bug 811548.
(In reply to Blair McBride [:Unfocused] from comment #2) > Without having thought about it too deeply, I'd say its probably worth > looking into whether it should init itself on first use, like what's being > done in bug 811548. NewTabUtils.init adds some telemetry probes, and an expiration filter. We probably want both to happen at startup; otherwise we risk missing some Telemetry and expiring useful thumbnails, for users who don't open the new tab page in time. Should we keep the explicit init() as a reminder of this, or is it enough to just Cu.import() the module at startup and have it init itself?
I think we should generally avoid implicit initialization (i.e. side effects to import()) for JS modules.
Attachment #712798 - Flags: review?(ttaubert) → review+
Can you move this to toolkit/modules instead? See bug 828116.
Attached patch patch v2Splinter Review
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #5) > Can you move this to toolkit/modules instead? See bug 828116. Sure! (And thanks, I was wondering how to decide which subdirectory was more appropriate.)
Attachment #712798 - Attachment is obsolete: true
Attachment #714522 - Flags: superreview?(gavin.sharp)
Attachment #714522 - Flags: review+
Summary: Work - Move NewTabUtils.jsm from /browser/modules to /toolkit/content → Work - Move NewTabUtils.jsm from /browser/modules to /toolkit/modules
Attachment #714522 - Flags: superreview?(gavin.sharp) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Blocks: 1148979
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: