marmeladema
88cacfb009
Modify *::get_cx methods to return a safe JSContext instead of a raw one
2019-07-24 09:53:10 +01:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
marmeladema
35dc5320ab
Wrap(Global)Method now takes a SafeJSContext instead of a JSContext
...
as first argument.
2019-07-24 08:18:21 +01:00
oneturkmen
42569280e2
Script: removed a few opts::get()
2019-06-26 22:23:07 -06:00
est31
8b6ed3d182
Remove unused code from script* crates
2019-06-02 07:12:26 +02:00
Josh Matthews
45619db0ba
Provide the source window as part of postMessage events.
2019-01-07 22:19:25 -05:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +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
Keith Yeung
080600003c
Return window proxy properly for indexed window getter
2018-04-30 15:43:39 -07:00
Alan Jeffrey
cef3f0e039
Use the incumbent global as the source of x-origin postMessage
2018-04-10 12:25:26 -05: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
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
c52fd0a780
Rename MutNullableJS<T> to MutNullableDom<T>
2017-09-26 09:49:02 +02:00
Anthony Ramine
7be32fb237
Rename JS<T> to Dom<T>
2017-09-26 09:48:55 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Anthony Ramine
24cf15a014
Store microtask queues in their global ( fixes #18467 )
2017-09-13 15:02:45 +02:00
Anthony Ramine
65dfd6bf63
Clean up DissimilarOriginWindow::origin
...
It's not dead code, and it should use Castable instead of directly reaching
to the globascope field.
2017-09-13 14:27:36 +02:00
Anthony Ramine
1c46135c75
Reformat DissimilarOriginWindow::new
2017-09-13 10:53:05 +02:00
Paul Rouget
d241389129
make use of ScriptToConstellationChan
2017-08-15 08:22:09 +02:00
Simon Sapin
7af5a7fd54
Untry script
2017-06-18 13:21:49 +02:00
Alan Jeffrey
607e011b05
Renamed constellation::Frame to constellation::BrowsingContext.
2017-05-15 21:03:11 -05:00
Alan Jeffrey
43ca260689
Renamed BrowsingContext to WindowProxy in script.
2017-05-12 15:02:35 -05:00
Aaron Cunningham
f03ddf6c6c
Fix various build warnings
...
This should remove six separate warnings when building servo. One of
the warnings was an unused mut, and the other were various dead code
warnings
2017-04-24 22:54:06 -07:00
ddh
2c6bd51bef
added origin to globalscope
2017-04-24 13:15:42 +01:00
Alan Jeffrey
6bcb5f68be
Implement dissimilar-origin window.parent and window.top.
2017-03-17 10:53:20 -05:00
Alan Jeffrey
f9c5d0c117
Implement dissimilar-origin postMessage.
2017-03-15 14:57:25 -05:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Alan Jeffrey
e8d765557f
Allow browsing contexts to resolve to cross-origin windows.
2017-02-16 16:45:29 -06:00