mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1084321 - Remove b2g app meta viewport work-around. r=kats
This commit is contained in:
parent
a71d5a2b67
commit
1c20abb60f
@ -7655,32 +7655,6 @@ nsDocument::GetViewportInfo(const ScreenIntSize& aDisplaySize)
|
||||
/*allowZoom*/true,
|
||||
/*allowDoubleTapZoom*/false);
|
||||
}
|
||||
|
||||
// Bug 940036. This is bad. When FirefoxOS was built, apps installed
|
||||
// where not using the AsyncPanZoom code. As a result a lot of apps
|
||||
// in the marketplace does not use it yet and instead are built to
|
||||
// render correctly in FirefoxOS only. For a smooth transition the above
|
||||
// code force installed apps to render as if they have a viewport with
|
||||
// content="width=device-width, height=device-height, user-scalable=no".
|
||||
// This could be safely remove once it is known that most apps in the
|
||||
// marketplace use it and that users does not use an old version of the
|
||||
// app that does not use it.
|
||||
nsCOMPtr<nsIDocShell> docShell(mDocumentContainer);
|
||||
if (docShell && docShell->GetIsApp()) {
|
||||
nsString uri;
|
||||
GetDocumentURI(uri);
|
||||
if (!uri.EqualsLiteral("about:blank")) {
|
||||
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag,
|
||||
NS_LITERAL_CSTRING("DOM"), this,
|
||||
nsContentUtils::eDOM_PROPERTIES,
|
||||
"ImplicitMetaViewportTagFallback");
|
||||
}
|
||||
mViewportType = DisplayWidthHeightNoZoom;
|
||||
return nsViewportInfo(aDisplaySize,
|
||||
defaultScale,
|
||||
/*allowZoom*/false,
|
||||
/*allowDoubleTapZoom*/false);
|
||||
}
|
||||
}
|
||||
|
||||
nsAutoString minScaleStr;
|
||||
|
Loading…
Reference in New Issue
Block a user