aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/urlhelper.rs
Commit message (Collapse)AuthorAgeFilesLines
* script: Limit public exports. (#34915)Josh Matthews2025-01-101-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * script: Restrict reexport visibility of DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Mass pub->pub(crate) conversion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Hide existing dead code warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix unit tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * More formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-2/+4
| | | | | * strict imports formatting * Reformat all imports
* make is_origin_trustworthy a method of ServoUrl + fix localhost handlingAlexandrov Sergey2020-05-191-19/+0
|
* Update checking origin trustworthy align to specCYBAI2020-04-131-2/+7
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Remove some useless Option<T> wrappers from ServoUrl methodsAnthony Ramine2017-03-261-27/+9
|
* Make ServoUrl::as_url return a &UrlAnthony Ramine2017-03-231-11/+11
|
* Fix some warnings.Ms2ger2017-01-101-3/+0
|
* Initial work on job queues for service workersRahul Sharma2016-11-221-0/+14
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-22/+83
|
* Made fixes for PR.Arthur Marble2016-09-181-21/+21
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-21/+21
|
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-157/+22
|
* Implement HTMLHyperlinkElementUtils for HTMLAnchorElementJaydeep2016-03-241-0/+5
|
* add origin to location and url apiChandler Abraham2016-01-211-1/+29
|
* Update URL-related interfaces and their tests up to specAnthony Ramine2015-10-191-19/+0
| | | | | | | | | The URL spec recently changed and the variour "mixins" interfaces are gone, this commit updates our code and WPT accordingly. The new expected failures related to HTMLAnchorElement and HTMLAreaElement's attributes are due to their moving to the HTMLHyperLinkElementUtils interface, which is not anymore in a separate <script class=untested> element.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Implement setters in URLUtilsAnthony Ramine2015-08-301-2/+57
|
* Cleanup NodeIterator, Range, ServoHTMLParser, TextEncoder, URLHelper, URL, ↵Manish Goregaokar2015-08-181-1/+1
| | | | VirtualMethods
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Implement URL and trivially missing URLUtils membersAnthony Ramine2015-06-201-14/+57
| | | | Fixes #6322.
* Remove as_slice() calls from script.Ms2ger2015-04-261-2/+2
|
* Add/update comments with links to specCorey Farwell2015-04-141-2/+5
| | | | | | | | | | Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable
* Update some URLs.Ms2ger2015-04-141-1/+1
| | | | | The HTML spec's division into pages is not stable, so it is safer to use the URL without a specific page (which will redirect).
* add readonly pathname function in locationyodalee2015-04-041-1/+10
| | | | | pathname function implemented in UrlHelper 'url is null' check is skip for now
* Use USVString for URLUtils and URLUtilsReadOnly.Ms2ger2015-03-131-9/+10
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Move to to_owned rather than into_string.Ms2ger2015-01-201-4/+6
| | | | into_string has been removed from Rust.
* script: to_string() -> into_string()Manish Goregaokar2014-12-271-4/+4
|
* Add contentDocument support for HTMLIFrameElement. Fixes #3808.Tomasz Kołodziejski2014-11-131-0/+14
|
* Upgrade to rustc d2b30f7d3 2014-09-23Simon Sapin2014-09-291-2/+2
|
* Share code between Navigator and WorkerNavigatorGilles Leblanc2014-09-201-0/+30
Also shares code between Location and WorkerLocation. This has been done by introducing NavigatorInfo and UrlHelper. Fixes #3159