Skip to content

Add a global event handler for beforeinput - #7992

Merged
domenic merged 2 commits into
whatwg:mainfrom
mfreed7:add_beforeinput_2
Jun 9, 2022
Merged

domenic merged 2 commits into
whatwg:mainfrom
mfreed7:add_beforeinput_2

Conversation

@mfreed7

@mfreed7 mfreed7 commented Jun 7, 2022 •

Copy link
Copy Markdown
Contributor

Also imported the input event from the UI events specifications, since that one defines it.

Fixes #4526

(This PR is directly pulled from #4530, which can't land due to IP issues.)
(This PR is a replacement for #6743, which I neglected for too long.)


/browsing-the-web.html ( diff )
/dom.html ( diff )
/form-control-infrastructure.html ( diff )
/form-elements.html ( diff )
/indices.html ( diff )
/infrastructure.html ( diff )
/input.html ( diff )
/webappapis.html ( diff )

Also imported the input event from the UI events specifications, since that one defines it.

Fixes whatwg#4526

(This PR is directly pulled from whatwg#4530, which can't land due to IP issues.)
(This PR is a replacement for whatwg#6743, which I neglected for too long.)
Comment thread source Resolved
Comment thread source Resolved
@mfreed7

mfreed7 commented Jun 8, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for the review. This builds locally for me now, so hopefully it also will on the build server.

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@domenic
domenic merged commit b154c38 into whatwg:main Jun 9, 2022
@mfreed7

mfreed7 commented Jun 9, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for walking me through it!

@mfreed7
mfreed7 deleted the add_beforeinput_2 branch June 9, 2022 22:55
aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 12, 2022
See [1] for the landed spec PR, and [2] for the intent to ship.

This adds `onbeforeinput` as a global event handler content attribute,
to allow easy access to the 'beforeinput' event handler.

[1] whatwg/html#7992
[2] https://groups.google.com/a/chromium.org/g/blink-dev/c/hOhg-Rw6qww

Fixed: 947408
Change-Id: I6290253eab2bbfb652e8d3e17e4be655da9ccde5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3749794
Commit-Queue: Kent Tamura <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Reviewed-by: Xiaocheng Hu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1023420}
aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 13, 2022
This reverts commit 1771acb.

Reason for revert: Maybe caused event-handler-attributes-body-window.html failure
https://ci.chromium.org/p/chromium/builders/ci/Mac10.13%20Tests/53607

Original change's description:
> Add onbeforeinput global event handler attribute
>
> See [1] for the landed spec PR, and [2] for the intent to ship.
>
> This adds `onbeforeinput` as a global event handler content attribute,
> to allow easy access to the 'beforeinput' event handler.
>
> [1] whatwg/html#7992
> [2] https://groups.google.com/a/chromium.org/g/blink-dev/c/hOhg-Rw6qww
>
> Fixed: 947408
> Change-Id: I6290253eab2bbfb652e8d3e17e4be655da9ccde5
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3749794
> Commit-Queue: Kent Tamura <[email protected]>
> Reviewed-by: Kent Tamura <[email protected]>
> Auto-Submit: Mason Freed <[email protected]>
> Reviewed-by: Xiaocheng Hu <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1023420}

Change-Id: Id4fdd3887cce72d682a819c4d0d55ee1f529f2c7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3758285
Auto-Submit: Keishi Hattori <[email protected]>
Owners-Override: Keishi Hattori <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Reviewed-by: Keishi Hattori <[email protected]>
Commit-Queue: Keishi Hattori <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1023523}
aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 14, 2022
This is a reland of commit 1771acb

The original patch failed because of a few WPTs that needed
rebaselining on a few platforms. At this point, this test [1] is
still disabled, but I'll fix that after this lands and stabilizes.
AFAIK it should just pass, but I'm tired of getting reverted.

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/TestExpectations;l=7207;drc=023841994d504cfa460fb1e9e474e31a4a38a240

Fixed: 947408
Bug: 1344128

Original change's description:
> Add onbeforeinput global event handler attribute
>
> See [1] for the landed spec PR, and [2] for the intent to ship.
>
> This adds `onbeforeinput` as a global event handler content attribute,
> to allow easy access to the 'beforeinput' event handler.
>
> [1] whatwg/html#7992
> [2] https://groups.google.com/a/chromium.org/g/blink-dev/c/hOhg-Rw6qww
>
> Fixed: 947408
> Change-Id: I6290253eab2bbfb652e8d3e17e4be655da9ccde5
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3749794
> Commit-Queue: Kent Tamura <[email protected]>
> Reviewed-by: Kent Tamura <[email protected]>
> Auto-Submit: Mason Freed <[email protected]>
> Reviewed-by: Xiaocheng Hu <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1023420}

Change-Id: I3fb8184864cb9590ec310487482004d53939c129
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3760865
Commit-Queue: Mason Freed <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1024116}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add onbeforeinput to GlobalEventHandlers

2 participants