aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #24123 - gterzian:redo_blob, r=jdmbors-servo2019-12-191-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructure Blob, structured serialization <!-- Please describe your changes on the following line: --> FIX #24052 and also address the "cloning" half of FIX #23917 --- <!-- 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/24123) <!-- Reviewable:end -->
| * re-structure blob, structured serializationGregory Terzian2019-12-111-1/+1
| |
* | #24468 Performance::queue_entries return the index of the added performance ↵Shinichi Morimoto2019-12-131-4/+3
| | | | | | | | entry
* | devtools: save and send cached messagesPaul Rouget2019-12-061-3/+0
|/
* Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-3/+3
|
* Auto merge of #24758 - gterzian:impl_timer_task_source, r=noxbors-servo2019-11-261-65/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement timer-task-source, time-out service worker <!-- Please describe your changes on the following line: --> Implements the timer task-source, and folds the IPC glue-code into a single route set by the globalscope. Also switches service worker to using a dedicated "time-out" mechanism, which previously relied on the timer mechanism(and I think didn't actually implement script timers). --- <!-- 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 #24747 (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. -->
| * impl timer-task-source, dedicated time-out mechanism for service-workerGregory Terzian2019-11-191-65/+17
| |
* | Auto merge of #24708 - szeged:webgpu-base, r=gterzian,kvarkbors-servo2019-11-251-0/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of WebGPU API <!-- Please describe your changes on the following line: --> - Added the WebIDL bindings for GPU and GPUadapter interfaces. - Created a background thread for WebGPU api calls. - Established the async communication between the background thread and the WebGPU interfaces. - Implemented the `requesAdapter` function of `navigator.gpu` `./mach test-tidy` reports an error due to the different `arrayvec` version used in `servo` and `webgpu`, so added it to the ignore list in `servo-tidy.toml` --- <!-- 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 addresses a part of #https://github.com/servo/servo/issues/24706 <!-- 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. --> cc @jdm, cc @kvark <!-- 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/24708) <!-- Reviewable:end -->
| * | Initial implementation of WebGPU APIZakor Gyula2019-11-211-0/+6
| | |
* | | Auto merge of #24818 - gterzian:fix_panic_on_finish_load, r=jdmbors-servo2019-11-221-0/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent panic on layout send in finish-load <!-- Please describe your changes on the following line: --> Do not run the finish load steps if the pipeline has been discarded by the time the parser finishes. --- <!-- 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 #22955 (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. -->
| * | | abort parser before shutting down layout in exit pipelineGregory Terzian2019-11-221-6/+8
| | | |
| * | | abort parser, if any, when pipeline exitsGregory Terzian2019-11-211-0/+6
| | |/ | |/|
* | | Auto merge of #24789 - gterzian:fix_unloading, r=jdmbors-servo2019-11-221-1/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix unloading, active BC, and clearing js runtime <!-- Please describe your changes on the following line: --> Do not set the window to be the currently active one for the windowproxy as part of `load`, as it will be done later when the document activity is set. And doing it later means that when unload runs, it is with the unloaded pipeline as the active window. Only nullify the window proxy if it's not used by another (currently-active) window. --- <!-- 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 #24591 (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. -->
| * | ensure unload run with old pipeline as currently-active, do not nullify ↵Gregory Terzian2019-11-211-1/+2
| |/ | | | | | | proxy unless currently-active
* | Auto merge of #24757 - Akash-Pateria:async-wasm-compilation-subsequent, r=jdmbors-servo2019-11-201-3/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Async wasm compilation event loop integration The PR contains changes related to binding the runnable dispatching in script_runtime and is part of the Asynchronous WebAssembly Compilation fix. This is the first step in the subsequent steps mentioned in the [wiki](https://github.com/servo/servo/wiki/Asynchronous-WebAssembly-compilation-project). --- <!-- 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 - [X] `./mach test-tidy` does not report any errors - [X] These changes are part of #21476 fix
| * | Bind runnable dispatching in script_runtimeAkash-Pateria2019-11-191-3/+6
| |/
* | Fix media session action handlingFernando Jiménez Moreno2019-11-201-53/+8
| |
* | Move active media session logic to constellationFernando Jiménez Moreno2019-11-201-5/+5
| |
* | Register media instance with session and prepare communication with embedderFernando Jiménez Moreno2019-11-201-0/+13
| |
* | Make MediaSession handle embedder requested actionFernando Jiménez Moreno2019-11-201-1/+4
| |
* | MediaSessionAction message from embedder to script threadFernando Jiménez Moreno2019-11-201-1/+13
| |
* | Use BrowsingContextId for MediaSession registrationFernando Jiménez Moreno2019-11-201-8/+11
| |
* | MediaSession registrationFernando Jiménez Moreno2019-11-201-0/+27
|/
* Auto merge of #24742 - servo:jdm-patch-34, r=asajeffreybors-servo2019-11-161-3/+6
|\ | | | | | | | | | | | | | | | | Reduce unnecesarily large borrow in script thread - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24730 - [x] There are tests for these changes
| * script: Reduce scope of borrows for history updates.Josh Matthews2019-11-141-3/+6
| |
* | Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
|/ | | | CC https://github.com/rust-lang/rust/issues/66079
* Implement srcdoc support for iframes.jaymodi982019-11-121-1/+23
|
* Ensure layout/script always have a correct viewport size when a new pipeline ↵Josh Matthews2019-11-061-0/+1
| | | | is created.
* script: Ignore redundant resize notifications.Josh Matthews2019-11-061-0/+9
|
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-3/+11
|
* begin messageport, transferable objects, implKeith Yeung2019-10-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* improve spec compliance of discarding BCsGregory Terzian2019-09-221-3/+28
| | | | | | | | | | | | | | do not handle compositor input events when BC is being discarded prevent firing of timers for discarded BCs return null for opener is BC has been discarded bundle discard BC steps into window method return null in window.opener, if BC has already been discarded move the window closed check pre-event to script-thread
* Do not allow XR session on non user-activated eventsPaul Rouget2019-09-201-0/+27
|
* Implement ElementClick wd commandGeorge Roman2019-08-311-0/+8
|
* Implement pointerMove webdriver actionGeorge Roman2019-08-221-0/+8
|
* Implement TakeElementScreenshot WebDriver commandGeorge Roman2019-08-201-0/+8
|
* Auto merge of #23951 - ↵bors-servo2019-08-191-0/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | georgeroman:return_errorstatus_from_webdriverhandlers, r=jdm Return ErrorStatus from webdriver_handlers <!-- Please describe your changes on the following line: --> With `webdriver 0.40`, `ErrorStatus` implements `Deserialize`. Now we can accommodate for multiple errors occuring in `webdriver_handlers`. --- <!-- 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 - [X] `./mach test-tidy` does not report any errors <!-- Either: --> <!-- 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/23951) <!-- Reviewable:end -->
| * Return ErrorStatus from webdriver_handlersGeorge Roman2019-08-181-0/+24
| |
* | restructure content process shutdown ack with threaded sender, without layoutGregory Terzian2019-08-171-3/+1
| |
* | Update to url 2.0Simon Sapin2019-08-171-1/+1
|/
* Use safe JSContext in MicrotaskQueuemarmeladema2019-08-091-19/+12
|
* Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)Simon Sapin2019-07-311-3/+3
|
* Use origin of final HTTP response as document origin.Josh Matthews2019-07-291-2/+2
|
* Remove extra webgl message pumping thread.Josh Matthews2019-07-251-1/+6
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-10/+11
|
* Auto merge of #23745 - ↵bors-servo2019-07-231-0/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | georgeroman:implement_get_element_property_wd_command, r=jdm Implement GetElementProperty wd command <!-- 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: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] There are tests for these changes <!-- 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/23745) <!-- Reviewable:end -->
| * Implement GetElementProperty WebDriver commandGeorge Roman2019-07-231-0/+9
| |
* | Update euclid.Emilio Cobos Álvarez2019-07-231-2/+4
| | | | | | | | | | | | | | | | 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.
* | Implement link and partial link text selectors for FindElement and related ↵George Roman2019-07-231-0/+44
| | | | | | | | WebDriver commands
* | Implement tag name selector for FindElementsFromElement WebDriver commandGeorge Roman2019-07-211-0/+9
| |