Josh Matthews
bd77a4043c
Changes for spidermomkey upgrade.
2022-11-23 10:04:50 -05:00
yvt
690d8462a5
refactor(script): apply suggestions
2021-07-25 18:45:22 +09:00
yvt
f884506dfb
refactor(script): auto ref-count ServoJSPrincipals
2021-07-13 23:08:23 +09:00
yvt
b77ee8721b
refactor(script): rename ServoJSPrincipal
to ServoJSPrincipals
2021-07-13 21:51:54 +09:00
yvt
320965bfb9
refactor(script): move crate::dom::bindings::{utils → principals)::ServoJSPrincipal
2021-07-13 21:45:21 +09:00
yvt
40fbe6b722
chore(deps): update mozjs
...
- 798c5b6: Bring `RustJSPrincipals` back
2021-07-11 23:01:21 +09:00
yvt
28c670d6c3
fix: accommodate to the modern age
2021-07-10 18:18:33 +09:00
yvt
01a7de50ab
Merge remote-tracking branch 'upstream/master' into feat-cow-infra
...
`tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html`
was reverted to the upstream version.
2021-07-10 17:55:42 +09:00
yvt
5871d09c26
fix(script): one compartment for each script thread (agent)
...
Documents in the same agent[1] can share and exchange JS and DOM objects
freely, so putting them in separate compartments would require almost
every instance of `Dom` to be able to handle cross-compartment
references.
[1]: https://html.spec.whatwg.org/multipage/webappapis.html#integration-with-the-javascript-agent-formalism
2021-07-06 09:10:33 +09:00
sagudev
425057c432
Fix errors
2021-03-12 16:26:27 +01:00
Josh Matthews
83578265b4
Don't pretend we support SharedArrayBuffer.
2020-06-16 14:39:20 -04:00
Gregory Terzian
bd5796c90b
integrate readablestream with fetch and blob
2020-06-04 11:38:35 +08:00
Anthony Ramine
5a4f8cf93f
Update SpiderMonkey
2020-03-06 11:13:28 +01:00
Patrick Shaughnessy
c99e0d1b98
Remove obsolete behavior per heycam/webidl #356
2019-12-22 17:58:26 -05:00
Kagami Sascha Rosylight
e81b678645
Support [LegacyWindowAlias]
2019-10-19 12:01:00 +09:00
marmeladema
78034a90d0
Use safe JSContext when possible in interface.rs
2019-08-09 00:43:24 +01:00
Josh Matthews
410d5bc772
Update SpiderMonkey bindings for Windows arm64 crash fix.
2019-07-25 20:23:21 -04:00
sreeise
871239a3e3
Change bindings generation to make Exposed annotation aware of members/partial interfaces
2019-07-14 09:24:43 -04:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Simon Sapin
9f977c5287
Remove useless use crate_name;
imports.
...
A `crate_name::foo` path always works in 2018
2018-11-08 09:29:52 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Alan Jeffrey
74c1e00d81
Upgraded to SM 60
2018-08-20 18:22:29 -04:00
Marcin Mielniczuk
356c57e628
Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393
2018-03-28 21:28:30 +02:00
CYBAI
1c31370a08
Use specific assertion for DOM binding interface
2018-01-26 01:18:55 +08:00
Simon Sapin
4d459bce32
Fix tyvar_behind_raw_pointer warnings
...
https://github.com/rust-lang/rust/issues/46906
2018-01-10 20:54:35 +01:00
olmanz
83adc7b769
Moved pop_current_element_queue() and push_new_element_queue() to htmlconstructor.rs
2017-11-16 19:14:12 +01:00
olmanz
d71ff786c6
Moved function html_constructor() from interface.rs to new file htmlconstructor.rs
2017-11-16 13:06:50 +01:00
Matt Brubeck
efc3683cc7
Fix commonmark Markdown warnings in docs, part 1
...
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is
passed to rustdoc.
This is mostly a global find-and-replace for bare URIs on lines by
themselves in doc comments.
2017-10-17 11:24:57 -07:00
Simon Sapin
5a5b7d7f39
Remove usage of unstable features const_ptr_null and const_ptr_null_mut
2017-10-16 20:20:01 +02:00
Simon Sapin
aa15dc269f
Remove use of unstable box syntax.
...
http://www.robohornet.org gives a score of 101.36 on master,
and 102.68 with this PR. The latter is slightly better,
but probably within noise level.
So it looks like this PR does not affect DOM performance.
This is expected since `Box::new` is defined as:
```rust
impl<T> Box<T> {
#[inline(always)]
pub fn new(x: T) -> Box<T> {
box x
}
}
```
With inlining, it should compile to the same as box syntax.
2017-10-16 17:16:20 +02:00
Anthony Ramine
f87c2a8d76
Rename Root<T> to DomRoot<T>
...
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>,
where Root<T> will be able to handle all the things that need to be
rooted that have a stable traceable address that doesn't move for the
whole lifetime of the root. Stay tuned.
2017-09-26 09:49:10 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Connor Brewster
9f51c7df21
Track custom element state
2017-08-09 14:36:22 -06:00
Connor Brewster
8c5005fc44
Add construction stack
2017-08-09 11:06:22 -06:00
Connor Brewster
438191e0b2
Implement CEReactions codegen
2017-07-18 08:18:22 -06:00
Connor Brewster
1f3fd77d8f
Implement step 5 of HTMLConstructor
2017-06-15 21:33:28 -06:00
Connor Brewster
2333b39569
Implement HTMLConstructor
2017-06-15 21:32:22 -06:00
Connor Brewster
d883f55d0c
Add function to get constructor objects by name
2017-06-15 21:23:12 -06:00
ddh
aa7b4f6162
changed to use globalscope origin
2017-04-26 00:42:15 +01:00
ddh
3577d1ff94
added wrapper selection and subsumes logic
2017-04-25 21:10:43 +01:00
ddh
ef053dbfa0
added JSPrincipal bindings
2017-04-25 21:10:43 +01:00
Anthony Ramine
445701d138
Update js, AGAIN
2016-11-27 12:19:19 +01:00
Anthony Ramine
0b689a8a31
Implement WebIDL namespaces
2016-09-08 11:01:34 +02:00
Anthony Ramine
718d733cc8
Reorder some stuff in bindings::interface
2016-09-06 13:31:24 +02:00
Anthony Ramine
86996fdf83
Remove NonNullJSNative
2016-09-06 10:14:11 +02:00
Anthony Ramine
51e46b11a3
Move WebIDL constants machinery to bindings::constant
2016-09-06 10:14:11 +02:00