Closed
Bug 965351
Opened 12 years ago
Closed 12 years ago
Raciness in scroll events with apz
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: fabrice, Assigned: kats)
References
Details
Attachments
(1 file)
|
4.12 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
See https://bugzilla.mozilla.org/show_bug.cgi?id=950266#c49 :
> We think that turning on Nuwa in the emulator tests might have revealed some
> potential timing issues with APZ:
>
> - (group 3) ERROR TEST-UNEXPECTED-FAIL |
> /tests/docshell/test/navigation/test_bug430723.html | Test timed out.
>
> We found that the onscroll callback in the test case can only be fired when
> ScrollFrameHelper::AsyncScroll::WillRefresh() is called, that is, it is
> triggered by the refresh driver. If in
> ScrollFrameHelper::ScrollToWithOrigin(), mAsyncScroll haven't received
> callback from nsRefreshDriver, then the onscroll callback will never be
> fired. The test case will never finish until marionette times out.
>
> We have a workaround of this problem that we call
> ScrollFrameHelper::AsyncScroll::WillRefresh() when it still waits for the
> refresh driver. Then this failure is gone and we will encounter the
> unexpected scroll offset like
>
> - ERROR TEST-UNEXPECTED-FAIL | /tests/dom/events/test/test_bug946632.html |
> <input> horizontal line scroll container.scrollTop - got 20, expected 0
>
> There are other unexpected failures like:
>
> - ERROR TEST-UNEXPECTED-FAIL | /tests/dom/events/test/test_bug946632.html |
> <input> horizontal line scroll targets <input> - got [object
> HTMLDivElement], expected [object HTMLInputElement]
| Assignee | ||
Comment 1•12 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #0)
> > - (group 3) ERROR TEST-UNEXPECTED-FAIL |
> > /tests/docshell/test/navigation/test_bug430723.html | Test timed out.
> >
> > We found that the onscroll callback in the test case can only be fired when
> > ScrollFrameHelper::AsyncScroll::WillRefresh() is called, that is, it is
> > triggered by the refresh driver. If in
> > ScrollFrameHelper::ScrollToWithOrigin(), mAsyncScroll haven't received
> > callback from nsRefreshDriver, then the onscroll callback will never be
> > fired. The test case will never finish until marionette times out.
This one might be fixed by bug 961280 which just landed.
| Reporter | ||
Comment 2•12 years ago
|
||
Unfortunately not, bug 961280 was merged on b2g-inbound and we're still failing.
| Assignee | ||
Comment 3•12 years ago
|
||
I'm just gonna dupe this over.
| Assignee | ||
Comment 4•12 years ago
|
||
Un-duping because fabrice already landed the patch to disable tests. I'll use this bug to re-enable the tests if bug 963278 sticks.
Assignee: nobody → bugmail.mozilla
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
| Assignee | ||
Comment 5•12 years ago
|
||
Try run is at https://tbpl.mozilla.org/?tree=Try&rev=e4f71f65253c. I accidentally ran everything but only the b2g runs actually matter here, and they're green.
Attachment #8371625 -
Flags: review?(fabrice)
| Reporter | ||
Updated•12 years ago
|
Attachment #8371625 -
Flags: review?(fabrice) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Component: Graphics → Panning and Zooming
Comment 7•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•