Remove deprecated appending of #-moz-resolution from Pale Moon and left over from nsMediaFragmentURIParser.h

This also magically makes Aero Peek work properly with Pale Moon thus:

Resolves #809
pull/7/head
Matt A. Tobin 3 years ago committed by Roy Tam
parent 84bfab4f70
commit cc3e413793
  1. 7
      application/palemoon/base/content/tabbrowser.xml
  2. 7
      application/palemoon/components/places/PlacesUIUtils.jsm
  3. 5
      application/palemoon/components/search/content/search.xml
  4. 1
      netwerk/base/nsMediaFragmentURIParser.h

@ -831,13 +831,8 @@
}
let sizedIconUrl = browser.mIconURL || "";
if (sizedIconUrl) {
let size = Math.round(16 * window.devicePixelRatio);
sizedIconUrl += (sizedIconUrl.includes("#") ? "&" : "#") +
"-moz-resolution=" + size + "," + size;
}
if (sizedIconUrl != aTab.getAttribute("image")) {
if (browser.mIconURL)
if (sizedIconUrl)
aTab.setAttribute("image", sizedIconUrl);
else
aTab.removeAttribute("image");

@ -1170,11 +1170,8 @@ this.PlacesUIUtils = {
* @return The URL with the fragment at the end
*/
getImageURLForResolution:
function PUIU_getImageURLForResolution(aWindow, aURL, aWidth = 16, aHeight = 16) {
let width = Math.round(aWidth * aWindow.devicePixelRatio);
let height = Math.round(aHeight * aWindow.devicePixelRatio);
return aURL + (aURL.includes("#") ? "&" : "#") +
"-moz-resolution=" + width + "," + height;
function PUIU_getImageURLForResolution(aWindow, aURL, aWidth, aHeight) {
return aURL;
}
};

@ -283,11 +283,6 @@
<parameter name="element"/>
<parameter name="uri"/>
<body><![CDATA[
if (uri) {
let size = Math.round(16 * window.devicePixelRatio);
if (!uri.includes("#"))
uri += "#-moz-resolution=" + size + "," + size;
}
element.setAttribute("src", uri);
]]></body>
</method>

@ -89,7 +89,6 @@ private:
bool ParseNPTMM(nsDependentSubstring& aString, uint32_t& aMinute);
bool ParseNPTSS(nsDependentSubstring& aString, uint32_t& aSecond);
bool ParseXYWH(nsDependentSubstring aString);
bool ParseMozResolution(nsDependentSubstring aString);
bool ParseMozSampleSize(nsDependentSubstring aString);
// Media fragment information.

Loading…
Cancel
Save