Martin Robinson
5c1723c983
rustdoc: Fix many rustdoc errors ( #31147 )
...
This fixes many rustdoc errors that occur due to raw URLs in rustdoc
comments as well as unescaped Rust code that should be in backticks.
2024-01-22 13:13:48 +00:00
Samson
aad2dccc9c
Strict import formatting (grouping and granularity) ( #30325 )
...
* strict imports formatting
* Reformat all imports
2023-09-11 19:16:54 +00:00
Josh Matthews
f79e1e327d
Make GlobalScope.get_cx a static method.
2023-05-20 11:05:09 -04:00
Jonathan Kingston
0e1479cc84
Add creation url and Secure Contexts
2020-11-25 18:30:50 +00:00
Kunal Mohan
e5065c7eb2
Share single gpu_id_hub among all threads in a process
2020-05-15 01:15:01 +05:30
Gregory Terzian
50a7111eb6
impl timer-task-source, dedicated time-out mechanism for service-worker
2019-11-19 14:32:21 +08:00
Kagami Sascha Rosylight
01e0b2cb5e
Use IDL sequence default value
2019-11-04 23:39:37 +09:00
Gregory Terzian
2f8932a6a1
continue messageport, transferable, postmessage options
2019-10-19 14:28:18 +08:00
Keith Yeung
c3b17c1201
begin messageport, transferable objects, impl
...
Accept transfer argument for StructuredCloneData::write
Allow structured clone reads to return a boolean
Add Transferable trait
Add basic skeletons to MessagePort
Implement transfer and transfer-receiving steps on MessagePort
Use transfer and transfer_receive in StructuredClone callbacks
Implement MessageChannel
Freeze the array object for the MessageEvent ports attribute
Implement transfer argument on window.postMessage
Use ReentrantMutex instead for MessagePortInternal
Accept origin as a parameter in dispatch_jsval
Fix BorrowMut crash with pending_port_message
Detach port on closure and check for detached during transfer
Enable webmessaging tests
fix webidl
fix
2019-10-19 14:12:22 +08:00
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