Open
Bug 527582
Opened 15 years ago
Updated 2 years ago
window.onscroll event handler does not register the correct value of a global variable if variable changed just before and after window.scrollBy is called.
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: gary.haran, Unassigned)
Details
Attachments
(1 file)
13.02 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.3a1pre) Gecko/20091109 Minefield/3.7a1pre
If I change a global variable value just before calling window.scrollBy(0,1) and then back again the onscroll event handler does not see the correct value.
Reproducible: Always
Steps to Reproduce:
1. Open attachment and load page in FF.
2. Click scroll button.
3. Look at the document.title
Actual Results:
document.title is "false"
Expected Results:
document.title should be "I would expect this to be in the title."
Check attachment.
Reporter | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.3a1pre) Gecko/20091109 Minefield/3.7a1pre
> document.title should be "I would expect this to be in the title."
only Google Chrome has this outcome.
Firefox, Opera, IE8: "false"
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → Trunk
Comment 3•15 years ago
|
||
Scrolling (or any layout or painting for that matter) doesn't occur until the script ends, at which point, you've already changed the title again, so our behaviour looks ok to me.
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•