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

5657 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange df441c491f Bug 1726480 - Add IOUtils::OpenFileForSyncReading. r=dom-worker-reviewers,asuth
This exposes synchronous file reading to workers. It's intended to be used
by profiler symbolication.
The API only supports reading into an existing Uint8Array. This avoids
creating garbage, and minimizes copies.
It also keeps the file open so that it doesn't need to be reopened for
each read.

The implementation uses nsFileStream.

I first tried an implementation which used mmap + memcpy rather than read,
but it didn't work for files larger than 2GiB due to limitations in NSPR's
mmap support, and the profiler needs to read >2GiB files.
Specifically, the profiler sometimes needs to read
/System/Library/dyld/dyld_shared_cache_arm64e , which is 2.2GiB big on
macOS 11.5.

Differential Revision: https://phabricator.services.mozilla.com/D124207
2021-11-04 19:47:29 +00:00
Emilio Cobos Álvarez df34135583 Bug 1738663 - Remove unneeded special-case for backdrop-filter in GenerateCSS2PropertiesWebIDL. r=layout-reviewers,mats
This was needed when backdrop-filter-enabledness depended on
WebRender-enabledness, but now it's available everywhere.

Depends on D130027

Differential Revision: https://phabricator.services.mozilla.com/D130028
2021-11-02 14:22:08 +00:00
Dan Minor bb596c69e6 Bug 1654112 - Add include dirs for abseil-cpp. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D130060
2020-10-26 15:19:21 -04:00
Dan Minor 38d5d300d9 Bug 1654112 - Update include paths for moved upstream code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D130059
2020-10-23 14:02:54 -04:00
Sandor Molnar 93640ebd87 Bug 1737000 - fix lint failure in dom/bindings/Codegen.py. a=lint-fix CLOSED TREE 2021-10-21 19:32:45 +03:00
Emilio Cobos Álvarez c38bc7b333 Bug 1737000 - Make [UseCounter] work on WebIDL constructors. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D129134
2021-10-21 16:02:01 +00:00
Edgar Chen 791c03c6a7 Bug 1736564 - Create a common error message for conversion error; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D128883
2021-10-20 08:27:55 +00:00
Steve Fink c69cbcabfe Bug 1582895 - Annotate UnionMember with MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D46687
2021-10-18 20:34:39 +00:00
Mike Hommey e67c38d728 Bug 1734523 - Remove the use of MozbuildObject.mozconfig in mozwebidlcodegen. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D127765
2021-10-07 15:19:03 +00:00
Matthew Gaudet 3f20b90025 Bug 1731070 - Implement ReadableStream.tee() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126002
2021-10-06 18:43:02 +00:00
Matthew Gaudet 3bcfc27cef Bug 1730589 - Initial Implementation of ReadableStreams using WebIDL and DOM technologies r=smaug
This patch begins re-implements ReadableStreams using WebIDL and DOM technology (vs the existing JS streams implementation).   Some more background is [here](https://docs.google.com/document/d/1MWRkF32KV60ngOY-Ip4PnKbCMvl6VK_Y9QLED8MJJxg/edit#)

This is guarded under a configure flag `--enable-dom-streams`

1. ByteStreams and ReadableStream.tee will come in future patches.
2. I intentionally crash in other parts of the DOM that require streams (Fetch, Response, Blob), until the integration work is done in future patches.

   My current plan for that integration doesn't involve re-creating the alternative 'external streams' API from SpiderMonkey's implementation, but I have yet to do enough development to verify that will work.

Differential Revision: https://phabricator.services.mozilla.com/D122643
2021-10-06 18:43:01 +00:00
Luca Greco 2be3791be5 Bug 1688040 - part7.1: Added WebIDL-based binding for the browser.runtime WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D106700
2021-10-06 12:28:21 +00:00
Luca Greco a73062e1f9 Bug 1688040 - part5: Added WebIDL-based binding for the browser.alarms WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102928
2021-10-06 12:28:20 +00:00
Luca Greco 46f824c0c7 Bug 1688040 - part4.1: Initial WebIDL-based bindings for browser.test API namespace r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102642
2021-10-06 12:28:19 +00:00
Iulian Moraru 925895e1ed Backed out 27 changesets (bug 1688040) for causing multiple failures. CLOSED TREE
Backed out changeset 85ba163b6423 (bug 1688040)
Backed out changeset 36cdc1600e66 (bug 1688040)
Backed out changeset 88395ab5a5b5 (bug 1688040)
Backed out changeset 8d33bdd8d0b8 (bug 1688040)
Backed out changeset fdbced7a94f3 (bug 1688040)
Backed out changeset 922ca2f20fa1 (bug 1688040)
Backed out changeset 7fc233bf144c (bug 1688040)
Backed out changeset 64221db54d98 (bug 1688040)
Backed out changeset 4d9b2a9dd247 (bug 1688040)
Backed out changeset c8d890f1a8e2 (bug 1688040)
Backed out changeset 81e957717eb1 (bug 1688040)
Backed out changeset b7dcade29dab (bug 1688040)
Backed out changeset 20e38838aa89 (bug 1688040)
Backed out changeset 08737e7ea047 (bug 1688040)
Backed out changeset b82645d5b7c7 (bug 1688040)
Backed out changeset db374d34839a (bug 1688040)
Backed out changeset 6a2ebb56325d (bug 1688040)
Backed out changeset 7d0ce555263f (bug 1688040)
Backed out changeset 15e0689a57f0 (bug 1688040)
Backed out changeset d7d6b1bec92a (bug 1688040)
Backed out changeset 615b683acb00 (bug 1688040)
Backed out changeset 49d3e1baf577 (bug 1688040)
Backed out changeset 30cc613912ce (bug 1688040)
Backed out changeset d413ec19bded (bug 1688040)
Backed out changeset cfdf6e87d820 (bug 1688040)
Backed out changeset f719b9d0bc25 (bug 1688040)
Backed out changeset 925f23a58da6 (bug 1688040)
2021-10-05 22:49:40 +03:00
Luca Greco eead64213b Bug 1688040 - part7.1: Added WebIDL-based binding for the browser.runtime WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D106700
2021-10-05 17:05:41 +00:00
Luca Greco 4f24ffd5a4 Bug 1688040 - part5: Added WebIDL-based binding for the browser.alarms WebExtensions API. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102928
2021-10-05 17:05:40 +00:00
Luca Greco c86c10833d Bug 1688040 - part4.1: Initial WebIDL-based bindings for browser.test API namespace r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102642
2021-10-05 17:05:39 +00:00
Peter Van der Beken 41f13509b9 Bug 1726595 - WebIDL code generation for Promise returning callbacks doesn't handle abrupt completions correctly. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D125531
2021-09-28 15:20:58 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Andrew McCreight 61aac61b62 Bug 1731886 - Use release asserts for WebIDL union getters. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D126293
2021-09-22 11:28:58 +00:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Butkovits Atila c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Alex Lopez fe61e94ec8 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-20 20:21:07 +00:00
Noemi Erli 91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
Alex Lopez bf860fe7dc Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-17 19:00:39 +00:00
Edgar Chen d34d32ffe8 Bug 1729800 - Convert nsExtendedDOMSlots::mCustomElementData to UniquePtr; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124987
2021-09-09 13:23:03 +00:00
Steve Fink e0df89a627 Bug 1720422 - Switch DOM bindings typed arrays to using JSAPI templates r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D119858
2021-09-08 23:47:00 +00:00
Jeff Gilbert fa284e5717 Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl
Differential Revision: https://phabricator.services.mozilla.com/D122916
2021-08-27 01:47:14 +00:00
Andi-Bogdan Postelnicu 250fa0d795 Bug 1725145 - header files fixes in the hybrid build env. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D122343
2021-08-22 10:21:55 +00:00
Butkovits Atila 477919f37c Backed out changeset a4a346ecefd7 (bug 1726265) for causing failures at test_2_conformance2__extensions__oes-draw-buffers-indexed.html. CLOSED TREE 2021-08-21 01:46:52 +03:00
Jeff Gilbert 28e862be2d Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio
Differential Revision: https://phabricator.services.mozilla.com/D122916
2021-08-20 20:59:54 +00:00
Cosmin Sabou 135d55cd7e Backed out changeset 24e0d3aa4ada (bug 1726265) for causing non-unified build bustage. CLOSED TREE 2021-08-20 04:29:04 +03:00
Jeff Gilbert df78036187 Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio
Differential Revision: https://phabricator.services.mozilla.com/D122916
2021-08-20 00:05:06 +00:00
Geoff Brown 8a563cea2a Bug 1724296 - Remove many skip-if(verify) test annotations (mochitest); r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122972
2021-08-18 21:33:32 +00:00
Dzmitry Malyshau 1da5651ba2 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-08-18 14:11:21 +00:00
Brindusan Cristian 1cdd46e3ba Backed out changeset e34f15d5e74d (bug 1622846) for causing linux toolchain build bustages.
CLOSED TREE
2021-08-18 07:58:38 +03:00
André Bargull d2bbf86876 Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai
In preparation for the next part, add missing includes to "js/" public headers.

Differential Revision: https://phabricator.services.mozilla.com/D122843
2021-08-17 15:45:39 +00:00
Dzmitry Malyshau 6d7cfc6c90 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-08-17 15:22:45 +00:00
Narcis Beleuzu e61a054602 Backed out 13 changesets (bug 1720422) for hazards bustages on Cache.cpp
Backed out changeset 94293ba5a5a5 (bug 1720422)
Backed out changeset ccb7a164fe32 (bug 1720422)
Backed out changeset 44c3e9e78d0a (bug 1720422)
Backed out changeset 6880cf8c51bc (bug 1720422)
Backed out changeset 23cc649c6e14 (bug 1720422)
Backed out changeset 16695064a637 (bug 1720422)
Backed out changeset b5bafd6f08d3 (bug 1720422)
Backed out changeset f212ab757312 (bug 1720422)
Backed out changeset 180daaed9cc8 (bug 1720422)
Backed out changeset 410e13fdf4e5 (bug 1720422)
Backed out changeset 677e4aa42b4d (bug 1720422)
Backed out changeset ae5f6b9ecf4a (bug 1720422)
Backed out changeset 77ff4529ea3e (bug 1720422)
2021-08-13 07:02:45 +03:00
Steve Fink bf7140eaa9 Bug 1720422 - Switch DOM bindings typed arrays to using JSAPI templates r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D119858
2021-08-12 20:44:18 +00:00
Kagami Sascha Rosylight 6558b120fa Bug 1724721 - Emit concatenated namespace from CGNamespace.build r=edgar
This makes the generated code from `mach webidl-example` more clang-tidy friendly.

Differential Revision: https://phabricator.services.mozilla.com/D122122
2021-08-09 22:36:00 +00:00
Jan de Mooij b1a7acb403 Bug 1716622 - Limit ImageData typed array to 2 GB. r=edgar
After we enabled support for large ArrayBuffers on 64-bit platforms, we could
also create larger ImageData objects. WebIDL bindings check for large ArrayBuffer{View}s
but not when they're wrapped in an ImageData.

It seems safest to limit ImageData arrays to the old 2 GB for now until we need larger
buffers.

Differential Revision: https://phabricator.services.mozilla.com/D121595
2021-08-06 14:23:24 +00:00
Zibi Braniecki 9f3aa2521f Bug 1613705 - [localization] part2: Switch Localization class to use localization-ffi. r=emilio,nika
Depends on D104788

Differential Revision: https://phabricator.services.mozilla.com/D104789
2021-08-03 16:25:10 +00:00
Butkovits Atila 949da905e7 Backed out 19 changesets (bug 1613705) for causing build bustages complaining about Document.cpp. CLOSED TREE
Backed out changeset 2ee1091dd20d (bug 1613705)
Backed out changeset d377afc0b09f (bug 1613705)
Backed out changeset de9d4378f0ac (bug 1613705)
Backed out changeset 9843372abb6e (bug 1613705)
Backed out changeset 5fc5918e5905 (bug 1613705)
Backed out changeset a7aeae7afd49 (bug 1613705)
Backed out changeset 5d61617a5402 (bug 1613705)
Backed out changeset 85bf98573899 (bug 1613705)
Backed out changeset 175af8a1b8c2 (bug 1613705)
Backed out changeset 93fcb23d7898 (bug 1613705)
Backed out changeset 595529cd906f (bug 1613705)
Backed out changeset 9f3e2963d925 (bug 1613705)
Backed out changeset 442289058933 (bug 1613705)
Backed out changeset fc3b9acb0e81 (bug 1613705)
Backed out changeset 408983c64f7f (bug 1613705)
Backed out changeset 08b637fc3fcd (bug 1613705)
Backed out changeset 6ef0aafd2db0 (bug 1613705)
Backed out changeset d88b294e0a5e (bug 1613705)
Backed out changeset e6bebff87544 (bug 1613705)
2021-08-03 12:36:01 +03:00
Zibi Braniecki 294c93befa Bug 1613705 - [localization] part2: Switch Localization class to use localization-ffi. r=emilio,nika
Depends on D104788

Differential Revision: https://phabricator.services.mozilla.com/D104789
2021-08-03 05:52:00 +00:00
Kagami Sascha Rosylight b919f6cd51 Bug 1723050 - Part 3: Replace typedef by using in dom/bindings/ r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D121295
2021-08-02 14:12:00 +00:00
Cosmin Sabou 3564c330b3 Backed out 11 changesets (bug 1613705) for several test failures. CLOSED TREE
Backed out changeset 4e690882b6af (bug 1613705)
Backed out changeset 302e7a75affc (bug 1613705)
Backed out changeset 626b40e3aad1 (bug 1613705)
Backed out changeset 1cbab987bb7d (bug 1613705)
Backed out changeset 2213917abb30 (bug 1613705)
Backed out changeset c89aa0375690 (bug 1613705)
Backed out changeset 6466027c5767 (bug 1613705)
Backed out changeset 6c188c4b38bf (bug 1613705)
Backed out changeset 8d0c087b9896 (bug 1613705)
Backed out changeset 3404fd6725f1 (bug 1613705)
Backed out changeset c9cfbba15d90 (bug 1613705)
2021-08-02 14:04:29 +03:00
Zibi Braniecki bcc80223e2 Bug 1613705 - [localization] part2: Switch Localization class to use localization-ffi. r=emilio,nika
Depends on D104788

Differential Revision: https://phabricator.services.mozilla.com/D104789
2021-08-02 09:54:07 +00:00