aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/navigatorinfo.rs
Commit message (Collapse)AuthorAgeFilesLines
* libservo: Remove a couple `EmbedderMethods` (#36276)Martin Robinson2025-04-011-4/+2
| | | | | | | | | | | | | | | | | | | | | | | - Remove `EmbedderMethods::get_user_agent_string`. This is now part of the `Preferences` data structure, which should allow it to be per-`WebView` in the future. - Remove `EmbedderMethods::get_version_string`. This was used to include some data along with WebRender captures about the Servo version. This isn't really necessary and it was done to replace code in the past that output the WebRender version, so also isn't what the original code did. I think we can just remove this entirely. The idea with these changes is that `EmbedderMethods` can be removed in a followup and the rest of the methods can be added to `ServoDelegate`. These two methods are ones that cannot be added to a delegate as they are used during `Servo` initialization. Testing: There is currently no testing for libservo. These changes are meant as preparation for adding a suite of `WebView` unit tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* script: Limit public exports. (#34915)Josh Matthews2025-01-101-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1/+2
| | | | | * strict imports formatting * Reformat all imports
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+14
|
* Script: removed a few opts::get()oneturkmen2019-06-261-3/+3
|
* Added missing NavigatorId attributesAlan Jeffrey2019-06-111-0/+12
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* First step toward iOS SupportJonathan Jayet2017-08-231-0/+5
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* implements NavigatorLanguageRahul Sharma2016-03-171-0/+4
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-9/+8
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-8/+8
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* implement navigator.platformPaul Rouget2015-09-291-1/+12
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Add a simple method to emulate a platform UA (e.g. pretend a desktop build ↵Glenn Watson2015-08-181-4/+1
| | | | is an android UA).
* Implement Navigator.appVersion(#5409)Deokjin Kim2015-04-011-0/+4
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-2/+2
| | | | | | | | 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-5/+7
| | | | into_string has been removed from Rust.
* Remove the NavigatorInfo struct.Ms2ger2015-01-091-23/+19
| | | | It serves no purpose.
* script: to_string() -> into_string()Manish Goregaokar2014-12-271-5/+5
|
* Expose user agent option to DOM navigator interface.Glenn Watson2014-10-131-0/+8
|
* Share code between Navigator and WorkerNavigatorGilles Leblanc2014-09-201-0/+29
Also shares code between Location and WorkerLocation. This has been done by introducing NavigatorInfo and UrlHelper. Fixes #3159