Commit graph

101 commits

Author SHA1 Message Date
Samson
c0bee7cb86
Format toml files (#30112)
* Add taplo fmt config for toml fmt

* fmt toml files

* Add even-better-toml to extensions recommendations
2023-08-17 15:07:43 +00:00
Martin Robinson
c46631a1ce
Remove dependency on surfman-chains (#30090)
This functionality is now part of surfman itself.
2023-08-11 14:24:10 +00:00
Martin Robinson
bce7622cde
Switch to rustls and webpki-roots (#30025)
This change replaces OpenSSL with rustls and also the manually curated
CA certs file with webpki-roots (effectively the same thing, but as a
crate).

Generally speaking the design of the network stack is the same. Changes:

- Code around certificate overrides needed to be refactored to work with
  rustls so the various thread-safe list of certificates is refactored
  into `CertificateErrorOverrideManager`
- hyper-rustls takes care of setting ALPN protocols for HTTP requests,
  so for WebSockets this is moved to the WebSocket code.
- The safe set of cypher suites is chosen, which seem to correspond to
  the "Modern" configuration from [1]. This can be adjusted later.
- Instead of passing a string of PEM CA certificates around, an enum is
  used that includes parsed Certificates (or the default which reads
  them from webpki-roots).
- Code for starting up an SSL server for testing is cleaned up a little,
  due to the fact that the certificates need to be overriden explicitly
  now. This is due to the fact that the `webpki` crate is more stringent
  with self-signed certificates than SSL (CA certificates cannot used as
  end-entity certificates). [2]

1. https://wiki.mozilla.org/Security/Server_Side_TLS
2. https://github.com/briansmith/webpki/issues/114

Fixes #7888.
Fixes #13749.
Fixes #26835.
Fixes #29291.
2023-08-08 14:00:10 +00:00
Mukilan Thiyagarajan
926cce5b86
Update ipc-channel, crossbeam-channel and other deps (#30070)
These updates will allow us to move to the latest
nightly rustc

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2023-08-04 06:57:19 +00:00
Ngo Iok Ui (Wu Yu Wei)
3fea90a231
Use raw handles to create surfman context instead (#29871) 2023-08-03 10:54:30 +00:00
Tuna
4c8db6af87
bump base64 from 0.10 to 0.21 (#29804)
* bump base64 from 0.10 to 0.21

* Fix configuration of bitflags

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2023-08-02 21:25:37 +00:00
Martin Robinson
cc585b74d3
Revert "Update ipc-channel and other dependencies" (#30017)
This reverts commit a3e3b4d48f.
2023-07-20 14:27:14 +00:00
Mukilan Thiyagarajan
a3e3b4d48f Update ipc-channel and other dependencies
These updates will allow us to move to latest
rustc nightly.

Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
2023-07-10 09:57:37 +05:30
Martin Robinson
49277f5c3f
Vendor the current version of WebRender
This is a step toward upgrading WebRender, which will be upgraded and
patched in the `third_party` directory. This change vendors the current
private branch of WebRender that we use and adds a `patches` directory
which tracks the changes on top of the upstream WebRender commit
described by third_party/webrender/patches/head.
2023-07-03 17:55:17 +02:00
Martin Robinson
96eeb5865c Update mozangle
This should allow servo to take advantage of faster compilation speeds
on Windows.
2023-07-01 18:41:54 +02:00
Martin Robinson
78464eeabc Update uuid
This is required to use the new version of gleam and update ipc-channels
without duplicating the dependency in the future.
2023-06-26 16:27:12 +02:00
Oriol Brufau
e4bb1df878 Upgrade darling to 0.13.1
Based on https://phabricator.services.mozilla.com/D136568
2023-06-09 11:17:48 +02:00
michaelgrigoryan25
67ca730ec5 Apply some review fixes 2023-05-22 19:41:32 +04:00
Fabrice Desré
0d0540fc95 Update tungstenite 2023-05-20 21:55:00 +00:00
michaelgrigoryan25
4aa8a1c418 Update: Bumped webdriver version to 0.48 2023-05-18 13:48:19 +04:00
Martin Robinson
2f4c47bfe7 Start the transition to workspace dependencies
This will ultimately make it simpler to update crate dependencies and
reduce duplicate when specifying requirements. Generally, this change
does not touch dependencies that are only used by a single crate. We
could consider moving them to workspace dependencies in the future.
2023-05-17 11:59:35 +02:00
sagudev
c2778b9bef Use resolver v2 2023-05-07 15:45:55 +02:00
Alex Touchet
4b10692537 Use surfman-chains from crates.io 2023-02-28 08:46:30 -08:00
Fabrice Desré
31749642d2 Switch to immeta fork to remove arrayvec dupe 2023-02-25 12:25:33 -08:00
Thomas Gardner
140dda9968 Bump surfman to 0.6
Update to the new release of surfman, and consume it without using the
`patches` section in Cargo.toml.
2023-02-24 19:00:57 +11:00
Thomas Gardner
f89602948e Bump winit to 0.28.1
This fixes the following wayland-client error:

	Attempted to dispatch unknown opcode 0 for wl_shm, aborting.
2023-02-21 19:15:32 +11:00
Martin Robinson
423cc34cb0 Bump euclid to 0.22
- Also updates raqote to latest with an upgrade of font-kit to 0.11
  applied on as a patch
- Update lyon_geom to the latest version

Major change:

- All matrices are now stored in row major order. This means that
  parameters to rotation functions no longer should be negated.
- `post_...()` functions are now named `then()`. `pre_transform()` is removed,
  so `then()` is used and the order of operations changed.
2023-01-26 08:59:21 +01:00
Paulo E. Castro
490c215798 Work around bug in winit 0.24 crashing servo headless in macOS. 2021-03-11 00:24:19 +00:00
atouchet
c6605e2510 Update backtrace 2020-11-02 20:57:59 -08:00
Josh Matthews
91ca74c9be Update webrender. 2020-08-10 13:30:52 -04:00
Josh Matthews
420e19f172 Revert "Revert "Update font-kit and freetype and unicode-script.""
This reverts commit 10ae3bfbbb.
2020-08-10 13:30:51 -04:00
Josh Matthews
10ae3bfbbb Revert "Update font-kit and freetype and unicode-script."
This reverts commit 5c0d7998bd.
2020-08-04 19:16:05 -04:00
Josh Matthews
c1920357b0 Revert "Update webrender."
This reverts commit 2ca1b06e77.
2020-08-04 19:15:52 -04:00
Josh Matthews
2ca1b06e77 Update webrender. 2020-07-31 10:42:01 -04:00
Josh Matthews
5c0d7998bd Update font-kit and freetype and unicode-script. 2020-07-31 10:41:58 -04:00
Josh Matthews
22d0117ea3 Use backtrace fork with UWP-specific fix. 2020-07-22 15:47:24 -04:00
Josh Matthews
76198e40a8 net: Replace ws-rs with async-tungstenite. 2020-07-08 10:33:17 -04:00
Josh Matthews
01023e0a38 Update webrender to crash-backtrace branch. 2020-07-06 19:27:30 -04:00
Alan Jeffrey
349619ed2d Support for webxr layer management 2020-06-28 16:37:45 -05:00
atouchet
8a9cbcd9c5 Update winapi 2020-06-26 17:42:17 -07:00
atouchet
ca30ec02fc More Cargo.toml updates 2020-05-31 08:55:28 -07:00
atouchet
a33c75cbec Rename glutin port to winit 2020-05-27 20:27:15 -07:00
Kunal Mohan
a4f911699a Upgrade wgpu-core version to 0.5.0 and implement server-side logic for wgpu id recycling
Remove current implementation of MapReadAsync
2020-05-21 18:28:49 +05:30
Alan Jeffrey
5c3f1c90f4 Workarounds for webxr glwindow on macos 2020-05-05 10:29:07 -05:00
bors-servo
ba0df48d47
Auto merge of #26346 - jdm:console-caller, r=Manishearth
Improve devtools output for console APIs

These changes use the new API from https://github.com/servo/rust-mozjs/pull/508 to report meaningful filenames and line numbers for APIs that trigger devtools output. They also cause error messages originating from uncompiled event handlers to report a more relevant filename; this differs from Gecko's behaviour, but provides a more useful debugging experience in my opinion.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #9604 and fix #26344.
- [x] These changes do not require tests because devtools aren't tested.
2020-04-29 00:18:36 -04:00
Josh Matthews
ab7ade4efe Report real caller information for console APIs to devtools. 2020-04-28 21:32:41 -04:00
Josh Matthews
e3331dc8c4 Update backtrace dependency. 2020-04-23 16:06:19 -04:00
Alan Jeffrey
8bb1732258 Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
Patrick Shaughnessy
1979e67f70 change branch of spirv_cross 2020-01-24 09:49:47 -05:00
MeFisto94
c27b4e259a Workaround for #24984 - Solve crashes when panicking / Hang Monitoring by using cargo's patch mechanism to work around a bug in libbacktrace 2019-12-12 14:54:26 +01:00
Zakor Gyula
e146e6058a Replace wgpu-native with wgpu-core 2019-12-06 12:49:56 +01:00
Alan Jeffrey
69acec137d Add a gstreamer servosrc plugin 2019-11-25 10:12:05 -06:00
Zakor Gyula
47e39ec1e3 Patch wgpu-native 2019-11-24 15:10:42 +01:00
Zakor Gyula
16bc2e18b1 Patch spirv_cross 2019-11-22 10:40:04 +01:00
Manish Goregaokar
51bf8fcfe3 Remove patched webxr 2019-11-08 09:49:52 -08:00