diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-05-12 21:00:32 -0400 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-13 12:51:22 +0200 |
commit | dabd43c914c826c8cb66b6b224c5581256cb6f05 (patch) | |
tree | 0c27e17780a6d4dbfcbdd0e675e0f9441d6a6c30 /application | |
parent | 25494e6c782e97bf1029824066644918491c3cbb (diff) | |
download | uxp-dabd43c914c826c8cb66b6b224c5581256cb6f05.tar.gz |
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
Diffstat (limited to 'application')
-rw-r--r-- | application/palemoon/base/content/tabbrowser.xml | 7 | ||||
-rw-r--r-- | application/palemoon/components/places/PlacesUIUtils.jsm | 7 | ||||
-rw-r--r-- | application/palemoon/components/search/content/search.xml | 5 |
3 files changed, 3 insertions, 16 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index d9366f488c..81fc33b3ee 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -823,13 +823,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"); diff --git a/application/palemoon/components/places/PlacesUIUtils.jsm b/application/palemoon/components/places/PlacesUIUtils.jsm index 05d79241ce..e3a9e13220 100644 --- a/application/palemoon/components/places/PlacesUIUtils.jsm +++ b/application/palemoon/components/places/PlacesUIUtils.jsm @@ -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; } }; diff --git a/application/palemoon/components/search/content/search.xml b/application/palemoon/components/search/content/search.xml index 4532f5720c..0c33b15278 100644 --- a/application/palemoon/components/search/content/search.xml +++ b/application/palemoon/components/search/content/search.xml @@ -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> |