aboutsummaryrefslogtreecommitdiffstats
path: root/components/url
Commit message (Collapse)AuthorAgeFilesLines
* clippy: fix `result_unit_err` warnings (#31791)eri2024-03-211-0/+1
| | | | | | | | | | | | | | | | | * clippy: fix `result_unit_err` warnings * feat: fix result warnings in script * doc: document `generate_key` return type Co-authored-by: Martin Robinson <mrobinson@igalia.com> * feat: add back result to RangeRequestBounds::get_final Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clippy: fix warnings in various modules in components (#31568)eri2024-03-081-1/+1
| | | | | | | | | * clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove packages that were moved to external repo * Add workspace dependencies pointing to 2023-06-14 branch * Fix servo-tidy.toml errors * Update commit to include #31346 * Update commit to include servo/stylo#2 * Move css-properties.json lookup to target/doc/stylo * Remove dependency on vendored mako in favour of pypi dependency This also removes etc/ci/generate_workflow.py, which has been unused since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f. * Add temporary code to debug Windows test failures * Fix failures on Windows due to custom target dir * Update commit to include servo/stylo#3 * Fix license in tests/unit/style/build.rs * Document how to build with local Stylo in Cargo.toml
* style: Remove dependency on servo_url (#31358)Martin Robinson2024-02-162-11/+14
| | | | | In order for stylo to be a separate crate, it needs to depend on less things from Servo. This change makes it so that stylo no longer depends on servo_url.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-112-7/+8
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-082-7/+5
| | | | | | | | | | | * 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>
* Start the transition to workspace dependenciesMartin Robinson2023-05-171-4/+4
| | | | | | | 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.
* Fix some build warningsMartin Robinson2023-01-111-3/+1
| | | | | | | | - Mark some instances of unused fields and variables as as allowed, when they are used for memory management. - Remove the use of some deprecated function.s Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* feat: shorten thread namesyvt2021-07-191-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-0/+4
|
* Update referrer computationUtsav Oza2020-07-021-1/+21
| | | | | | | | Update unit tests for determine_requests_referrer Update wpt metadata Add missing spec links
* style: Miscellaneous servo build fixes.Emilio Cobos Álvarez2020-06-041-2/+1
|
* More Cargo.toml updatesatouchet2020-05-311-4/+4
|
* make is_origin_trustworthy a method of ServoUrl + fix localhost handlingAlexandrov Sergey2020-05-191-0/+26
|
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-1/+1
|
* Add useful debug output for HTTP response and image cache.Josh Matthews2019-10-041-1/+2
|
* Double key image cache by requesting origin, and store CORS status with ↵Josh Matthews2019-10-041-2/+2
| | | | cached images.
* Remove unused dependenciesShotaro Yamada2019-10-011-1/+0
|
* Update to url 2.0Simon Sapin2019-08-173-30/+3
|
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-122-0/+10
|
* Auto merge of #22740 - Hyperion101010:master, r=jdmbors-servo2019-01-281-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Truncate debug output for long data URLs #22485 I tried to solve the patch, here i did what you told but i am not getting the exact result after the build can you take a look <!-- 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 - [ ] These changes fix #22485 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [x] 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. --> <!-- 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/22740) <!-- Reviewable:end -->
| * Don't convert hash to string.Josh Matthews2019-01-281-1/+1
| |
| * Use hex for debug url hash.Josh Matthews2019-01-281-1/+1
| |
| * Truncate long URLs when doing debug printshyperion1010102019-01-291-0/+8
| | | | | | | | I added the required changes on debug in lib.rs file, you can have a review
* | Update references to malloc_size_of_derive, which is in crates.io now.Emilio Cobos Álvarez2019-01-131-1/+1
|/
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-192-2/+2
|
* Update uuidBastien Orivel2018-11-091-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-082-3/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-4/+1
|
* Reorder importsPyfisch2018-11-061-3/+3
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-0/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Remove Origin::unicode_serializationBastien Orivel2018-10-121-5/+0
| | | | Fixes #20701
* Format component of urlchansuke2018-09-052-15/+25
|
* Fix building servo_url by itselfSimon Sapin2018-04-191-2/+2
| | | | Fix #20664
* Bump ipc-channel and bincodeBastien Orivel2018-03-212-3/+2
| | | | This required bumping uuid too which unfortunately duplicated rand.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-183-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-2/+2
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* order derivable traits listsClément DAVID2017-08-232-3/+3
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* style: Introduce Chrome UI privilege for parsersTing-Yu Lin2017-08-031-0/+4
| | | | | | | | | | | The motivation is that Chrome XBL stylesheets can be parsed under author level, but we allow some event-state pseudo classes like :-moz-handled-clicktoplay to be used. Also synchronize the privilege of pseudo classes in non_ts_pseudo_class_list.rs and nsCSSPseudoClassList.h (except :fullscreen). MozReview-Commit-ID: 8fUjjC8hbQO
* UntrySimon Sapin2017-06-181-1/+1
|
* Remove explicit dependencies on serde_deriveSimon Sapin2017-06-162-3/+1
|
* Bump serde to 1.0Bastien Orivel2017-06-162-6/+6
|
* Bump euclid to 0.13 and heapsize to 0.4Bastien Orivel2017-06-051-1/+1
|
* Remove servo feature from servo_urlXidorn Quan2017-04-073-29/+17
|
* Remove some useless Option<T> wrappers from ServoUrl methodsAnthony Ramine2017-03-261-10/+8
|
* Make ServoUrl::as_url return a &UrlAnthony Ramine2017-03-231-2/+2
|
* Added some same-origin-domain checks.Alan Jeffrey2017-03-141-0/+2
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-223-6/+188
|
* Update serde to 0.9 (fixes #15325)Anthony Ramine2017-02-182-9/+24
|