aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #26716 - jdm:selfsigned, r=Manishearth,asajeffreybors-servo2020-06-091-4/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add UI for bypassing SSL handshake failures There are several parts to these changes: 1. resurrecting the network error classification code to distinguish between SSL failures and other network errors 1. adding an SSL verification callback to support verifying certs against a list that can change at runtime, rather than just at program initialization 1. exposing a privileged chrome://allowcert URI which accepts the PEM cert contents along with a secret token 1. extracting the PEM cert contents out of the network layer when a handshake failure occurs, and getting them into the HTML that is parsed when an SSL failure occurs 1. adding a button in the handshake failure page that performs an XHR to chrome://allowcert with knowledge of the secret token and the PEM cert contents, before reloading the original URL that failed The presence of the secret token means that while the chrome://allowcert URL is currently visible to web content, they cannot make use of it to inject arbitrary certs into the verification process. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26683 - [x] These changes do not require tests because the UI requires user activation and can't clearly be automated
| * net: Add option to temporarily accept certs that failed the handshake.Josh Matthews2020-06-091-0/+2
| |
| * net: Pass certs that fail the SSL handshake out of the network layer.Josh Matthews2020-06-091-3/+5
| |
| * net: Treat SSL handshake errors differently from other hyper errors.Josh Matthews2020-06-091-2/+2
| |
* | Auto merge of #26823 - jdm:single-renderapi, r=asajeffreybors-servo2020-06-091-2/+8
|\ \ | |/ |/| | | | | | | | | | | | | Update webrender These changes reflect changes in webrender's API that make RenderApiSender and RenderApi objects more challenging to share. This PR moves us to a model where: * the compositor owns the main RenderApi object * other threads that need to create transactions or manipulate fonts proxy those operations to the compositor (script/layout use IPC, while other threads use non-IPC channels) * the webgl thread owns its own independent RenderApi
| * script: Don't panic when IPC WebRender APIs fail during shutdown.Josh Matthews2020-06-091-2/+8
| |
* | Auto merge of #26794 - gterzian:update_xhr, r=jdmbors-servo2020-06-092-31/+16
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update XHR send to use XMLHttpRequestBodyInit <!-- Please describe your changes on the following line: --> FIX #26723 --- <!-- 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. -->
| * update XHR send to use XMLHttpRequestBodyInitGregory Terzian2020-06-052-31/+16
| |
* | Auto merge of #26792 - servo:static-mut, r=noxbors-servo2020-06-052-19/+21
|\ \ | | | | | | | | | | | | | | | Replace `static mut` with `const`, `static`+`AtomicPtr`, or `static`+`UnsafeCell` Fixes https://github.com/servo/servo/issues/26550
| * | Use atomic pointers instead of `static mut` for DOM proxy handlersSimon Sapin2020-06-051-3/+9
| | |
| * | Keep DOM proxy handlers as separate named items rather than in one arraySimon Sapin2020-06-051-10/+12
| | |
| * | Use `const` instead of `static mut` in script/dom/eventtarget.rsSimon Sapin2020-06-041-9/+3
| |/ | | | | | | There is no mutability there.
* | Auto merge of #26790 - jdm:fewer-generics, r=SimonSapinbors-servo2020-06-045-66/+103
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce scope of generic code in script Combined, these changes account for almost 100k lines of generated code in a debug build for the script crate. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes
| * | Extract some thread local use from generic code.Josh Matthews2020-06-041-21/+37
| | |
| * | Move thread state checks out of generic methods to reduce generated code ↵Josh Matthews2020-06-042-33/+41
| | | | | | | | | | | | duplication.
| * | Remove unnecessary generic from private_from_proto_check.Josh Matthews2020-06-042-12/+25
| |/
* | Auto merge of #26789 - CYBAI:svgelement-style, r=jdmbors-servo2020-06-044-2/+49
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ElementCSSInlineStyle for SVGElement --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26777 and fix #26032 and fix #21990 - [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. -->
| * | Introduce ElementCSSInlineStyle for SVGElementCYBAI2020-06-054-2/+49
| | |
* | | Auto merge of #26480 - CYBAI:missing-on, r=jdmbors-servo2020-06-041-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefix `on` for function name of inline events While checking what needs to be done for the spec-update, I've noticed the logic of checking `is window-reflecting element (e.g. body and frameset)` is already handled by the `is` casting function. However, we still failed to pass the tests because we're missing `on` prefix for inline functions. I'm not sure if this patch is good enough (or maybe at least I need to add a comment for why adding `on` prefix?). Besides, I checked [how Gecko handles](https://searchfox.org/mozilla-central/rev/8bc4e35c9bb47c1fe3131e6155d9f482e1efef9a/dom/events/EventListenerManager.cpp#1012-1022) and looks like they also just pass the atom directly. But, the [generated atom](https://searchfox.org/mozilla-central/source/__GENERATED__/xpcom/ds/nsGkAtomList.h#775) is prefixed with `on` which is correct to just pass it into the `CompileFunction`. --- <!-- 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 #26479 - [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. -->
| * | Prefix `on` for function name of inline eventsCYBAI2020-05-101-1/+1
| | |
* | | Auto merge of #25873 - gterzian:implement_readablestream_support, r=jdmbors-servo2020-06-0422-319/+1758
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement readablestream support <!-- Please describe your changes on the following line: --> FIX #21482 FIX #24876 FIX #26392 --- <!-- 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. -->
| * | | partially integrate streaming request bodies with http re-directGregory Terzian2020-06-043-25/+91
| | | |
| * | | bypass SM for in-memory streams in request bodies, dis-allow other cases in ↵Gregory Terzian2020-06-043-19/+75
| | | | | | | | | | | | | | | | sync XHR
| * | | require entered realm, use aes, to append native promise handlerGregory Terzian2020-06-044-26/+29
| | | |
| * | | integrate readablestream with fetch and blobGregory Terzian2020-06-0420-307/+1621
| | | |
* | | | Auto merge of #26775 - servo:gecko-sync, r=emiliobors-servo2020-06-031-2/+11
|\ \ \ \ | |/ / / |/| | | | | | | style: sync changes from mozilla-central.
| * | | style: Miscellaneous servo build fixes.Emilio Cobos Álvarez2020-06-041-2/+11
| | | |
* | | | Auto merge of #26769 - kunalmohan:gpu-render-pass, r=kvarkbors-servo2020-06-0322-88/+554
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPURenderPassEncoder Add webidls for GPURenderPassEncoder and GPURenderEncoderBase and implement relevant methods. <!-- Please describe your changes on the following line: --> r?@kvark --- <!-- 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 - [ ] 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. -->
| * | | | Update wgpu-core and wgpu-typesKunal Mohan2020-06-0416-63/+54
| | | | |
| * | | | Implement GPURenderPassEncoderKunal Mohan2020-06-0410-35/+510
| | |_|/ | |/| | | | | | | | | | | | | | Add webidls for GPURenderPassEncoder and GPURenderEncoderBase and implement relevant methods.
* | | | Auto merge of #25432 - warren-fisher:HTMLConstructor, r=jdmbors-servo2020-06-032-97/+144
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract some of CGClassConstructHook to utils.rs <!-- Please describe your changes on the following line: --> Moving some of the functionality from the massive tripled quoted string in CGClassConstructHook in `components/script/dom/bindings/codegen/CodegenRust.py` to `components/script/dom/bindings/utils.rs`. Must be made unsafe because of UnwrapObjectDynamic and other functions. Added imports as necessary as well, as well as cleaning up using test-tidy. --- <!-- 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 #25395 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because the issue says so <!-- 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. -->
| * | | Reduce code duplication. Move some of CodegenRust.py to htmlconstructor.rsWarren Fisher2020-06-032-97/+144
| | | |
* | | | Auto merge of #26628 - gterzian:shutdown_workers, r=asajeffreybors-servo2020-06-039-45/+237
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve worker shutdown <!-- Please describe your changes on the following line: --> FIX #26548 FIX #25212 and also a step towards https://github.com/servo/servo/issues/26502 --- <!-- 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. -->
| * | | remove messagaging and worker infra on workerscope exitsGregory Terzian2020-06-031-0/+5
| | | |
| * | | properly shutdown dedicated workers when the owning scope shuts-downGregory Terzian2020-06-033-3/+13
| | | |
| * | | turn serviceworker event-loop back onGregory Terzian2020-06-031-3/+1
| | | |
| * | | add a control chan to workers, use to signal shutdownGregory Terzian2020-06-036-31/+165
| | | |
| * | | add mechanism to join on service- and dedicated-worker threadsGregory Terzian2020-05-296-18/+63
| | | |
* | | | Auto merge of #26757 - jdm:unneeded-generic, r=SimonSapinbors-servo2020-06-032-12/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary generics from low-level script code This should remove one of the larger offenders from the cargo-llvm-lines output for the script crate.
| * | | | dom: Extract non-generic code from Root::new.Josh Matthews2020-06-021-6/+11
| | | | |
| * | | | dom: Remove unnecessary generic from private_from_proto_check_static.Josh Matthews2020-06-021-6/+3
| | |/ / | |/| |
* | | | reading unminified scripts from diskskrzyp12020-06-023-31/+78
| | | |
* | | | Implement GPUTexture and GPUTextureViewKunal Mohan2020-06-0114-15/+598
| | | |
* | | | Improve webidl precisionKunal Mohan2020-06-011-8/+12
| | | | | | | | | | | | | | | | Allow enum variants staring with digit
* | | | Auto merge of #26714 - kunalmohan:gpu-render-pipeline, r=jdmbors-servo2020-05-3013-24/+565
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPURenderPipeline <!-- Please describe your changes on the following line: --> We need to wait for #26699 to merge before this. A significant amount of validation still needs to be added. I plan on doing that in a follow-up PR. r?@kvark --- <!-- 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 - [ ] 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. -->
| * | | | Implement GPURenderPipelineKunal Mohan2020-05-3012-22/+560
| | | | | | | | | | | | | | | | | | | | Add webidl for GPURenderPipeline and implement GPUDevice.createRenderPipeline()
| * | | | Allow sequence of nullable dictionary items in webidlKunal Mohan2020-05-301-2/+5
| | | | | | | | | | | | | | | | | | | | of type "sequence<Dict?> x"
* | | | | Fix the webidl for HeadersBastien Orivel2020-05-304-46/+26
|/ / / / | | | | | | | | | | | | | | | | | | | | Make the HeadersInit type match the spec. Fixes #26441
* | | | Auto merge of #26718 - jdm:codegen-sequence, r=Manishearthbors-servo2020-05-291-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve precision of sequence types for WebIDL codegen. Unlike #26699, this doesn't attempt to improve any of the resulting types and only maintains the status quo. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes
| * | | | dom: Improve precision of sequence types for WebIDL codegen.Josh Matthews2020-05-291-4/+4
| |/ / /