Closed Bug 301152 Opened 20 years ago Closed 19 years ago

[10.4] Scrollbar gets messed up when scrolling while loading a page

Categories

(Camino Graveyard :: General, defect, P2)

PowerPC
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: echidnae, Assigned: stuart.morgan+bugzilla)

References

Details

(Keywords: fixed1.8.1.2, regression)

Attachments

(8 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050717 Camino/0.9a2 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050717 Camino/0.9a2 When loading a page, such as http://cnn.com and scrolling while the page is loading, the scroll bar becomes distored. Looks like this first appeared in the 20050716 nightly. Reproducible: Always
Attached image messed up scrollbar
messed up scrollbar at http://cnn.com
Regression from bug 166932?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: pinkerton → sfraser_bugs
Priority: -- → P2
Target Milestone: --- → Camino1.0
*** Bug 301524 has been marked as a duplicate of this bug. ***
I just saw this behavior as well, so confirming for Camino Version 2005071808 (0.9a2) Thanks for all your hard work.
I have this same problem. But very frequently with sites. gettyimages, gizmodo, to name a couple. What is going on here? As soon as i click out of the browser it goes back to normal. I could sent an image if requested.
Yup - I've seen a lot of this also especially on pages with lots of images that continue to load after the text of the page has already been displayed.
Status: NEW → ASSIGNED
Summary: Scroll bar gets messed up when scrolling while loading a page → Scrollbar gets messed up when scrolling while loading a page
Attached file Testcase
Note that you have to actively scroll the document while it's being loaded to see this.
My patch from bug 166932 regressed this. I think the issue is that the optimization there breaks the drawing of non-NSQuickDrawViews (such as the NSScroller) which are parented in NSQuickDrawViews.
I actually see similar results in Safari from time to time. Just not on the same sites: theirs tend to involve frames. The scroll bar will leave pieces of larger thumbs whenever significantly shortening the thumb to reflect more content (as shown in the attachments). Safari will also sometimes erase the left half of a vertical scrollbar for some reason. Mac OS X 10.4.2, Safari 412.2. I think it's a Tiger bug.
Comment on attachment 191921 [details] [diff] [review] Patch to call -setNeedsDisplay after updating the scrollbar position/size r=pink
Attachment #191921 - Flags: review?(pinkerton) → review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 304407 has been marked as a duplicate of this bug. ***
Reopening. Problem still exists and was never fixed according to checks in bug 304407
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Since this checkin has to be made in the widget directory and not the Camino-only directory, should this block 1.8b4? Flagging blocking1.8b4?
Flags: blocking1.8b4?
Attachment #191921 - Flags: approval1.8b4+
Flags: blocking1.8b4?
Flags: camino1.0?
this is much better than it used to be, i only see it rarely.
Status: REOPENED → ASSIGNED
Flags: camino1.0? → camino1.0-
Target Milestone: Camino1.0 → Camino1.1
This seems to have gotten worse recently. cl
*** Bug 338970 has been marked as a duplicate of this bug. ***
Keywords: regression
QA Contact: general
Summary: Scrollbar gets messed up when scrolling while loading a page → [10.4] Scrollbar gets messed up when scrolling while loading a page
This is still seen quite a bit by a lot of us. We should find a regression range and see if we can see what's going on.
Assignee: sfraser_bugs → nobody
Status: ASSIGNED → NEW
Flags: camino1.1?
Keywords: qawanted
Is anyone on current trunk able to reproduce this? With the landing of bug 311304, this might be fixed.
(In reply to comment #21) > Is anyone on current trunk able to reproduce this? With the landing of bug > 311304, this might be fixed. > I'm still able to reproduce this bug. I believe the patch for 311304 landed on 11/9 on the trunk, and I was able to reproduce with Version 2006111605 (1.2+). I'll post some attachments.
(In reply to comment #24) > Created an attachment (id=246127) [edit] > Messed up scrollbar while NOT scrolling at www.macupdate.com > I should clarify on this one. Sometimes on MacUpdate, the scrollbar will appear before the page finishes loading, but the size of the scrollbar does not readjust itself for the full size of the page once it finishes loading. If I then scroll down, the true-size scrollbar will appear and will scroll over the left over artifacts.
Attached file Testcase 2
I found a new reproducible testcase; adding content on the fly via JS makes it happen every time (and makes it clear that we aren't redrawing the bar in all cases we should be).
Assignee: nobody → stuart.morgan
Status: NEW → ASSIGNED
Attached patch fix (obsolete) — Splinter Review
This was another case like the general nsChildView problem Simon fixed a while back; we were calling setNeedsDisplay from within the bowels of Cocoa drawing, which it doesn't like. I switched it over to Invalidate, which has the logic of figuring out when the invalidate needs to be delayed.
Attachment #251124 - Flags: review?(joshmoz)
Keywords: qawanted
The patch doesn't fix things on trunk for me, even after a distclean. cl
Attached patch correct fixSplinter Review
Thanks cl. Apparently it works better when one copies libwidget_mac.dylib after every change+rebuild in widget, not just the first one :P This is the preliminary patch that I was actually testing when I wrote the last iteration as a misguided attempt at efficiency based on misunderstanding the size of the gecko scrollbar view. Invalidating all of it actually is the right thing to do, which makes the patch much simpler.
Attachment #251124 - Attachment is obsolete: true
Attachment #251188 - Flags: review?(joshmoz)
Attachment #251124 - Flags: review?(joshmoz)
Attachment #251188 - Flags: review?(joshmoz) → review+
Attachment #251188 - Flags: superreview?(mikepinkerton)
Comment on attachment 251188 [details] [diff] [review] correct fix sr=me but maybe use PR_FALSE?
Attachment #251188 - Flags: superreview?(mikepinkerton) → superreview+
Oops, that should indeed be PR_FALSE. I'll fix on checkin.
Requesting MOZILLA_1_8_BRANCH approval; note that Camino is the only product using this code on the 1.8 branch.
Flags: blocking1.8.1.2?
I can confirm the new patch works, too. Not that you needed it, but r=me. cl
Comment on attachment 251188 [details] [diff] [review] correct fix Really requesting branch approval, since it doesn't appear the flag actually got set, and setting the addl-review flag just for grins.
Attachment #251188 - Flags: review+
Attachment #251188 - Flags: approval1.8.1.2?
Attachment #251188 - Flags: approval1.8.0.10?
Comment on attachment 251188 [details] [diff] [review] correct fix er, oops. Meant just to set 1.8, not 1.8.0. cl
Attachment #251188 - Flags: approval1.8.0.10?
Ah, I see. I didn't see approval since I was looking on the bug page, so I set blocking? on the bug instead.
Flags: blocking1.8.1.2?
Comment on attachment 251188 [details] [diff] [review] correct fix Approved for 1.8 branch, a=jay for drivers.
Attachment #251188 - Flags: approval1.8.1.2? → approval1.8.1.2+
Landed on trunk and MOZILLA_1_8_BRANCH
Status: ASSIGNED → RESOLVED
Closed: 20 years ago19 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: