Closed Bug 965351 Opened 12 years ago Closed 12 years ago

Raciness in scroll events with apz

Categories

(Core :: Panning and Zooming, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: fabrice, Assigned: kats)

References

Details

Attachments

(1 file)

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]
Blocks: 950266
(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.
Unfortunately not, bug 961280 was merged on b2g-inbound and we're still failing.
I'm just gonna dupe this over.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
See Also: 963278
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 → ---
Attached patch Reenable testsSplinter Review
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)
Attachment #8371625 - Flags: review?(fabrice) → review+
Component: Graphics → Panning and Zooming
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: