aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/messageevent.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove script_plugins * Use crown instead of script_plugins * crown_is_not_used * Use crown in command base * bootstrap crown * tidy happy * disable sccache * Bring crown in tree * Install crown from tree * fix windows ci * fix warning * fix mac libscript_plugins.dylib is not available anymore * Update components/script/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update for nightly-2023-03-18 Mostly just based off https://github.com/servo/servo/pull/30630 * Always install crown it's slow only when there is new version * Run crown test with `mach test-unit` * Small fixups; better trace_in_no_trace tests * Better doc * crown in config.toml * Fix tidy for real * no sccache on rustc_wrapper * document rustc overrides * fixup of compiletest * Make a few minor comment adjustments * Fix a typo in python/servo/platform/base.py Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> * Proper test types * Ignore tidy on crown/tests --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-5/+6
| | | | | * strict imports formatting * Reformat all imports
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-2/+6
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-6/+40
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-1/+1
|
* alphabetized frozen supported entry types on the global, avoid moving Heap ↵Patrick Shaughnessy2020-02-141-4/+7
| | | | into Option
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+3
|
* cache frozen array of portsGregory Terzian2020-01-121-1/+16
|
* add a generic utility to convert a slice into a frozen arrayGregory Terzian2020-01-111-2/+2
|
* use dom and new_inherited in (extendable)messageeventGregory Terzian2020-01-091-11/+39
|
* Implement MessageEvent.InitMessageEventKunal Mohan2019-12-181-12/+35
| | | | | | InitMessageEvent had to be implemented as required by wpt. For this few keys of struct `MessageEvent` are now wrapped inside DomRefCell wrapper.
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Store source as an enumKagami Sascha Rosylight2019-11-041-16/+50
|
* Use MessageEventSource on MessageEvent IDLKagami Sascha Rosylight2019-11-041-18/+15
|
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-13/+26
|
* begin messageport, transferable objects, implKeith Yeung2019-10-191-9/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-5/+4
|
* Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-0/+1
|
* Provide the source window as part of postMessage events.Josh Matthews2019-01-071-4/+26
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-12/+12
|
* Format script componentchansuke2018-09-191-28/+43
|
* Properly set the origin on websocket messagesBastien Orivel2018-08-161-2/+3
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-1/+2
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | 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.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-5/+5
| | | | | | | 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.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Fix unsafe Heap constructor usage in DOM objects Imanol Fernandez2017-05-041-2/+5
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-5/+3
|
* Use Heap for dictionary and union members.Ms2ger2017-02-161-1/+1
|
* Remove warnings about unnecessary mutability.Alan Jeffrey2017-01-281-4/+2
|
* script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-1/+2
| | | | rebase + marked the necessary new code as unsafe
* Update to string-cache 0.3Simon Sapin2016-11-031-1/+1
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-3/+2
|
* Make dispatch_jsval methods take a &GlobalScopeAnthony Ramine2016-10-061-2/+2
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-7/+17
|
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-2/+2
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement From<DOMString> for AtomAnthony Ramine2016-02-241-1/+1
|
* Make Event's isTrusted attribute unforgeableJohn DeSilva2015-12-131-0/+6
|
* Remove unused imports.Ms2ger2015-12-121-1/+0
|
* Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-4/+5
| | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-2/+1
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-2/+5
|
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-1/+1
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
|