aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/globalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial implementation of GPUShaderModuleIstvan Miklos2020-02-111-1/+10
| | | | | Added WebIDL bindings for `GPUShaderModule`. Implemented the `createShaderModule` function of `GPUDevice`.
* Auto merge of #25637 - szeged:wgpu_crete_bind_group, r=jdmbors-servo2020-01-301-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of GPUBindGroup for WebGPU Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice` Renamed `GPUBindGroupBinding` to `GPUBindGroupBindings` and `GPUBufferBinding` to `GPUBufferBindings` in the WebIDL, because these names are already occupied. <!-- 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 - [X] These changes addresses a part of #24706 cc @kvark @jdm @zakorgy <!-- 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. -->
| * Initial implementation of GPUBindGroup for WebGPUIstvan Miklos2020-01-301-1/+5
| | | | | | | | | | Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice`
* | Implement Blob methods (text/arraybuffer) and async file read methodKunal Mohan2020-01-281-6/+126
|/
* Support worker for WebGPUIstvan Miklos2020-01-231-1/+35
| | | | | To create resource ids for the WebGPU we need to access the `IdentityHub`. In order to access the `IdentityHub` from a `Window` or a `Worker` as well, I've moved the `IdentityHub` to the `GlobalScope` from the `Navigator`.
* queueMicrotask addedPatrick Shaughnessy2020-01-131-1/+9
|
* Scaffold module scriptCYBAI2020-01-031-0/+30
|
* Add lint check for `&DomRoot<T>`lberrymage2019-12-211-2/+2
| | | | | `&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
* Auto merge of #24123 - gterzian:redo_blob, r=jdmbors-servo2019-12-191-3/+445
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+445
| |
* | Auto merge of #25211 - kunalmohan:6631-Worker-Id, r=jdmbors-servo2019-12-161-11/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `worker_id` type changed to uuid <!-- Please describe your changes on the following line: --> Fixes #6631 `worker_id` is now generate as uuid and saved as string. --- <!-- 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 fix #6631 (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. -->
| * | `WorkerId` changed to type UUID.Kunal Mohan2019-12-101-10/+1
| | |
| * | `worker_id` type changed to uuidKunal Mohan2019-12-101-5/+4
| | | | | | | | | | | | | | | Fixes #6631 `worker_id` is now generate as uuid and saved as string.
* | | Issue warning to devtools when module scripts in use.Josh Matthews2019-12-121-0/+23
|/ /
* / devtools: save and send cached messagesPaul Rouget2019-12-061-1/+22
|/
* impl timer-task-source, dedicated time-out mechanism for service-workerGregory Terzian2019-11-191-8/+95
|
* fix complete messageport transferGregory Terzian2019-11-151-15/+73
|
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-6/+482
|
* begin messageport, transferable objects, implKeith Yeung2019-10-191-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-161-0/+10
| | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Use safe JSContext in MicrotaskQueuemarmeladema2019-08-091-12/+6
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-9/+9
|
* Script: removed a few opts::get()oneturkmen2019-06-261-0/+19
|
* Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-14/+39
|
* Extract canvas operations for reuse by OffscreenCanvas.Maharsh2019-05-221-0/+15
|
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-8/+7
|
* Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-0/+2
|
* Reintroduce parent runtimes for worker threads.Josh Matthews2019-01-151-1/+11
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-12/+12
|
* Format remaining filesPyfisch2018-11-061-9/+18
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-12/+12
|
* Sort `use` statementsSimon Sapin2018-11-061-14/+14
|
* `cargo fix --edition`Simon Sapin2018-11-061-35/+35
|
* Make first argument of DOMManipulationTaskSource as a Box<ScriptChan +CYBAI2018-10-181-0/+11
| | | | | | | | | | | Send> We don't have `window` for `workers`. So, if we use `global.as_window()` to get the DOMManipulationTaskSource, it will make worker panic. Instead, we should get the DOMManipulationTaskSource from each own thread. Ref: https://github.com/servo/servo/pull/20755#discussion_r193557746
* Implement unhandledrejection eventCYBAI2018-10-181-1/+57
|
* Format script componentchansuke2018-09-191-37/+59
|
* Add Websocket task sourceAgustin Chiappe Berrini2018-09-081-0/+13
| | | | | | | | According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network The task source for all tasks queued in the websocket section are the websocket task source, so this commit also updates those references to use the appropriate one.
* Upgraded to SM 60Alan Jeffrey2018-08-201-11/+2
|
* Introduce DOMTracker, cancel eventsource fetch when aborting document loadGregory Terzian2018-07-291-0/+25
|
* use remote-event task source in EventSourceGregory Terzian2018-07-131-1/+14
|
* introduce "per task source" ignoring of tasksGregory Terzian2018-07-101-2/+6
|
* Fix typo for workletCYBAI2018-06-031-4/+4
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-2/+4
|
* added autoclose workerNupur Baghel2018-02-221-0/+22
|
* Use specific negative assertion for DOM globalscopeCYBAI2018-01-261-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.