diff --git a/rpm/0091-sailfishos-gecko-removed-special-desktop-viewport.patch b/rpm/0091-sailfishos-gecko-removed-special-desktop-viewport.patch new file mode 100644 index 0000000000000..3dadb0bb0f6d7 --- /dev/null +++ b/rpm/0091-sailfishos-gecko-removed-special-desktop-viewport.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: andrew-korolev-omp +Date: Fri, 25 Feb 2022 14:54:47 +0300 +Subject: [PATCH] removed setting special viewport in desktop mode + +--- + dom/base/Document.cpp | 14 -------------- + 1 file changed, 14 deletions(-) + +diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp +index 132c0ecbfdac..5ad2078ea506 100644 +--- a/dom/base/Document.cpp ++++ b/dom/base/Document.cpp +@@ -9515,20 +9515,6 @@ nsViewportInfo Document::GetViewportInfo(const ScreenIntSize& aDisplaySize) { + CSSToScreenScale defaultScale = + layoutDeviceScale * LayoutDeviceToScreenScale(1.0); + +- // Special behaviour for desktop mode, provided we are not on an about: page +- nsPIDOMWindowOuter* win = GetWindow(); +- if (win && win->IsDesktopModeViewport() && !IsAboutPage()) { +- CSSCoord viewportWidth = +- StaticPrefs::browser_viewport_desktopWidth() / fullZoom; +- CSSToScreenScale scaleToFit(aDisplaySize.width / viewportWidth); +- float aspectRatio = (float)aDisplaySize.height / aDisplaySize.width; +- CSSSize viewportSize(viewportWidth, viewportWidth * aspectRatio); +- ScreenIntSize fakeDesktopSize = RoundedToInt(viewportSize * scaleToFit); +- return nsViewportInfo(fakeDesktopSize, scaleToFit, +- nsViewportInfo::ZoomFlag::AllowZoom, +- nsViewportInfo::ZoomBehaviour::Mobile); +- } +- + if (!nsLayoutUtils::ShouldHandleMetaViewport(this)) { + return nsViewportInfo(aDisplaySize, defaultScale, + nsLayoutUtils::AllowZoomingForDocument(this) +-- +2.25.1 + diff --git a/rpm/xulrunner-qt5.spec b/rpm/xulrunner-qt5.spec index d3384fbd3a6f4..309293edb564a 100644 --- a/rpm/xulrunner-qt5.spec +++ b/rpm/xulrunner-qt5.spec @@ -145,6 +145,7 @@ Patch87: 0087-sailfishos-gecko-Fix-memory-reporting-of-wasm-memory.patch Patch88: 0088-Revert-Bug-1611386-Drop-support-for-enable-system-sq.patch Patch89: 0089-sailfishos-gecko-Add-a-video-decoder-based-on-gecko-.patch Patch90: 0090-sailfishos-gecko-Disable-debug-info-for-rust.patch +Patch91: 0091-sailfishos-gecko-removed-special-desktop-viewport.patch #Patch20: 0020-sailfishos-loginmanager-Adapt-LoginManager-to-EmbedL.patch #Patch51: 0051-sailfishos-gecko-Remove-android-define-from-logging.patch