mirror of
https://github.com/servo/servo.git
synced 2025-09-10 15:08:21 +01:00
Enable viewport <meta>
tag support for mobile platforms only (#39133)
Enable viewport `<meta>` tag support for mobile platforms only. _Reference:_ [web_preferences.h](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/common/web_preferences/web_preferences.h;l=158?) _Todo: Enable for when requested desktop site:_ [web_contents_impl.cc](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/web_contents/web_contents_impl.cc;l=3752?) Testing: Tested Manually Fixes: #39002 Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
parent
c7ca281f44
commit
40ced5bb61
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ impl HTMLMetaElement {
|
||||||
if name == "referrer" {
|
if name == "referrer" {
|
||||||
self.apply_referrer();
|
self.apply_referrer();
|
||||||
}
|
}
|
||||||
if name == "viewport" {
|
if (cfg!(target_os = "android") || cfg!(target_os = "ios") || cfg!(target_env = "ohos")) &&
|
||||||
|
name == "viewport"
|
||||||
|
{
|
||||||
self.parse_and_send_viewport_if_necessary();
|
self.parse_and_send_viewport_if_necessary();
|
||||||
}
|
}
|
||||||
// https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv
|
// https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue