Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. event refactoring #3764

Merged
merged 2 commits into from
Apr 10, 2019
Merged

Conversation

a2sheppy
Copy link
Contributor

@a2sheppy a2sheppy commented Apr 2, 2019

  • pagehide
  • pageshow
  • rejectionhandled
  • unhandledrejection

Sources for pageshow and pagehide: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching.
All other version information copied from the corresponding event handler properties.

  • push
  • pushsubscriptionchange

Source: All version information taken from the corresponding event handler properties.

  • paymentmethodchange
  • merchantvalidation
  • shippingaddresschange
  • shippingoptionchange

Source: All version information taken from the corresponding event handler properties.

  • mute
  • unmute

Source: All version information taken from the corresponding event handler properties.

  • PromiseRejectionEvent (cleaned up notes that refer to changed events)

A checklist to help your pull request get merged faster:

  • Summarize your changes
  • Data: link to resources that verify support information (such as browser's docs, changelogs, source control, bug trackers, and tests)
  • Data: if you tested something, describe how you tested with details like browser and version
  • Review the results of the linter and fix problems reported (If you need help, please ask in a comment!)
  • Link to related issues or pull requests, if any

* `pagehide`
* `pageshow`
* `rejectionhandled`
* `unhandledrejection`

Sources for `pageshow` and `pagehide`: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching.
All other version information copied from the corresponding event handler properties.

* `push`
* `pushsubscriptionchange`

Source: All version information taken from the corresponding event handler properties.

* `paymentmethodchange`
* `merchantvalidation`
* `shippingaddresschange`
* `shippingoptionchange`

Source: All version information taken from the corresponding event handler properties.

* `mute`
* `unmute`

Source: All version information taken from the corresponding event handler properties.

* PromiseRejectionEvent (cleaned up notes that refer to changed events)
@Elchi3 Elchi3 added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Apr 3, 2019
@a2sheppy a2sheppy requested a review from chrisdavidmills April 3, 2019 15:36
@a2sheppy
Copy link
Contributor Author

a2sheppy commented Apr 3, 2019

Assigned to Chris for review as planned during sprint planning meetings.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

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

Hey @a2sheppy !

I've reviewed this, and it's looking mostly good. I had a few queries:

  1. I couldn't find merchantvalidation/onmerchantvalidation in PaymentRequest. Add these?
  2. pageshow/pagehide looks like it is only supported in Fx, from your data. Did you test it in other browsers? Is it therefore experimental, in which case experimental should be set to true for those?
  3. there's no entry for the onrejectionhandled handler. Add one?

I'm assuming you've written pages for these too — do you want me to review them as well?

@a2sheppy
Copy link
Contributor Author

a2sheppy commented Apr 9, 2019

@chrisdavidmills --

Fixed #1 and #3.

As to #2, pageshow and pagehide are part of both the WHATWG and W3C specifications, and have been for a long time, so they are not experimental.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

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

This all looks good to me; thanks sheppy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants