aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/test.rs
Commit message (Collapse)AuthorAgeFilesLines
* Allow domain-like as URL location input (#35756)Kafji2025-03-101-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | * Allow domain-like as URL location input Before this patch, domain with subdomain (e.g. book.servo.org) won't be treated as URL location. This patch retifies that by adding Firefox's location bar behavior: - book.servo.org is URL location - book.servo.org. is URL location - .book.servo.org is not URL location Fixes #35754. Signed-off-by: Kafji <k@kafji.net> * Chain location input interpretation attempts Signed-off-by: Kafji <k@kafji.net> --------- Signed-off-by: Kafji <k@kafji.net>
* api: Flatten and simplify Servo preferences (#34966)Martin Robinson2025-01-141-3/+5
| | | | | | | | | | | | | | | | | | | Flatten and simplify Servo's preferences code. In addition, have both preferences and options passed in as arguments to `Servo::new()` and make sure not to use the globally set preferences in `servoshell` (as much as possible now). Instead of a complex procedural macro to generate preferences, just expose a very simple derive macro that adds string based getters and setters. - All command-line parsing is moved to servoshell. - There is no longer the concept of a missing preference. - Preferences no longer have to be part of the resources bundle because they now have reasonable default values. - servoshell specific preferences are no longer part of the preferences exposed by the Servo API. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* clippy: fix warnings on modules outside components (#31567)eri2024-03-071-1/+1
|
* Handle URL without scheme (#30148)atbrakhi2023-11-091-1/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cleanup and move user input logix into servoshell * fix fmt * add more tests * rename sanitize_url and add location bar test for unix system * fmt and missing rename * check for host, fix test-error * remove println, add condtion for not-none * fmt * clean up * review update * fix build failure cause by embedder_traits::resources * add cfg target-os windows * fmt * use to_file_path() instead of path()
* [NFC] servoshell: fix rust-analyzer and rustfmt breakage (#30340)Delan Azabani2023-09-121-0/+1
|
* Move user input logic into servoshell (#30238)Atbrakhi2023-09-061-0/+86
* cleanup and move user input logix into servoshell * fix fmt * moves test from servoshell file * move command-line args into servoshell * remove feature media-gstreamer * fix fmt * move user input logic code into lib to make it more testable * remove opts_matches in fn instead get it from main2 * remove pub and fix import * add licence in new file * revert passing Matches, instead pass Option String * review update, also move sanitize fn to parser file * fmt fix * review fix: remove extra line