Firefox 36 onScroll event when uses scroll function freezes




4 years ago
3 years ago


(Reporter: zeniateo, Unassigned)


36 Branch
Windows 8.1

Firefox Tracking Flags

(Not tracked)




4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150222232811

Steps to reproduce:

Create a table which overflows and add an onScroll event.

Actual results:

If in onScroll event I call function which name is "scroll" and has 3 parametrs the scroll does not happen when dragging scrollbar.

Expected results:

Scrolling should be happening.


4 years ago
Severity: normal → critical


4 years ago
Severity: critical → blocker

Comment 1

4 years ago
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0

I'm surprised this hasn't gotten any attention. In your example, the onscroll event handler seems to be preventing it from scrolling at all. With a similar example:

.. I'm able to scroll, but the event handler just will not trigger.

I would imagine this is likely the same bug.

Comment 2

4 years ago
Thank you very much for your reply! In your example you use scroll function without parameters, if you add 3 parameters, it will not be able to scroll:

Comment 3

4 years ago

Yes, I see this also happens when there are 2 params.

It actually seems to have to do with naming your function 'scroll'. For instance the following fixes the issue with your example:

Comment 4

4 years ago

Yes renaming helps. Of course I can sacrifice a day of mine and change all my grids to use renamed js function, BUT our company has thousands business clients. Scroll function is used in our project for at least 10 years, so even old clients now has this issue. We can not afford to upgrade ALL our clients. So I really really hope that Mozilla will some how fix this. Neither Chrome nor IE has this issue.
Mozilla/5.0 (Windows NT 6.3; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20151217030207

I can confirm that scrolling is not possible on the latest Nightly when using the test case from the Description.
Severity: blocker → normal
Component: Untriaged → DOM: Events
Ever confirmed: true
So by calling scroll() in the onscroll event handler you call scroll method on the element.
That scroll() takes 2 params, x and y. So the testcase in comment 0 scrolls always to (1, 2).

As far as I see, all is working per specifications and also other (at least Chrome) browser have the same behavior.
Last Resolved: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.