aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/proxyhandler.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace .map_or(false with Option::is_some_and (#33468)Simon Wülker2024-09-161-2/+2
| | | Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* clippy: Fix suggestions in `script`, `libservo`, and `servoshell` (#33453)Ali2024-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * fix clone on copy warning in servoshell Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Remove unecessary borrow in libservo Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Ignore too many arguments warning on create_constellation() Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * fix explicit auto-deref warning Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> * Autofix multiple clippy warnings in components/script Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com> --------- Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* jsstring_to_str should accept a NonNull argument for the JS string (#33306)Andriy Sultanov2024-09-051-1/+1
| | | | | | Instead of asserting the raw pointer is not null, force callers to produce a NonNull pointer. Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
* Replace null-byte terminated string literals with C-string literals (#32716)Bumsoo Kim2024-07-061-1/+1
| | | | | | | | | | | | | * simple conversion from byte string to c-string Signed-off-by: Bum Kim <bumcrystlbum@gmail.com> * convert byte strings to c-strings to c_char ptr Signed-off-by: Bum Kim <bumcrystlbum@gmail.com> --------- Signed-off-by: Bum Kim <bumcrystlbum@gmail.com>
* clippy: Fix several warnings in `components/script/dom/bindings` (#31945)Azhar Ismagulova2024-04-031-2/+2
| | | | | | | | | * clippy: fix several warnings in components/script/dom/bindings * fix: allow non_canonical_clone_impl in components/script/dom/bindings * chore: removed unnecessary curly braces * fix: removed vtable_address_comparisons allow
* deref on an immutable reference (#31899)Rosemary Ajayi2024-03-281-1/+1
|
* clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)Oluwatobi Sofela2024-03-231-1/+1
| | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-35/+30
| | | | | * strict imports formatting * Reformat all imports
* Replace use of the deprecated RUST_SYMBOL_TO_JSID by SymbolIdThe Capyloon Team2023-01-161-11/+4
|
* Format.Josh Matthews2022-11-231-2/+6
|
* Changes for spidermomkey upgrade.Josh Matthews2022-11-231-46/+39
|
* fix(script): don't pass an unrooted slice to `from_rooted_slice`yvt2021-07-281-1/+6
|
* style(script): add underscore to unused parameteryvt2021-07-271-4/+3
|
* refactor(script): squash `CGDOMJSProxyHandler_set`yvt2021-07-261-0/+44
| | | | | | The implementation in `crate::dom::bindings::proxyhandler:: maybe_cross_origin_set_rawcx` is now directly assigned to `ProxyTraps:: set`.
* doc(script): fix commentsyvt2021-07-261-4/+4
| | | | | `History` is not a maybe-cross-origin object. I must have been very sleepy when I wrote this.
* refactor(script): apply suggestionsyvt2021-07-251-30/+24
|
* refactor(script): apply suggestionyvt2021-07-251-2/+1
| | | Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* style(script): address `test-tidy` errorsyvt2021-07-171-1/+1
|
* feat(script): implement the last step of `CrossOriginOwnPropertyKeys`yvt2021-07-171-7/+39
|
* doc(script): improve comments in `proxyhandler.rs`yvt2021-07-171-7/+23
|
* feat(script): Implement `[[Set]]` for `Location`yvt2021-07-171-0/+66
|
* feat(script): Implement `[[{Get,Set}PrototypeOf]]` for `Location`yvt2021-07-171-12/+114
|
* feat(script): implement some of the non-ordinary internal methods of `Location`yvt2021-07-161-3/+341
| | | | | | | | | | | | | | | <https://html.spec.whatwg.org/multipage/#the-location-interface> - `[[GetPrototypeOf]]`: not yet - `[[SetPrototypeOf]]`: not yet - `[[IsExtensible]]`: `proxyhandler::is_extensible` - `[[PreventExtensions]]`: `proxyhandler::prevent_extensions` - `[[GetOwnProperty]]`: `CGDOMJSProxyHandler_getOwnPropertyDescriptor` (updated) - `[[DefineOwnProperty]]`: `CGDOMJSProxyHandler_defineProperty` (updated) - `[[Get]]`: `CGDOMJSProxyHandler_get` (updated) - `[[Set]]`: not yet - `[[Delete]]`: `CGDOMJSProxyHandler_delete` (updated) - `[[OwnPropertyKeys]]`: `CGDOMJSProxyHandler_ownPropertyKeys` (updated)
* Update SpiderMonkeyAnthony Ramine2020-03-061-1/+5
|
* Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-33/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-2/+2
|
* Format script componentchansuke2018-09-191-41/+56
|
* Upgraded to SM 60Alan Jeffrey2018-08-201-14/+8
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-26/+35
|
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-4/+4
| | | | https://github.com/rust-lang/rust/issues/46906
* Remove a workaround for https://github.com/rust-lang/rfcs/issues/718Bastien Orivel2017-11-011-7/+2
|
* Make {get,ensure}_expando_object unsafe.Ms2ger2017-02-071-20/+16
| | | | They trust the caller-provided raw pointers to be valid.
* Properly root expando objects.Ms2ger2017-02-071-11/+13
|
* Update js.Ms2ger2016-11-021-1/+1
|
* Pass a MutableHandle to fill_property_descriptor.Ms2ger2016-09-271-1/+1
|
* Reorder `use` statementsUK9922016-09-091-5/+6
|
* Check for shadowing properties on DOM proxies. Fixes #12357.Josh Matthews2016-08-251-6/+20
|
* Pass real values to the proxy handler setup.Josh Matthews2016-08-251-3/+19
|
* Update SpiderMonkey to m-c bcf4ff0c3eef.Ms2ger2016-07-281-0/+21
| | | | | | This currently breaks Servo on Android, because there are a number of interdependent changes that cannot easily land serially in a way that keeps it working throughout. We expect to fix this in the near future.
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-6/+7
|
* Update SpiderMonkeyAnthony Ramine2016-05-031-8/+7
|
* Update to Rust 2016-03-18.Ms2ger2016-03-201-2/+3
|
* Make fill_property_descriptor take a flags argumentAnthony Ramine2016-02-231-3/+3
|
* Rustfmt some of script.Ms2ger2015-11-181-21/+29
|
* Support the updated spidermonkey bindingsMichael Wu2015-10-141-18/+17
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-8/+7
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-1/+0
| | | | This merges import blocks that were reported by tidy as unmerged.
* Remove needless returnsManish Goregaokar2015-09-041-3/+3
|