Closed
Bug 112366
Opened 24 years ago
Closed 24 years ago
status message is often incorrect [eg. resolving host...]
Categories
(SeaMonkey :: UI Design, defect, P2)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: darin.moz, Assigned: darin.moz)
References
()
Details
Attachments
(1 file, 1 obsolete file)
970 bytes,
patch
|
jag+mozilla
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
this bug has bothered me for nearly a year. tonight, i finally set out to track
it down. turns out that the original code in nsBrowserStatusHandler.js is flat
out wrong. it tries to prevent changing the status message too frequently, but
in doing so it ignores many of the status messages. often, the last status
message will be "resolving host..." and this will stick for 400ms or whenever
the next status message arrives after 400ms has elapsed. this is common, since
"resolving host..." is always the first status message sent out.
i looked at the code for updateStatusField() and it seems that it is already
smart about not updating the status message unless the status message has
actually changed. this is good, and IMO probably makes the 400ms timeout
business unnecessary. to test this theory, i added a dump statement to observer
how frequently the status message would be changed if i eliminated the 400ms
timeout. it didn't appear to be called that frequently, so i think it might be
safe to just do away with the 400ms timeout.
since i have very little experience w/ tweaking our UI code, please let me know
if i'd be making a big mistake by ripping out this timeout. attaching my patch...
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Severity: normal → major
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.7
Comment 2•24 years ago
|
||
The big gotcha here is that you may slow down page-loading if you wind up
updating too much. Maybe this is no longer the big deal that it was, but
when hyatt set up this timeout back in March or so it was a _big_ win (like
6 or 9%).
[That's not to say that I like the wrong messages, but if you do change this
make sure to test page load times. (Actually, since I have a bug assigned to
me to try changing that timeout and see what happens now, bug me if you want
a hand to test this)].
Assignee | ||
Comment 3•24 years ago
|
||
right.. i'm planning to run it through the page loader today. it appears that
the code in onStatusChange has not been touched since v1.1 of
nsBrowserStatusHandler.js... however, that version is dated Apr 14, 2001... so i
guess there was a rewrite or something. looks like the work was done for bug 46200.
Comment 4•24 years ago
|
||
If we need the timeout still, the fix is easy: if (this.statusTimeoutInEffect),
save aMessage and set a flag telling the timeout function to update the status
bar with the saved message when the timeout fires.
/be
Updated•24 years ago
|
QA Contact: sairuh → claudius
right, that way "resolving host..." shouldn't be up for more than 400ms longer
than necessary. Thanks for doing this Darin. Thank you Thank you Thank you
Thank you!
Assignee | ||
Comment 6•24 years ago
|
||
ran ibench on this patch and didn't notice any impact on page load performance.
Attachment #59503 -
Attachment is obsolete: true
Assignee | ||
Comment 7•24 years ago
|
||
anyone care to r/sr this patch?
Comment 8•24 years ago
|
||
Comment on attachment 59637 [details] [diff] [review]
v1.1 patch : brendan's suggested patch
r=jag
Attachment #59637 -
Flags: review+
Comment 9•24 years ago
|
||
Comment on attachment 59637 [details] [diff] [review]
v1.1 patch : brendan's suggested patch
I was worried about this affecting pageload time, but it sounds like, from how
darin described this, that updateStatusField only updates the status when it
changes anyway
sr=alecf
Attachment #59637 -
Flags: superreview+
Assignee | ||
Comment 10•24 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•24 years ago
|
||
*** Bug 105934 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•