aboutsummaryrefslogtreecommitdiffstats
path: root/components/embedder_traits
Commit message (Collapse)AuthorAgeFilesLines
* Move `*_traits` and other shared types to `shared`Martin Robinson2023-11-034-546/+0
| | | | | | | | | | | | This is the start of the organization of types that are in their own crates in order to break dependency cycles between other crates. The idea here is that putting these packages into their own directory is the first step toward cleaning them up. They have grown organically and it is difficult to explain to new folks where to put new shared types. Many of these crates contain more than traits or don't contain traits at all. Notably, `script_traits` isn't touched because it is vendored from Gecko. Eventually this will move to `third_party`.
* Enable debug assertions for all builds other than official releases (#30509)Delan Azabani2023-10-263-43/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Run main and try jobs with debug assertions * use single quotes in workflow expressions * set force-debug-assertions in main.yml * set force-debug-assertions as part of decision job * fix typo in MachCommands.build * fix more hardcoded profile names * fix tidy * split cargo_profile_option on windows * Fix running servoshell and unit tests through a symlink * rename steps to make them less confusing * fix more hardcoded cargo profile options * fix missing inputs in linux-wpt and mac-wpt * make filename an inherent method of Resource * rework release-with-debug-assertions profile to production profile * rework resource logic to eliminate std_test_override * set production flag in nightly release builds * clean up servobuild.example and windows.yml * oops forgot to check in embedder_traits/build.rs * fix mach test-unit behaviour through symlink * unit tests only need current_dir and ancestors * fix macOS package smoketest breakage * expect css/css-color/currentcolor-003 to crash under layout 2013 * fix more references to {force,release-with}-debug-assertions * fix local build failures under --profile production
* Fix running servoshell and unit tests through a symlink (#30537)Delan Azabani2023-10-181-41/+61
| | | | | | | | | | | * Fix running servoshell and unit tests through a symlink * make filename an inherent method of Resource * fix mach test-unit behaviour through symlink * unit tests only need current_dir and ancestors * fix macOS package smoketest breakage
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-112-3/+4
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-082-9/+4
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* constellation: crash to a new “sad tab” error page (#30290)Delan Azabani2023-09-061-0/+2
| | | | | | | | | | | | | | | | | | | | | * constellation: crash to a new “sad tab” page * check in resources/crash.html * use a separate enum variant instead of keying on reason * fmt + tidy * rename Resource::Crash to Resource::CrashHTML * clean up crash page and add details (reason + backtrace) * avoid repeating crash errors in script::script_thread warn log * make new LoadData init more idiomatic * clarify comments and new fields * fix doc comment style
* winit: initial minibrowser (#29976)Delan Azabani2023-08-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * winit: add minibrowser feature that depends on egui{,-winit} * winit: carve out some space at the top of headed windows * winit: minimal toolbar and egui/winit integration (but no painting) * winit: try to paint with egui_glow (doesn’t work yet) * winit: add comment about toolbar size * Add framebuffer object, set it as glow's target * compositing: clear only the viewport, not the whole framebuffer * plumb the actual size of the egui toolbar to webrender * fix formatting * winit: fix crash when fbo is zero * winit: don’t bother binding the framebuffer object * winit: remove unsafe and get toolbar_height * winit: location field should reflect the current top-level url * [NFC] winit: move Minibrowser out of App::run * winit: clean up toolbar height code * winit: make App own the Minibrowser if any * winit: make the go button work * winit:make the location field reflect the current top-level url * winit: allow enabling minibrowser from command line * winit: tell compositor to repaint WR and flush when we repaint * winit: fix bug where location field edits would get overridden * winit: borrow the minibrowser once in App::handle_events * winit: address todo about viewport origin coordinates * winit: fix some minor problems with comments and errors * winit: update location field once per HistoryChanged event * winit: rename Window::set_toolbar_size to set_toolbar_height * winit: take toolbar height into account in hit testing * winit: pass egui only relevant CursorMoved events * winit: scratch that, coalesce minibrowser updates instead * ensure both minibrowser and WR are repainted on every frame * compositing: only skip framebuffer clear in external present mode * winit: destroy egui glow Painter when shutting down * winit: clean up and fix license lint * fix duplicate versions lint by downgrading bytemuck_derive was egui_glow ^0.22.0 (0.22.0) → egui/bytemuck ^0.22.0 (0.22.0) → epaint/bytemuck ^0.22.0 (0.22.0) → bytemuck ^1.7.2 (1.13.1) → bytemuck_derive ^1.4 (1.4.1) → syn ^2.0.1 (2.0.28) now lock has bytemuck_derive 1.4.0 → syn ^1.0.99 (1.0.103) * fix duplicate versions lint by disabling egui-winit/links (we don’t need support for hyperlinks in our use of egui) * squelch duplicate versions lint by excluding clipboard-win * winit: fix compile warnings * winit: make gleam an optional dependency under /minibrowser * winit: remove cargo feature, since it’s not really optional * winit: extract Minibrowser and related code to separate module * winit: remove unnecessary trailing comma * winit: simplify the ServoUrl serialisation optimisation --------- Co-authored-by: atbrakhi <atbrakhi@igalia.com>
* Clean up some unused code after switching to rustls (#30081)Martin Robinson2023-08-091-2/+0
| | | | The SSL certificate resource is no longer used as these certificates are loaded via the webpki-roots crate.
* Vendor the current version of WebRenderMartin Robinson2023-07-031-1/+1
| | | | | | | | 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.
* Start the transition to workspace dependenciesMartin Robinson2023-05-171-7/+7
| | | | | | | 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.
* Move hit testing information out of WebRenderMartin Robinson2023-03-151-1/+1
| | | | | | | | | Store hit testing information in a data structure that sits alongside the display list in the compositor. This will allow the compositor to store more information per-node. The data structure also takes care of de-duplicating information between successive display list entries. In the future, the data structure can be even more aggressive in producing smaller side hit testing lists, if necessary.
* Update keyboard-types.Josh Matthews2022-04-011-1/+1
|
* Improve IME messaging to embedder with insertion point index and multiline flag.Philip Lamb2021-03-291-1/+4
|
* UWP: support virtual keyboardPaul Rouget2020-07-021-2/+2
|
* update keyboard-types cratePaul Rouget2020-06-291-1/+1
|
* Allow embedder to bypass devtools promptPaul Rouget2020-06-221-2/+2
|
* More Cargo.toml cleanupsAlex Touchet2020-05-141-5/+5
|
* Make it possible to add a title to context menuPaul Rouget2020-03-311-1/+1
|
* Context Menu: APIPaul Rouget2020-03-301-0/+10
|
* Add support for launching devtools server on random portKunal Mohan2020-03-161-0/+3
| | | | | Assign random port to devtools server in case user does not specify a port explicitly and report it to the embedding layer for display to user.
* Auto merge of #25863 - servo:synup, r=jdmbors-servo2020-03-051-1/+1
|\ | | | | | | Remove syn 0.15 from our crate graph
| * Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* | Delegate permission prompt dialog formatting to embeddersIulian Gabriel Radu2020-02-281-4/+26
| |
* | Move tinyfiledialog out of script into embedder.gatowololo2020-02-271-0/+11
|/
* Implement dirname for form submit and directionality for elementDmitry Kolupaev2020-02-251-1/+1
|
* Update ipc-channel and crossbeam-channel.Josh Matthews2020-02-201-2/+2
|
* Embedder Prompt APIPaul Rouget2020-02-101-3/+34
|
* Auto merge of #24885 - shnmorimoto:implement_mediasession_set_positon_state, ↵bors-servo2019-12-031-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=ferjm Implement mediasession set positon state <!-- Please describe your changes on the following line: --> fix #24808 > Bonus points if you want to tweak the existing UI by adding a progress bar, and the info about the current position and total duration. I haven't implemented this yet. --- <!-- 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 #24808 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR <!-- 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. -->
| * extended HostTrait with on_media_session_set_position_stateShinichi Morimoto2019-12-031-3/+3
| |
| * extended MediaSessionEvent with SetPositionStateShinichi Morimoto2019-12-031-0/+20
| |
* | Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-1/+1
|/
* Fix metadata updateFernando Jiménez Moreno2019-11-201-2/+12
|
* MediaSession show media controls on AndroidFernando Jiménez Moreno2019-11-201-2/+2
|
* MediaSession: refactor embedder API. Fix Android buildFernando Jiménez Moreno2019-11-201-1/+2
|
* Introduce embedder MediaSessionEvent and move active session to ServoFernando Jiménez Moreno2019-11-201-4/+35
|
* Add embedder message to (de)activate media sessionFernando Jiménez Moreno2019-11-201-0/+4
|
* Remove unused dependenciesShotaro Yamada2019-10-011-1/+0
|
* Update ipc-channel and related dependenciesBastien Orivel2019-08-271-1/+1
|
* Pass the event loop waker into WebXRAlan Jeffrey2019-07-252-6/+3
|
* Fix media-controls resources namingFernando Jiménez Moreno2019-07-221-2/+2
|
* Media UI basic functionalityFernando Jiménez Moreno2019-07-221-2/+4
|
* Barebones media UIFernando Jiménez Moreno2019-07-221-0/+2
|
* WebRender units are no longer reexported.Patrick Walton2019-07-091-1/+1
|
* Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdmbors-servo2019-07-031-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clipboard refactoring <!-- Please describe your changes on the following line: --> This PR removes clipboard handling from the constellation. Instead, now embedder handles it. --- <!-- 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 #23440 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it is enough to test manually in input box, if copying and pasting still works . <!-- 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/23564) <!-- Reviewable:end -->
| * Add Embbedder messages for setting/getting clipboard contentsMichal Mieczkowski2019-06-131-0/+6
| |
* | Fix some new warningsSimon Sapin2019-06-222-5/+6
|/
* Add a sampling profiler and a script to generate profiles for use with Gecko ↵Josh Matthews2019-03-261-0/+3
| | | | tooling.
* style: Make tidy happy.Emilio Cobos Álvarez2019-01-201-1/+1
|
* Fix servo build and rustfmt recent changes.Emilio Cobos Álvarez2019-01-202-2/+47
| | | | | We need to introduce another Cursor enum that is specific to embedder_traits and that layout converts to to avoid dependency hell.
* constellation: restructure navigation, remove sync commGregory Terzian2018-12-231-4/+4
|