Open Bug 135191 Opened 22 years ago Updated 2 years ago

gfx scrollframe sets curpos before maxpos when going back

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: mikepinkerton, Unassigned)

Details

Attachments

(1 obsolete file)

when you go back/forward, we try to restore the previous scrollbar position. The
way the code does this however is a little skanky. It sets the curpos attribute
repeatedly during the page load but doesn't update the maxpos attribute until
it's totally done.

The problem with this is that this means that if it's communicating with a
native scrollbar, we're setting the curpos to greater than the maxpos for a
time. If things don't get cleaned up, this could render the native scrollbar
unusable depending on the impl of the native scrollbar.

Not a major issue, but makes it so that native scrollbar impls can't
sanity-check that curpos isn't greater than maxpos which could be dangerous.
blizzard might be interested in this if they use the new xbl->native scrollbar
stuff i just did.
happens on all operating systems
OS: Mac System 9.x → All
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Assignee: hyatt → nobody
Attached patch Hacky PeekReservedWord (obsolete) — Splinter Review
This actually results in a small regression
Comment on attachment 8858193 [details] [diff] [review]
Hacky PeekReservedWord

Oops, wrong bugno.
Attachment #8858193 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: