Граф коммитов

155 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt 67e0a28855 Bug 1669784 - Merge TypedObject namespace into WebAssembly namespace, gated on GC feature. r=lth
This commit merges the TypedObject namespace into the WebAssembly namespace, and
only exposes the TypedObject definitions when the GC feature is enabled.

A future commit will remove the TypedObject definitions from the namespace, but we
still need the infrastructure from this commit for storing the TypedObject definitions
in private slots in the namespace.

Differential Revision: https://phabricator.services.mozilla.com/D92857
2020-10-12 21:01:39 +00:00
Jason Orendorff 7eb9e6c8e0 Bug 1647066 - Fix interfaces tests for shipping AggregateError to beta. r=jwalden.
Differential Revision: https://phabricator.services.mozilla.com/D80755
2020-06-24 00:52:46 +00:00
Jon Coppeard ebd33b0e2f Bug 1639246 - Ship weak refs r=sfink,smaug
This renames the pref to remove 'experimental' and turns it on by default.

For integration with the CC, any DOM objects that are the target of a WeakRef or registered with a FinalizationRegistry have their wrappers preserved. WeakRef.deref() checks whether any wrapper is still preserved and returns undefined if not, to avoid giving out references to wrappers whose DOM object has been cycle collected.

Tests exercising browser integration are under js/xpconnect/tests/mochitest/.

Differential Revision: https://phabricator.services.mozilla.com/D77656
2020-06-09 11:20:45 +00:00
Tom Tung dd538bb240 Bug 1606624 - Changes on interface tests in mochitest; r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D66777
2020-05-19 04:30:19 +00:00
Tom Tung 9662fc231a Bug 1624266 - Update some mochitests for testing interfaces; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71573
2020-05-04 07:31:50 +00:00
Andrea Marchesini 816c2719d8 Bug 1630947 - Update Reporting API - part 2 - tests for Workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71318
2020-04-18 12:26:15 +00:00
J.C. Jones ac5dfc4597 Bug 1333140 - Require SecureContext for WebCrypto r=bholley,keeler,baku
Adds [SecureContext] for crypto.subtle, CryptoKey, and SubtleCrypto, retiring
the WebCrypto WPT overrides for WebCryptoAPI/historical.any.js.

Rebased on https://phabricator.services.mozilla.com/D58743

Differential Revision: https://phabricator.services.mozilla.com/D58555

--HG--
extra : moz-landing-system : lando
2020-02-11 09:25:09 +00:00
Tom Tung 5666324739 Bug 1612307 - Fix a set of typos on interface mochitests; r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D61579

--HG--
extra : moz-landing-system : lando
2020-02-07 07:37:33 +00:00
Tom Tung 7537dfd059 Bug 1612307 - Correct the channels for Atmoics and SharedArrayBuffer in interfaces mochitests; r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D61429

--HG--
extra : moz-landing-system : lando
2020-02-03 16:47:37 +00:00
Tom Tung 64a20094ea Bug 1562667 - P4a - Enable SAB by default on nightly; r=bzbarsky,luke
This patch mainly enables the pref for SharedArrayBuffer on Nightly.

This change causes some tests to fail. This patch handles the failures for
mochitests and web-platform-tests. The jsreftest will be handled in the next
patch.

For mochitests:
- dom/serviceworkers/test/test_serviceworker_interfaces.js
- dom/tests/mochitest/general/test_interfaces.js
- dom/workers/test/test_worker_interfaces.js

These tests check which interfaces are exposed on the web. Since we are now
exposing SharedArrayBuffer in some configurations, the tests need to be adjusted
accordingly.

For the rest of tests in this patch:
- testing/web-platform/meta/encoding/encodeInto.any.js.ini
This test partially fails because the integration of encoding and SAB is not
completely supported yet.

- testing/web-platform/meta/encoding/streams/decode-utf8.any.js.ini
This test partially fails because the integration of decoding and SAB is not
completely supported yet.

- testing/web-platform/meta/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.js.ini
- testing/web-platform/meta/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-success.any.js.ini
- testing/web-platform/meta/wasm/jsapi/memory/constructor.any.js.ini
- testing/web-platform/meta/wasm/jsapi/memory/grow.any.js.ini
The subtests related to SAB in these tests now pass when SAB is enabled, so we
need to annotate them as failing only in configurations where SAB is disabled.

- testing/web-platform/meta/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html.ini
This test partially fails because there are some issues between SAB and Audio.

Differential Revision: https://phabricator.services.mozilla.com/D48838

--HG--
extra : moz-landing-system : lando
2019-11-25 16:28:06 +00:00
André Bargull 03641f5a5a Bug 1568903 - Part 11: Update ecma-globals list in mocha interfaces tests. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D53169

--HG--
extra : moz-landing-system : lando
2019-11-22 18:22:08 +00:00
James Willcox ea5c701029 Bug 1343678 - Enable web push pref for GeckoView r=geckoview-reviewers,droeh,smaug,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D41288

--HG--
extra : moz-landing-system : lando
2019-09-05 13:59:32 +00:00
Mark Banner 709c7ccf0c Bug 1577746 - Automatically enable more ESLint rules for dom/. r=baku
This enables:
- mozilla/no-useless-parameters
- mozilla/no-useless-run-test
- no-extra-boolean-cast
- no-unneeded-ternary

Depends on D44150

Differential Revision: https://phabricator.services.mozilla.com/D44151

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:26 +00:00
Noemi Erli 478b1751c7 Backed out 5 changesets (bug 1343678) for causing multiple web-platform failures CLOSED TREE
Backed out changeset 4b77646bc788 (bug 1343678)
Backed out changeset 7396789341b1 (bug 1343678)
Backed out changeset 85526faefe6d (bug 1343678)
Backed out changeset 07b757a21222 (bug 1343678)
Backed out changeset 3551cc55620d (bug 1343678)
2019-08-30 00:36:40 +03:00
James Willcox 7586331427 Bug 1343678 - Enable web push pref for GeckoView r=geckoview-reviewers,droeh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D41288

--HG--
extra : moz-landing-system : lando
2019-08-29 18:59:28 +00:00
Dorel Luca 547786f1cd Backed out 3 changesets (bug 1343678) for WPT failures on Android. CLOSED TREE
Backed out changeset 619e7838ebfd (bug 1343678)
Backed out changeset 5010684cdca4 (bug 1343678)
Backed out changeset b01343e4c2eb (bug 1343678)
2019-08-28 23:09:08 +03:00
James Willcox 3c29fb1982 Bug 1343678 - Enable web push pref for GeckoView r=geckoview-reviewers,droeh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D41288

--HG--
extra : moz-landing-system : lando
2019-08-28 16:06:39 +00:00
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35951

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00
Kagami Sascha Rosylight a235dfa68b Bug 1558387: Remove DOMError constructor r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D35184

--HG--
extra : moz-landing-system : lando
2019-06-17 15:43:38 +00:00
Boris Zbarsky 596c812760 Bug 1559638. Fix interface-exposure tests to account for geometry interfaces being exposed in workers. r=bzbarsky 2019-06-15 18:15:03 -04:00
Edgar Chen 1ea67058f6 Bug 1525554 - Enable promise rejection event and update tests result; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31734

--HG--
extra : moz-landing-system : lando
2019-06-04 12:55:57 +00:00
Ryan VanderMeulen 8f5477d25e Bug 1313741 - Use AppConstants in DOM and XPConnect tests instead of manual detection. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D30973

--HG--
extra : moz-landing-system : lando
2019-05-14 21:01:05 +00:00
Robin Templeton fa340ddad3 Bug 1527902 - Enable javascript.options.bigint by default r=jandem,kmag
Differential Revision: https://phabricator.services.mozilla.com/D29182

--HG--
extra : moz-landing-system : lando
2019-05-02 19:19:00 +00:00
Emily Toop 177efc3267 Bug 1547100 - Enable GV StorageManager testing in Mochitests. r=asuth
We want to start exposing the storage manager (`navigator.storage.persist`) for GeckoView enabled apps, but continue not exposing it in Fennec. To enable this a new entry type for Fennec only (different from generic Android) is added to allow us to continue to exclude Fennec from the tests while enabling the tests for other Android builds.

Differential Revision: https://phabricator.services.mozilla.com/D29226

--HG--
extra : moz-landing-system : lando
2019-04-30 19:20:49 +00:00
Robin Templeton 0093033657 bug 1456569 - Implement BigInt64 and BigUint64Array. r=wingo,jwalden,sfink
Differential Revision: https://phabricator.services.mozilla.com/D12581

--HG--
extra : moz-landing-system : lando
2019-04-02 17:11:13 +00:00
Noemi Erli 5d1c793bad Backed out changeset 6ccad746f5d8 (bug 1456569) for Linting opt failure in TypedArray.js CLOSED TREE 2019-04-02 05:40:09 +03:00
Robin Templeton d1fd3eb1c9 bug 1456569 - Implement BigInt64 and BigUint64Array. r=wingo,jwalden,sfink
Differential Revision: https://phabricator.services.mozilla.com/D12581

--HG--
extra : moz-landing-system : lando
2019-04-01 22:22:28 +00:00
Andy Wingo 83128e6945 Bug 1531293 - Enable javascript.options.bigint on Nightly r=jandem,kmag
Differential Revision: https://phabricator.services.mozilla.com/D21528

--HG--
extra : moz-landing-system : lando
2019-03-22 08:57:44 +00:00
James Willcox 46b85d411a Bug 1506642 - Don't try to test for various Push interfaces on GeckoView r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D11661

--HG--
extra : moz-landing-system : lando
2018-12-10 22:19:26 +00:00
Jason Orendorff 388017b68a Bug 1505122 - Enable ReadableStream for beta and release. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D12187

--HG--
extra : moz-landing-system : lando
2018-11-30 16:31:47 +00:00
Jason Orendorff 8a5616d1e2 Bug 1389628 - Part 2: Enable Streams API by default. r=baku,tcampbell
Depends on D8705

Differential Revision: https://phabricator.services.mozilla.com/D8706

