Implement self.queueMicrotask in Workers
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2018 07:59:13 +0000 (07:59 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2018 07:59:13 +0000 (07:59 +0000)
commitb4bad680fe98e8c9e71a3fcb3c660f993f667b8b
tree63c138746f28a22dd5ccf6deb8396fa7a8073fe8
parent458c4540fd284dd2ac3aefe949635e2550ee469e
Implement self.queueMicrotask in Workers
https://bugs.webkit.org/show_bug.cgi?id=188247

Reviewed by Ryosuke Niwa.

Source/WebCore:

This patch adds support for self.queueMicrotask to workers.

Tests: http/wpt/workers/queue-microtask.any.html
       http/wpt/workers/queue-microtask.any.worker.html

* bindings/js/JSWorkerGlobalScopeCustom.cpp:
(WebCore::JSWorkerGlobalScope::queueMicrotask):
* page/DOMWindow.idl:
Move queueMicrotask declaration to WindowOrWorkerGlobalScope.idl.
* page/WindowOrWorkerGlobalScope.idl:

LayoutTests:

* http/wpt/workers/queue-microtask.any-expected.txt: Added.
* http/wpt/workers/queue-microtask.any.html: Added.
* http/wpt/workers/queue-microtask.any.js: Added.
(promise_test):
(promise_test.):
(queueMicrotask.promise_test):
(test):
* http/wpt/workers/queue-microtask.any.worker-expected.txt: Added.
* http/wpt/workers/queue-microtask.any.worker.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/wpt/workers/queue-microtask.any-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/workers/queue-microtask.any.html [new file with mode: 0644]
LayoutTests/http/wpt/workers/queue-microtask.any.js [new file with mode: 0644]
LayoutTests/http/wpt/workers/queue-microtask.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/workers/queue-microtask.any.worker.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
Source/WebCore/page/DOMWindow.idl
Source/WebCore/page/WindowOrWorkerGlobalScope.idl