aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-1127-404/+347
| | | | | * strict imports formatting * Reformat all imports
* Use MozTools 4 and update mozjs (#30326)Samson2023-09-114-5/+5
| | | | | | | | | | | | | | | | | | | * Update mozjs * moztools4 in bootstrap * no autoconf * tidy * switch to servo-build-deps * update mozjs for real * glue mozjs * fmt * move to servo/mozjs
* remove `extern crate` (#30311)Samson2023-09-084-3/+4
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Replace a method call now deprecated in mozjs (#30307)Martin Robinson2023-09-061-1/+1
|
* Impl Setlike and Maplike (#30237)Samson2023-09-064-4/+382
| | | | | | | | | | | | | | | | | | | * MallocSizeOf for Index{Set, Map} * like as iterable in WebIDL * Codegen magic for like interfaces * TestBinding for like * Test for Setlike and Maplike test bindings * Some fixes * Switch to any.js * nit * Keep order
* build(deps): bump bitflags from 1.3.2 to 2.3.1 (#30273)Martin Robinson2023-09-011-1/+1
| | | | | | Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.1)
* Use std::cell::OnceCell and remove mitochondria dependency (#30207)Martin Robinson2023-08-251-4/+3
| | | | | `OnceCell` is now part of the standard library and we'll be able to use it once we upgrade rust. For now we can use the version that's shipped behind a feature flag in rust. This removes a dependency on one crate.
* Fix the 32-bit build (#30204)Martin Robinson2023-08-251-2/+2
| | | | Use the `libc::char` to represent a pointer to characters rather than `i8`. This fixes the build for the Raspberry Pi and Android 32-bit.
* Fix warnings after chrono upgrade (#30165)Martin Robinson2023-08-231-5/+8
| | | | Some functions are now deprecated, so use the suggested ones and do a general cleanup of the affected lines of code.
* Upgrade whole webgpu stack (#29795)Samson2023-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow noidl files in script/dom/webidls * Upgrade wgpu to 0.16 and refresh whole webgpu implementation * Update WebGPU test expectations * misc * MutNullableDom -> DomRefCell<Option<Dom for GPUTexture * Direct use of GPUTextureDescriptor * Remove config from GPUCanvasContext * misc * finally blue color * gpubuffer "handle" error * GPU object have non-null label * gpu limits and info * use buffer_size * fix warnings * Cleanup * device destroy * fallback adapter * mach update-webgpu write webgpu commit hash in file * Mising deps in CI for webgpu tests * Updated expectations * Fixups * early reject * DomRefCell<Option<Dom -> MutNullableDom for GPUTexture
* Use mozjs tracing infrastructure (#29918)Samson2023-08-102-336/+51
| | | | | | | * Update mozjs https://github.com/servo/mozjs/commit/64711ec2e6dc4595df691bffc7f1e5052ab86c8d also fixes https://github.com/servo/servo/issues/30043 * Move to mozjs Traceable and introduce CustomTraceable
* No tracing of nop traceable fields (#29926)Samson2023-08-041-482/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Auto merge of #29850 - servo:css-viewport-removal, r=mrobinsonbors-servo2023-06-301-7/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | CSS viewport removal It was removed from the spec and it's disabled everywhere. This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26349 - [x] There are tests for these changes
| * It was removed from the spec and it's disabled everywhere.Emilio Cobos Álvarez2023-06-301-7/+1
| | | | | | | | This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed.
* | Create a top-level "third_party" directoryMartin Robinson2023-06-30146-33872/+7
|/ | | | | | | This directory now contains third_party software that is vendored into the Servo source tree. The idea is that it would eventually hold webrender and other crates from mozilla-central as well with a standard patch management approach for each.
* Rename reflect_dom_object2.Josh Matthews2023-05-312-3/+7
|
* Assert that we're constructing.Josh Matthews2023-05-301-1/+2
|
* Throw type error when calling DOM constructor without new.Josh Matthews2023-05-303-15/+45
|
* Don't root a Realm that's used for one call.dom-protosJosh Matthews2023-05-291-3/+3
|
* Formatting.Josh Matthews2023-05-284-35/+52
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-283-7/+7
|
* Support arbitrary protos when wrapping EventTarget objects.Josh Matthews2023-05-285-18/+181
|
* Auto merge of #29798 - jdm:per-interface-codegen, r=jdmbors-servo2023-05-262-30/+74
|\ | | | | | | | | | | | | | | | | | | | | Extract bodies of generated binding helpers into common code This is part of fixing #29770, by extracting common behaviour that [will be called](https://searchfox.org/mozilla-central/rev/2d678a843ceab81e43f7ffb83212197dc10e944a/dom/bindings/BindingUtils.cpp#3744) from new code in interface.rs. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes
| * Formatting.Josh Matthews2023-05-261-8/+2
| |
| * Use an enum to pass the index value for interfaces/protos.Josh Matthews2023-05-262-9/+27
| |
| * Extract bodies of DefineDOMInterface and GetProtoObject/GetConstructorObject ↵Josh Matthews2023-05-262-30/+62
| | | | | | | | out of generated bindings.
* | Make GlobalScope.get_cx a static method.Josh Matthews2023-05-203-4/+6
|/
* Clean up debug optionsMartin Robinson2023-05-011-1/+1
|
* clean up lints and tidy errorsDelan Azabani2023-03-231-2/+1
|
* revert: Introduce `Untransplantable` trait to indicate transplantability at ↵Delan Azabani2023-03-233-261/+17
| | | | | | the type level (8f7b0cff87f0eab921e13e6990d76e12935e8675)
* apply yvt/servo/fix-named-window-getterDelan Azabani2023-03-233-17/+261
|
* apply pylbrecht/servo/named.window.getter (closes #27952)Delan Azabani2023-03-233-17/+32
|
* Fix Codegensagudev2023-02-203-40/+40
|
* ReadableStream WebIDL.py patchsagudev2023-02-203-5/+202
|
* Update plysagudev2023-02-1960-297/+9624
|
* Update WebIDLsagudev2023-02-1977-4712/+9079
|
* Fix WebIDL.py patchessagudev2023-02-193-26/+20
|
* Auto merge of #29250 - fabricedesre:no-deprecated-symbol-to-jsid, r=delanbors-servo2023-01-181-11/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace use of the deprecated RUST_SYMBOL_TO_JSID by SymbolId <!-- Please describe your changes on the following line: --> A simple replacement of a deprecated function, according to changes in https://github.com/servo/mozjs/pull/315 That removes the only build warning I saw when doing a clobber. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ X] `./mach build -d` does not report any errors - [X ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ X] These changes do not require tests because no behavior change is expected. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Replace use of the deprecated RUST_SYMBOL_TO_JSID by SymbolIdThe Capyloon Team2023-01-161-11/+4
| |
* | Stringify unknown JavaScript objects in global exception handlersMartin Robinson2023-01-121-30/+38
|/ | | | | | | | | | | | | | | | | | | When turning DOM exceptions into `ErrorInfo` always try to stringify the JavaScript value, even if it's an object that isn't a `DOMException` or native exception. This means that exceptions that extend the `Error` prototype are now stringified. The result is that test output for WPT global assertion failures is more useful. For instance for the test include-frames-from-child-same-origin-grandchild.sub.html: Before: ``` uncaught exception: unknown (can't convert to string) ``` After: ``` uncaught exception: Error: assert_equals: expected 4 but got 3 ```
* Fix some build warningsMartin Robinson2023-01-111-0/+1
| | | | | | | | - Mark some instances of unused fields and variables as as allowed, when they are used for memory management. - Remove the use of some deprecated function.s Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Format.Josh Matthews2022-11-233-6/+15
|
* Changes for spidermomkey upgrade.Josh Matthews2022-11-238-101/+97
|
* Auto merge of #28663 - saschanaz:void-undefined, r=jdmbors-servo2022-01-1637-292/+292
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert Web IDL void to undefined <!-- Please describe your changes on the following line: --> Thanks to my tool https://github.com/saschanaz/gecko-webidl 🙌 Build is failing on my current VS2022+Python 3.10 environment, but the IDL tests are passing anyway, so... --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27660 <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Update CodegenRust.pyKagami Sascha Rosylight2022-01-051-7/+7
| |
| * Try rolling back python fixKagami Sascha Rosylight2022-01-051-1/+1
| |
| * Convert Web IDL void to undefinedKagami Sascha Rosylight2022-01-0536-286/+286
| | | | | | | | Fixes #27660
* | Upgrade HyperNaveen Gattu2022-01-161-2/+2
|/
* semicolonNaveen Gattu2021-12-011-1/+1
|
* Update principals.rsNaveen Gattu2021-12-011-0/+1
|