mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
fixup: Enable viewport <meta> tag support for mobile platforms only (#39207)
1. Adds a pref viewport_meta_enabled. 2. Enable pref for mobile platforms. Testing: Tested Manually Fixes: #39157 Fixes: #39002 --------- Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
e6d46fb9f3
commit
dfdcba88d4
4 changed files with 17 additions and 6 deletions
|
@ -264,7 +264,8 @@ pub struct Preferences {
|
|||
/// The user-agent to use for Servo. This can also be set via [`UserAgentPlatform`] in
|
||||
/// order to set the value to the default value for the given platform.
|
||||
pub user_agent: String,
|
||||
|
||||
/// Whether or not the viewport meta tag is enabled.
|
||||
pub viewport_meta_enabled: bool,
|
||||
pub log_filter: String,
|
||||
}
|
||||
|
||||
|
@ -431,6 +432,7 @@ impl Preferences {
|
|||
threadpools_webrender_workers_max: 4,
|
||||
webgl_testing_context_creation_error: false,
|
||||
user_agent: String::new(),
|
||||
viewport_meta_enabled: false,
|
||||
log_filter: String::new(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue