aboutsummaryrefslogtreecommitdiffstats
path: root/ports
Commit message (Collapse)AuthorAgeFilesLines
* Remove `ports/libmlservo`michaelgrigoryan252023-05-222-599/+0
|
* Undo deletion of `ports/libmlservo/Cargo.toml`michaelgrigoryan252023-05-221-0/+28
|
* Merge branch 'master' into issue#29773michaelgrigoryan252023-05-221-0/+571
|\
| * Fix: Invalid fields in libservo InitOptionsmichaelgrigoryan252023-05-221-3/+1
| |
* | Remove `ports/libmlservo`michaelgrigoryan252023-05-222-601/+0
|/
* Update ports/winit/headed_window.rsMichael Grigoryan2023-05-211-1/+0
| | | Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Fix: Fixed a namespacing errormichaelgrigoryan252023-05-211-1/+1
|
* Patch: Applied code patches for clippy warningsmichaelgrigoryan252023-05-198-38/+38
|
* Start the transition to workspace dependenciesMartin Robinson2023-05-176-39/+39
| | | | | | | 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.
* cargo-fix for 2021sagudev2023-05-076-7/+7
|
* Bump winit from 0.28.2 to 0.28.3dependabot[bot]2023-03-171-1/+1
| | | | | | | | | | | | | | | Bumps [winit](https://github.com/rust-windowing/winit) from 0.28.2 to 0.28.3. - [Release notes](https://github.com/rust-windowing/winit/releases) - [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-windowing/winit/compare/v0.28.2...v0.28.3) --- updated-dependencies: - dependency-name: winit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* Bump winit from 0.28.1 to 0.28.2dependabot[bot]2023-03-071-1/+1
| | | | | | | | | | | | | | | Bumps [winit](https://github.com/rust-windowing/winit) from 0.28.1 to 0.28.2. - [Release notes](https://github.com/rust-windowing/winit/releases) - [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-windowing/winit/compare/v0.28.1...v0.28.2) --- updated-dependencies: - dependency-name: winit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* Auto merge of #29443 - delan:fix-thread-crash-output, r=jdmbors-servo2023-02-281-8/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve winit/mach segfault output This patch improves the output that you see when the winit port segfaults, especially when the segfault happens on a layout or script thread, by making two changes to our crash handler and one change to mach. * we make the crash handler use stderr instead of stdout, because [std::io::stdout](https://doc.rust-lang.org/std/io/fn.stdout.html) allocates when first called, which will often cause a second segfault * we make the crash handler reraise the signal to terminate abnormally, allowing mach to distinguish it from exiting normally with the same status code as a signal number * we make mach print different messages for whether the process terminated by signal or exited normally You can try this yourself by running servo with the following patch: ```diff diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index ac1a7fe21e..77c4c9d087 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -589,6 +589,7 @@ impl LayoutThread { rw_data: &rw_data, possibly_locked_rw_data: &mut possibly_locked_rw_data, }; + unsafe { std::ptr::read::<usize>(std::ptr::null()); } while self.handle_request(&mut rw_data) { // Loop indefinitely. } ``` Before: ``` $ ./mach run -d about:blank [should print “Stack trace for "Layout(1,1)"” here, but segfaults] Servo exited with return value 11 ``` After: ``` $ ./mach run -d about:blank Caught signal 11 in thread "Layout(1,1)" [should ideally print backtrace here, but segfaults] Servo was terminated by signal 11 ``` --- <!-- 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 #29442 <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it would be impractical to test them (r? @jdm, @SimonSapin based on git log for crash handler)
| * Improve winit/mach segfault outputDelan Azabani2023-02-281-8/+30
| |
* | Ensure winit windows are cleaned up before TLS disappears.Josh Matthews2023-02-271-32/+19
|/
* Bump surfman to 0.6Thomas Gardner2023-02-244-4/+4
| | | | | Update to the new release of surfman, and consume it without using the `patches` section in Cargo.toml.
* Fix macOS extensions in winit.Josh Matthews2023-02-213-27/+22
|
* Bump winit to 0.28.1Thomas Gardner2023-02-212-3/+3
| | | | | | This fixes the following wayland-client error: Attempted to dispatch unknown opcode 0 for wl_shm, aborting.
* Bump euclid to 0.22Martin Robinson2023-01-265-8/+8
| | | | | | | | | | | | | - 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.
* Bump smallvec from 1.8.0 to 1.9.0dependabot[bot]2022-08-191-1/+1
| | | | | | | | | | | | | | Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.8.0 to 1.9.0. - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.8.0...v1.9.0) --- updated-dependencies: - dependency-name: smallvec dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Bump cbindgen from 0.14.6 to 0.20.0dependabot[bot]2022-04-061-1/+1
| | | | | | | | | | | | | | | Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.6 to 0.20.0. - [Release notes](https://github.com/eqrion/cbindgen/releases) - [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES) - [Commits](https://github.com/eqrion/cbindgen/compare/v0.14.6...v0.20.0) --- updated-dependencies: - dependency-name: cbindgen dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Remove env_logger duplicate.Josh Matthews2022-04-011-1/+1
|
* Update image/png.Josh Matthews2022-04-011-1/+1
|
* Update keyboard-types.Josh Matthews2022-04-012-2/+2
|
* move servo_version from config crate to ports/libsimpleservo/api/src/lib.rs ↵s-maurice2022-03-062-2/+15
| | | | | | and duplicate in ports/winit/main2.rs Signed-off-by: s-maurice <51819025+s-maurice@users.noreply.github.com>
* Update rustc.Josh Matthews2021-12-021-1/+1
|
* Auto merge of #28591 - servo:jdm-patch-51, r=jdmbors-servo2021-11-011-1/+1
|\ | | | | | | | | | | Update rustc to latest nightly. None
| * Update nightly rustc.Josh Matthews2021-11-011-1/+1
| |
* | Create initial browser id for compositor on startup.Josh Matthews2021-10-183-8/+8
|/
* feat: shorten thread namesyvt2021-07-191-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel imposes a 15-byte limit on thread names[1]. This means information that does not fit in this limit, e.g., the pipeline ID of layout and script threads, is lost in a debugger and profiler (see the first column of the table below). This commit shortens the thread names used in Servo to maximize the amount of information conveyed. It also rectifies some inconsistencies in the names. | Before | After | |-------------------|-------------------| | `BluetoothThread` | `Bluetooth` | | `CanvasThread` | `Canvas` | | `display alert d` | `AlertDialog` | | `FontCacheThread` | `FontCache` | | `GLPlayerThread` | `GLPlayer` | | `HTML Parser` | `Parse:www.examp` | | `LayoutThread Pi` | `Layout(1,1)` | | `Memory profiler` | `MemoryProfiler` | | `Memory profiler` | `MemoryProfTimer` | | `OfflineAudioCon` | `OfflineACResolv` | | `PullTimelineMar` | `PullTimelineDat` | | `ScriptThread Pi` | `Script(1,1)` | | `WebWorker for h` | `WW:www.example.` | | `ServiceWorker f` | `SW:www.example.` | | `ServiceWorkerMa` | `SvcWorkerManage` | | `Time profiler t` | `TimeProfTimer` | | `Time profiler` | `TimeProfiler` | | `WebGL thread` | `WebGL` | | `Choose a device` | `DevicePicker` | | `Pick a file` | `FilePicker` | | `Pick files` | `FilePicker` | [1]: https://stackoverflow.com/questions/5026531/thread-name-longer-than-15-chars
* Auto merge of #28308 - philip-lamb:phil-ime-textentry, r=jdmbors-servo2021-03-295-9/+35
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve IME messaging to embedder with insertion point index and mult… …iline flag. <!-- Please describe your changes on the following line: --> This improves handling of IME requests in the embedder by passing the location of the insertion point along with the current text, and a boolean flag 'multiline' (true for HTML textarea, false otherwise) which allows the embedder to be more clever about handling of the 'enter' or 'return' keys. Tested and working in an embedding example. --- <!-- 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. -->
| * Improve IME messaging to embedder with insertion point index and multiline flag.Philip Lamb2021-03-295-9/+35
| |
* | Minor fixes in simpleservo: improve embedding C header generation. Don't ↵Philip Lamb2021-03-293-8/+18
|/ | | | recursively panic if embedder doesn't throw on panic. Make init_with_gl unavailable when doing non-WGL windows build.
* Don't use headless winit event loop on macOS.Josh Matthews2021-03-141-2/+2
|
* Work around absense of winit::event_loop in headless case.Paulo E. Castro2021-03-112-4/+8
|
* Correct format.Paulo E. Castro2021-03-061-1/+1
|
* Only request synchronous repaint when a resize will actually occur.Josh Matthews2021-03-051-8/+2
|
* Update to winit 0.24.Josh Matthews2021-03-0512-311/+304
| | | | | Co-authored-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Paulo E. Castro <pecastro@wormholenet.com>
* Manually reformat ports/winit/**/*.rsSimon Sapin2021-02-2510-208/+245
| | | | `cargo fmt` misses these files, possibly because of `include!` or `#[cfg]` in `main.rs`. This commit runs `rustfmt` directly.
* Fix warnings introduced in newer Rust NightlySimon Sapin2021-02-253-23/+10
| | | | | | | | | | | | This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
* Extract crash handlerMichael Mc Donnell2021-02-162-34/+39
| | | | | Moved the crash handler code into its own file since it is a distinct concept. It simplifies the main method a little.
* Bump smallvec from 1.5.1 to 1.6.1dependabot-preview[bot]2021-01-111-1/+1
| | | | | | | Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.5.1 to 1.6.1. - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.5.1...v1.6.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* add instruction for building libsimpleservoSimon Schmeisser2020-12-281-0/+8
|
* formatting.Philip Lamb2020-12-161-5/+2
|
* Replace use of c++ keyword 'default' in c++ code and C APIs. Also correct ↵Philip Lamb2020-12-161-1/+1
| | | | obsolete use of qualified name in member declaration.
* Bump smallvec from 1.4.2 to 1.5.1dependabot-preview[bot]2020-12-071-1/+1
| | | | | | | Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.4.2 to 1.5.1. - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.4.2...v1.5.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix mouse button handlingYUAN LYU2020-12-061-3/+9
|
* Bump jni from 0.16.0 to 0.18.0dependabot-preview[bot]2020-12-031-1/+1
| | | | | | | | Bumps [jni](https://github.com/jni-rs/jni-rs) from 0.16.0 to 0.18.0. - [Release notes](https://github.com/jni-rs/jni-rs/releases) - [Changelog](https://github.com/jni-rs/jni-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/jni-rs/jni-rs/compare/v0.16.0...v0.18.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump env_logger from 0.7.1 to 0.8.2dependabot-preview[bot]2020-11-241-1/+1
| | | | | | | | | Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.7.1 to 0.8.2. - [Release notes](https://github.com/env-logger-rs/env_logger/releases) - [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md) - [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix typo in gstplugin readme.md王滋涵 Zephyr Wang2020-11-221-1/+1
|