Closed Bug 189726 Opened 22 years ago Closed 22 years ago

editorUtilities.js loaded twice when messengercompose.xul called

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.3beta

People

(Reporter: d_king, Assigned: timeless)

Details

(Keywords: perf)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030117
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030117

When messengercompose.xul is called it loads editorUtilities.js, however
messengercompose.xul also overlays editorOverlay.xul which itself calls
editorUtilities.js. Thus, editorUtilities.js is being called and compiled twice
rather than just once.

Reproducible: Always

Steps to Reproduce:


Actual Results:  
editorUtilities.js is called twice

Expected Results:  
editorUtilities.js called once
Attached patch rightSplinter Review
Attachment #112003 - Flags: superreview?
Attachment #112003 - Flags: review?(sspitzer)
You got there before me, here I was fighting with "diff", and you've posted the
patch before me.

For future ref, could you eMail me the proper way to create a good and useful diff?
Adding "perf" keyword, although I'm not sure how big a differance this fix will
make.
Keywords: perf
Comment on attachment 112003 [details] [diff] [review]
right

Altering r and sr to hopefully find someone not ultra busy with 1.3b.

Timeless: I hope you don't mind my doing this.
Attachment #112003 - Flags: superreview?(sspitzer)
Attachment #112003 - Flags: superreview?
Attachment #112003 - Flags: review?(sspitzer)
Attachment #112003 - Flags: review?(bienvenu)
makes sense, and I tested the patch and it works.

I'll try to land today.

re-assign to dgk for credit.
Assignee: sspitzer → dgk
Target Milestone: --- → mozilla1.3beta
Comment on attachment 112003 [details] [diff] [review]
right

r/sr=sspitzer
Attachment #112003 - Flags: superreview?(sspitzer)
Attachment #112003 - Flags: superreview+
Attachment #112003 - Flags: review?(bienvenu)
Attachment #112003 - Flags: review+
Comment on attachment 112003 [details] [diff] [review]
right

seeking approval
Attachment #112003 - Flags: approval1.3b?
I'm not sure if I should get credit for this, as timeless was the one who
actually submitted the patch (he just got there before me as mentioned in
Comment #2).

Seth: If you can get this landed today, it will be interesting to see what
performance differance it makes. I'll keep an eye on beast and pine and the
delta's on the Ts and Txul's. (Yup, I'm Win32 centric at the moment).

> I'm not sure if I should get credit for this

ok, I'll re-assign to him

> Seth: If you can get this landed today, it will be interesting to see what
> performance differance it makes. I'll keep an eye on beast and pine and the
> delta's on the Ts and Txul's. (Yup, I'm Win32 centric at the moment).

won't have any affect, as those machines don't bring up the compose window.

but lhasa does, see
http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey-Testerbox

but we aren't gathering Ts or Txul numbers.

are those running generating Ts and Txul numbers on the mailnews smoke test?

Assignee: dgk → timeless
Comment on attachment 112003 [details] [diff] [review]
right

a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112003 - Flags: approval1.3b? → approval1.3b+
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verifying. Although this isn't an overly visible bug, at least some more dup
code has been removed, which can only help performance. Thanks to all for the
patch, r, sr and a. Next time I think I'll beat timeless with a patch ;-)

Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: