aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #26048 - nox:layout-2020-transparent-data, r=jdmbors-servo2020-03-2827-112/+102
|\ | | | | | | Give a lifetime parameter to LayoutDom
| * Give a lifetime parameter to LayoutDomAnthony Ramine2020-03-2824-65/+83
| |
| * Pass pending restyles instead of draining them from layoutAnthony Ramine2020-03-282-20/+15
| |
| * Move PendingRestyle to the style_layout_interface crateAnthony Ramine2020-03-283-27/+4
| |
* | Auto merge of #25998 - jdm:vao-drop, r=noxbors-servo2020-03-274-12/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Avoid a panic when closing webgl pages using VAOs - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25891 - [x] These changes do not require tests because GC behaviour at shutdown is nondeterministic and difficult to test
| * | webgl: Ignore webgl communication errors when dropping vertex array objects.Josh Matthews2020-03-194-12/+12
| | |
* | | Auto merge of #26029 - paulrouget:uitask, r=jdmbors-servo2020-03-264-5/+32
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set user interactions for tasks fix #26026 I need help here. Retrieving the interaction flag from the promise handle crashes. ```rust let interaction = GetPromiseUserInputEventHandlingState(promise); ``` ``` Stack trace for thread "ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }" stack backtrace: 0: backtrace::backtrace::libunwind::trace at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/libunwind.rs:86 backtrace::backtrace::trace_unsynchronized at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/mod.rs:66 1: <servo::backtrace::Print as core::fmt::Debug>::fmt at ports/glutin/backtrace.rs:49 2: <&mut W as core::fmt::Write>::write_fmt 3: std::io::Write::write_fmt at /rustc/45ebd5808afd3df7ba842797c0fcd4447ddf30fb/src/libstd/io/mod.rs:1427 4: servo::backtrace::print at ports/glutin/backtrace.rs:17 5: servo::install_crash_handler::handler at ports/glutin/main2.rs:68 6: <unknown> 7: _ZN2JS37GetPromiseUserInputEventHandlingStateENS_6HandleIP8JSObjectEE at /Users/paul/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2392ebc/mozjs/js/src/vm/JSObject.h:106 ```
| * | | Propagate user interacting flag to timers and promisesPaul Rouget2020-03-264-5/+32
| | |/ | |/|
* | | Auto merge of #26005 - jdm:hubs-csp, r=noxbors-servo2020-03-252-1/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update content-security-policy. This allows hubs.mozilla.org to load instead of panicking due to unimplemented CSP features. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24702 - [x] These changes do not require tests because we never enabled the CSP testsuite
| * | Update content-security-policy.Josh Matthews2020-03-252-1/+2
| |/
* | Auto merge of #26017 - humancalico:remove_legacy, r=jdmbors-servo2020-03-242-36/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed createTouch and createTouchList <!-- 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 fix #25978 <!-- 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. -->
| * | Removed createTouch and createTouchListAkshat Agarwal2020-03-242-36/+0
| | |
* | | Force alert message to its own line.Josh Matthews2020-03-231-1/+1
|/ /
* | Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-20353-1236/+327
| |
* | Add missing same-origin referrer policyTipowol2020-03-202-1/+3
|/
* Auto merge of #25964 - servo:webidl, r=jdmbors-servo2020-03-1711-195/+526
|\ | | | | | | | | | | Update the WebIDL parser It now supports Python 3.
| * Do not do weird scope things in MethodDefinerAnthony Ramine2020-03-141-0/+2
| | | | | | | | | | Variable `m` comes from a previous list comprehension earlier in the function is not actually properly defined.
| * Update the WebIDL parserAnthony Ramine2020-03-1411-195/+524
| | | | | | | | | | Upstream doesn't allow downloading .tar.gz archives so update.sh was changed to use unzip.
* | Do not try to read pixels from an FBO without read bufferMátyás Mustoha2020-03-171-1/+5
| | | | | | | | | | | | Adds another check to the WebGL2 ReadPixels implementation to fix an OpenGL invalid operation crash when the method is called on a bound framebuffer that has no read buffer.
* | Add support for WebGL2 read and draw buffer settingsMátyás Mustoha2020-03-164-2/+129
| | | | | | | | | | | | | | | | | | | | | | Adds support for the `ReadBuffer` and `DrawBuffers` WebGL2 calls and the related parameter getters. See: - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
* | Auto merge of #25940 - pylbrecht:image.handling, r=jdmbors-servo2020-03-131-7/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle nonexistent images in CanvasRenderingContext2D.createPattern() <!-- 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 part of #25331 <!-- 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. -->
| * | Handle nonexistent images in CanvasRenderingContext2D.createPattern()pylbrecht2020-03-131-7/+4
| | |
* | | webgl: Don't panic on sampler3D and sampler2DArray uniforms.Josh Matthews2020-03-131-0/+3
| | |
* | | Add support for some more WebGL2 renderbuffer functionsMátyás Mustoha2020-03-134-36/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for the following WebGL2 calls: - `RenderbufferStorageMultisample` - `GetInternalFormativ` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.5
* | | Auto merge of #25959 - jdm:webgl_vertex_array, r=jdmbors-servo2020-03-138-318/+682
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add VertexArrayObject support for WebGL2 The implementation was already in place for OpenGL ES. My approach with this patch is to add support for WebGL2 by sharing the implementation between the WebGL2 and GLES. Sadly I couldn't manage to place the WebGL2 and OpenGL ES variant to the same slot in `WebGLRenderingContext`, therefore I had to do same code duplication. Fixes #25956. <!-- 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] 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. -->
| * | Add VertexArrayObject support for WebGL2Istvan Miklos2020-03-138-318/+682
| | | | | | | | | | | | | | | | | | The implementation was already in place for OpenGL ES. My approach with this patch is to add support for WebGL2 by sharing the implementation between the WebGL2 and GLES.
* | | Accept only connected attributes for checkbox and radio activation behaviourDmitry Kolupaev2020-03-111-0/+3
|/ /
* | Auto merge of #25946 - jdm:macos-fix, r=noxbors-servo2020-03-111-1/+1
|\ \ | | | | | | | | | Update mozjs for macOS 10.15 build fix.
| * | Update mozjs for macOS 10.15 build fix.Josh Matthews2020-03-111-1/+1
| |/
* | Auto merge of #25939 - jdm:rustup2, r=asajeffreybors-servo2020-03-105-21/+21
|\ \ | |/ |/| | | | | | | Update to 3/4 nightly rustc. Now that #25918 has merged, this should be safe to use.
| * Update to 3/4 nightly rustc.Josh Matthews2020-03-105-21/+21
| |
* | Auto merge of #25930 - mmatyas:webgl_fns_indexed_unibuf, r=jdmbors-servo2020-03-102-21/+116
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 GetIndexedParameter Adds support for the `GetIndexedParameter` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 <!-- Please describe your changes on the following line: --> Depends on #25915. cc @jdm @zakorgy --- <!-- 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] 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. -->
| * Add support for WebGL2 GetIndexedParameterMátyás Mustoha2020-03-102-21/+116
| | | | | | | | | | | | Adds support for the `GetIndexedParameter` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
* | Remove unused imports.Josh Matthews2020-03-091-4/+0
| |
* | Remove XR canvas dirtying step.Josh Matthews2020-03-091-8/+0
| |
* | Auto merge of #25855 - jdm:surface-inversion, r=Manishearth,asajeffreybors-servo2020-03-093-5/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove GL->d3d blit in HoloLens immersive mode Depends on: * https://github.com/servo/surfman/pull/151 * https://github.com/asajeffrey/surfman-chains/pull/7 * https://github.com/servo/webxr/pull/133 These changes add two extra APIs for embedders to use when registering a WebXR device - one to allow running any closure as a task in the webgl thread, and one to register an arbitrary surface provider for a particular webxr session. When an openxr session is started, it can then obtain the webgl thread's d3d device from that thread's surfman device and ensure that openxr uses it. Surface providers are traits that have their methods invoked by the webgl thread as part of the the normal swapchain operations. This allows the openxr surface provider to return surfaces that wrap the underlying openxr textures, which are valid in the webgl thread and can be used as the target of an opaque framebuffer. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25735 - [x] These changes do not require tests because there are no windows immersive mode tests
| * | Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-093-5/+13
| | | | | | | | | | | | implementations.
* | | Auto merge of #25923 - iulianR:issue-22312, r=jdmbors-servo2020-03-096-8/+473
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add VTTRegion and part of VTTCue DOM interfaces <!-- Please describe your changes on the following line: --> Hello! In this PR I implemented the VTTRegion DOM interface and part of VTTCue (#22312). Before continuing I thought it's maybe a good idea to first request a review or even merge what I did up to this point, as I might get stuck on the next part. I have a slight idea of what needs to be done (I assume it's hooking the GStreamer parser somewhere in `GetCueAsHTML()`), but a short outline or some more instructions would help a lot. I updated test expectations by first running: ``` ./mach test-wpt tests/wpt/web-platform-tests/webvtt/api --log-raw servo.log --pref dom.webvtt.enabled=true ``` then ``` ./mach update-wpt servo.log ``` Thanks! --- <!-- 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: --> - [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. -->
| * | | Add base of VTTCue DOM interfaceIulian Gabriel Radu2020-03-084-8/+279
| | | |
| * | | Add VTTRegion DOM interfaceIulian Gabriel Radu2020-03-053-0/+194
| | | |
* | | | Auto merge of #25914 - paulrouget:lessRAF, r=jdmbors-servo2020-03-092-3/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop embedder calls and fake rAF when window not visible This addresses 2 issues: - a rAF loop might still be ongoing when the window is invisible if script decided that the rAF were going too fast (spurious rAF) - a hidden window does not run the rAF loop, but the embedder would still be in animating mode --- <!-- 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. -->
| * | | Stop embedder calls and fake rAF when window not visiblePaul Rouget2020-03-062-3/+10
| | | |
* | | | Add support for WebGL2 GetFragDataLocationMátyás Mustoha2020-03-093-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | Adds support for the `GetFragDataLocation` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.7
* | | | Auto merge of #25918 - servo:vtable-pointers-are-not-comparable, r=jdmbors-servo2020-03-063-15/+32
|\ \ \ \ | |_|_|/ |/| | | | | | | Don't compare vtable pointers anymore
| * | | Don't compare the vtable pointers anymore when unrooting stuffAnthony Ramine2020-03-062-2/+9
| | | |
| * | | Change how we reflect DOM objects in codegenAnthony Ramine2020-03-062-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We now go through <Root<MaybeUnreflectedDom<T>>>::reflect_with, to decrease the amount of bad stuff we can end up doing. This avoids a source of vtable pointer instability that could cause issues down the road.
* | | | Auto merge of #25911 - jdm:rustup-revert, r=jdmbors-servo2020-03-065-21/+21
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | Revert 3/4 nightly rustc upgrade Fixes #25908.
| * | | Revert "Auto merge of #25898 - jdm:rustup, r=asajeffrey"Josh Matthews2020-03-065-21/+21
| | | | | | | | | | | | | | | | | | | | This reverts commit ea8aed1ba927012d992a3d3c9880858e0282f5f9, reversing changes made to 3749eb53971b688b855d6b1850f41b4c346cd2da.
* | | | Auto merge of #25678 - servo:smup, r=asajeffreybors-servo2020-03-0617-157/+205
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Update SpiderMonkey Do not merge.
| * | | | Update SpiderMonkeyAnthony Ramine2020-03-0617-157/+205
| | | | |