--HG--
extra : moz-landing-system : lando
2018-11-07 17:02:02 +00:00
Jean-Yves Avenard f5fbe2c29b Bug 1480190 - Enable media-capablities extension by default. r=drno,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D3061

--HG--
extra : moz-landing-system : lando
2018-08-11 17:37:08 +00:00
Benjamin Bouvier 962d9c7182 Bug 1416723: Remove SIMD.js support; r=luke, r=nbp
--HG--
extra : rebase_source : d0af6d791d53015f9da0b70ebeda640a4ad5952a
2018-07-24 15:15:01 +02:00
Kershaw Chang ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E) 0aa410f629 Bug 1423495 - Part3: Add PerformanceServerTiming to test_interface.js, r=baku
MozReview-Commit-ID: 663c9sudEIR

--HG--
extra : rebase_source : 9c7a81db01758e4f6e35236a5e7ce40557c9f2a1
2018-01-10 04:02:00 +01:00
Boris Zbarsky 55cdcb3d94 Bug 1451929. Get rid of DOMCursor. r=qdot 2018-04-05 20:31:03 -04:00
Boris Zbarsky bb7433ad51 Bug 1442313 part 4. Use getJSTestingFunctions() in test_worker_interfaces.js. r=luke
MozReview-Commit-ID: IUQQX3ixkgl
2018-03-01 14:24:20 -05:00
Andreea Pavel 14a1838c54 Backed out 4 changesets (bug 1442313) for frequently failing crashtests on android, e.g. libeditor/crashtests/772282.html and layout/generic/crashtests/542136-1.html a=backout
Backed out changeset bfef9139500f (bug 1442313)
Backed out changeset 660332ce1bf0 (bug 1442313)
Backed out changeset 9788a46b8874 (bug 1442313)
Backed out changeset 8fc2c103027b (bug 1442313)
2018-03-02 18:08:23 +02:00
Boris Zbarsky dee0ddf86f Bug 1442313 part 4. Use getJSTestingFunctions() in test_worker_interfaces.js. r=luke
MozReview-Commit-ID: IUQQX3ixkgl
2018-03-01 14:24:20 -05:00
Boris Zbarsky 503cf68b4b Bug 1441927 part 2. Move the is* constants to the top of test_interfaces.js so we can use them in our property lists. r=bkelly
MozReview-Commit-ID: FXqx6tn4W32
2018-03-01 12:32:33 -05:00
Boris Zbarsky 2ec9ec7f7c Bug 1441927 part 1. Change JS bits in test_interfaces to actually test when they should be exposed instead of just whether their exposure matches some function's return value. r=luke
MozReview-Commit-ID: BsWDcdybXvk
2018-03-01 12:32:32 -05:00
Andrea Marchesini 06826c7ed6 Bug 1425458 - Resource timing entries Workers - part 6 - PerformanceResourceTiming exposed, r=smaug 2018-01-24 17:17:32 +01:00
Brindusan Cristian 368c3d5b6b Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini 692e6f7518 Bug 1425458 - Resource timing entries Workers - part 6 - PerformanceResourceTiming exposed, r=smaug 2018-01-24 17:17:32 +01:00
Boris Zbarsky 470a97f6d7 Bug 1429014. Make test_interfaces require explicit opt-in to add a non-SecureContext interface. r=bkelly
The big data tables had the following search-and-replaces done on them:

  name: "\([^"]+\)" -> name: "\1", insecureContext: true

  "\([^"]+\)",$ -> {name: "\1", insecureContext: true},

followed by removal of both isSecureContext and insecureContext annotations
where both appeared.

MozReview-Commit-ID: BkqAwXFf48x
2018-01-16 14:39:58 -05:00
Lars T Hansen b6e7d3a2ba Bug 1423225 - Disable javascript.options.shared_memory. r=lth, r=jgraham, a=lizzard 2017-11-08 11:44:53 +01:00
Jan de Mooij 2681f26832 Bug 1413867 - Remove StopIteration object. r=evilpie 2017-11-05 19:01:04 +01:00
Shawn Huang f86d1e915d Bug 1399038 - Enable Storage API on beta/release. r=janv, baku 2017-09-13 21:46:36 +08:00
Ryan VanderMeulen ff0d30fe5b Bug 1397982 - Update the expectations for test_interfaces.js and test_worker_interfaces.js now that Abort API is being shipped by default. r=baku 2017-09-08 08:28:30 -04:00
Hiroyuki Ikezoe 6f94f8a66c Bug 1397980 - Drop nightly only flag for PerformanceObserver and PerformanceObserverEntryList. r=baku
They have been already enabled on all channels in bug 1386021.

MozReview-Commit-ID: BCin6tCweqV

--HG--
extra : rebase_source : dfa156466e223fbc7e73c2c6a7d9662c6f4d6aac
2017-09-08 12:18:13 +09:00
Andrea Marchesini 1fbe4316ad Bug 1395006 - Use preferences to enable Abort API for testing in release. r=qdot
--HG--
rename : dom/tests/mochitest/fetch/slow.sjs => dom/abort/tests/slow.sjs
extra : rebase_source : 8bb35c3f2f92a06bebaba181d29c903d38deb40a
2017-08-29 23:09:00 -04:00