Expose CloseEvent and CustomEvent to workers
authoryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2018 13:31:50 +0000 (13:31 +0000)
committeryusukesuzuki@slowstart.org <yusukesuzuki@slowstart.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2018 13:31:50 +0000 (13:31 +0000)
commit42304c6ba4cc4c8aaace93a49ed4af06f00bdf31
tree86e369f27e10357f44e5953877395566c5add38d
parent9a5350849909dc68ced2542dade728e425e01242
Expose CloseEvent and CustomEvent to workers
https://bugs.webkit.org/show_bug.cgi?id=188493

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

* web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt:

Source/WebCore:

This patch exposes CloseEvent and CustomEvent to workers.
It is OK since they do not depend on things in the main thread.
For example, we cannot expose FormData right now since it depends
on Page.

We do not expose PromiseRejectionEvent in this patch since it will
be done in [1].

[1]: https://bugs.webkit.org/show_bug.cgi?id=188265

* Modules/websockets/CloseEvent.idl:
* dom/CustomEvent.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/Modules/websockets/CloseEvent.idl
Source/WebCore/dom/CustomEvent.idl