Bug 1415682 - Abort API exposed to System, r=qdot

This commit is contained in:
Andrea Marchesini 2017-11-10 19:37:13 +01:00
parent 8088ca91a2
commit bbddef77bd
6 changed files with 18 additions and 2 deletions

View File

@ -181,6 +181,7 @@ devtools/server/tests/unit/setBreakpoint*
devtools/server/tests/unit/sourcemapped.js
# dom/ exclusions
dom/abort/**
dom/animation/**
dom/archivereader/**
dom/asmjscache/**

View File

@ -5,3 +5,5 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
MOCHITEST_MANIFESTS += ['mochitest.ini']
XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']

View File

@ -0,0 +1,8 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
function run_test() {
let ac = new AbortController();
do_check_true(ac instanceof AbortController);
do_check_true(ac.signal instanceof AbortSignal);
}

View File

@ -0,0 +1,5 @@
[DEFAULT]
head =
support-files =
[test_abort.js]

View File

@ -7,7 +7,7 @@
* https://dom.spec.whatwg.org/#abortcontroller
*/
[Constructor(), Exposed=(Window,Worker)]
[Constructor(), Exposed=(Window,Worker,System)]
interface AbortController {
readonly attribute AbortSignal signal;

View File

@ -7,7 +7,7 @@
* https://dom.spec.whatwg.org/#abortsignal
*/
[Exposed=(Window,Worker)]
[Exposed=(Window,Worker,System)]
interface AbortSignal : EventTarget {
readonly attribute boolean aborted;