aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move `*_traits` and other shared types to `shared`Martin Robinson2023-11-031-493/+0
| | | | | | | | | | | | This is the start of the organization of types that are in their own crates in order to break dependency cycles between other crates. The idea here is that putting these packages into their own directory is the first step toward cleaning them up. They have grown organically and it is difficult to explain to new folks where to put new shared types. Many of these crates contain more than traits or don't contain traits at all. Notably, `script_traits` isn't touched because it is vendored from Gecko. Eventually this will move to `third_party`.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-23/+14
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+2
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* It was removed from the spec and it's disabled everywhere.Emilio Cobos Álvarez2023-06-301-4/+0
| | | | This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed.
* Add support for <iframe> elements for Layout 2020Martin Robinson2023-04-041-10/+3
| | | | | | This change adds support for the <iframe> element to Layout 2020. In addition, certain aspects of the implementation are made the same between both layout systems.
* devtools: Treat session history traversal like a navigation.Josh Matthews2020-08-101-0/+3
|
* Implement GPUSwapChain and GPUCanvasContext and interface with WebrenderKunal Mohan2020-06-131-1/+4
|
* serviceworker: make job queue unique per originGregory Terzian2020-05-211-5/+108
|
* Move most animation processing to scriptMartin Robinson2020-05-121-3/+0
| | | | | | | This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread.
* allow for a service worker manager per originGregory Terzian2020-04-051-4/+11
|
* implement broadcastchannelGregory Terzian2020-02-251-1/+23
|
* Only start WebGPU thread if an adapter is requestedZakor Gyula2020-01-131-0/+9
|
* Fix media session action handlingFernando Jiménez Moreno2019-11-201-1/+1
|
* Default media session actionsFernando Jiménez Moreno2019-11-201-1/+1
|
* Format code and fix rebase errorsFernando Jiménez Moreno2019-11-201-1/+3
|
* Move active media session logic to constellationFernando Jiménez Moreno2019-11-201-1/+2
|
* Introduce embedder MediaSessionEvent and move active session to ServoFernando Jiménez Moreno2019-11-201-4/+0
|
* Register media instance with session and prepare communication with embedderFernando Jiménez Moreno2019-11-201-0/+5
|
* Auto merge of #24664 - gterzian:fix_port_transfer, r=jdmbors-servo2019-11-181-0/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix loophole in messageport transfer <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #24600 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * fix complete messageport transferGregory Terzian2019-11-151-0/+14
| |
* | Fix some warnings new in Rust NightlySimon Sapin2019-11-081-2/+2
|/
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-5/+34
|
* begin messageport, transferable objects, implKeith Yeung2019-10-191-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update euclid.Emilio Cobos Álvarez2019-07-231-3/+7
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffreybors-servo2019-07-181-4/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean-up navigation <!-- Please describe your changes on the following line: --> 1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source 2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source 3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate. 4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23368) <!-- Reviewable:end -->
| * clean-up navigationGregory Terzian2019-07-181-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | security: check target and source origin before executing JS url implement replacement-enabled flag as a HistoryEntryReplacement enum add source origin string on loaddata add LoadOrigin iframe: remove optional load-data auxiliaries: add load-data into info constellation: remove url from Pipeline::new check load origin: link to whatwg issue switch loadorigin toplevel to constellation
* | WebRender units are no longer reexported.Patrick Walton2019-07-091-1/+1
| |
* | Remove clipboard handling from constellation, and remove ScriptMessage for ↵Michal Mieczkowski2019-06-131-6/+0
|/ | | | getting/setting clipboard
* Auto merge of #23135 - maharsh312:master, r=jdmbors-servo2019-05-131-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create CanvasRect for OffscreenCanvas <!-- Please describe your changes on the following line: --> Created CanvasRect fot OffscreenCanvas and Updated Testcases --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23135) <!-- Reviewable:end -->
| * Changes for sender recieverMaharsh2019-05-091-1/+1
| |
* | Update SetCursor behaviorPaul Rouget2019-04-251-4/+1
| |
* | Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-2/+2
|/
* Remove SetVisible message from iframeAron Zwaan2019-03-121-3/+0
|
* Fix servo build and rustfmt recent changes.Emilio Cobos Álvarez2019-01-201-3/+2
| | | | | We need to introduce another Cursor enum that is specific to embedder_traits and that layout converts to to avoid dependency hell.
* Suppress iframe size messages from layout that include unchanged sizes.Josh Matthews2019-01-141-1/+20
|
* Provide the source window as part of postMessage events.Josh Matthews2019-01-071-2/+11
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update webrenderManish Goregaokar2018-11-271-4/+4
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-3/+3
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-9/+9
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-4/+4
|
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-1/+1
| | | | The changes keep trickling down.
* Create ScriptMsg::GetBrowsingContextInfomandreyel2018-09-141-6/+7
|
* Format components/script_traitschansuke2018-09-131-4/+20
|
* implement opener, disowningGregory Terzian2018-08-111-1/+5
|
* implement window.open, create auxiliary browsing contextGregory Terzian2018-08-111-0/+4
|
* Track hash changes in session historyConnor Brewster2018-07-211-0/+3
| | | | Notify history changed on pushState and scroll to frag
* improve spec compliance of window.closeGregory Terzian2018-06-041-3/+3
|