Closed Bug 1600448 Opened 5 years ago Closed 4 years ago

Clean up SeaMonkey module import and loading

Categories

(SeaMonkey :: General, enhancement)

enhancement
Not set
normal

Tracking

(seamonkey2.49esr unaffected, seamonkey2.53 fixed, seamonkey2.57esr fixed)

RESOLVED FIXED
seamonkey 2.70
Tracking Status
seamonkey2.49esr --- unaffected
seamonkey2.53 --- fixed
seamonkey2.57esr --- fixed

People

(Reporter: frg, Assigned: frg)

Details

(Whiteboard: SM2.53.1)

Attachments

(2 files)

Bug 1434737 switched the imports to ChromeUtils.import or XPCOMUtils.defineLazyModuleGetters. Since then some inconstencies crept in. 2.53.1 also has not yet switched to XPCOMUtils.defineLazyModuleGetters making backports harder.
Lets clean up here and align 2.53 and up.

Minor cleanups and alignments with 2.53.

Attachment #9112689 - Flags: review?(iann_bugzilla)
Attachment #9112689 - Flags: approval-comm-esr60?

[Approval Request Comment]
Regression caused by (bug #): --
User impact if declined: SeaMonkey is 0.01% slower
Testing completed (on m-c, etc.): 2.53.1
Risk to taking this patch (and alternatives if risky): moderate. The XPCOMUtils removal might trigger errors in rare cases when modules are loaded via overlays. So far none found.
String changes made by this patch: --

PlacesUtils.jsm can always be loaded with ChromeUtils.import in 2.57 but not in 2.53 so there is some difference left in places code between the two releases. Will go away if/when we backport.
Incorporates the XPCOMUtils.defineLazyModuleGetters changes from various patches. Would have been too time consuming to untangle this.

Attachment #9112690 - Flags: approval-comm-release?
Comment on attachment 9112689 [details] [diff] [review]
1600448-257.patch

LGTM r/a=me
Attachment #9112689 - Flags: review?(iann_bugzilla)
Attachment #9112689 - Flags: review+
Attachment #9112689 - Flags: approval-comm-esr60?
Attachment #9112689 - Flags: approval-comm-esr60+
Comment on attachment 9112690 [details] [diff] [review]
1600448-253.patch

[Triage Comment]
LGTM a=me
Attachment #9112690 - Flags: approval-comm-release? → approval-comm-release+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/8ef25eb8c092
Follow-up for Bug 1434737. Replace ChromeUtils.import() part 2 in suite. r=IanN

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Patches for c-c and esr60 got some rebasing for check-in. Discussed via irc.
https://hg.mozilla.org/releases/comm-esr60/rev/f103e65e5a6e2a02fe1b8b1f3bd9df9d025e6ef8

Target Milestone: --- → seamonkey 2.70
Whiteboard: SM2.53.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: