Closed Bug 1460453 Opened 2 years ago Closed Last year

[wpt-sync] Sync PR 10942 - Ignore preventDefault() for 'vertical-scroll'

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10942 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/10942
Details from upstream follow.

Ehsan Karamad <ekaramad@chromium.org> wrote:
>  Ignore preventDefault() for 'vertical-scroll'
>  
>  This CL adds the logic to ensure calling event.preventDefault() will
>  not block vertical scrolling for frames which do not have the feature
>  policy enabled.
>  
>  Essentially, the response from dispatching the dom event is overwritten
>  by "not canceled" and the event is marked as not prevented. In line with
>  this, and in order to make sure only vertical scroll is enforced, the
>  allowed touch action is set to 'pan-y'; then any scrolling along the
>  x-axis can still be blocked by prventDefault()-ing the event.
>  
>  Bug: 611982
>  Change-Id: Iba371be063bf064601ecce6e930424c4fb11ac26
>  Reviewed-on: https://chromium-review.googlesource.com/1053175
>  WPT-Export-Revision: d172f3e9949a62d5fa7aeb19c733213e6ebf69e5
Component: web-platform-tests → DOM
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/52788d5f43f2
[wpt PR 10942] - Ignore preventDefault() for 'vertical-scroll', a=testonly
https://hg.mozilla.org/mozilla-central/rev/52788d5f43f2
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.