summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-05-12 21:00:32 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-05-12 21:00:32 -0400
commitc7dc667e614cbff35c0d76d3647fde81f7192184 (patch)
treec42b2536b98d634d30463443de97d1bf1ee9718a
parent70c5719dc53aa674fea234a2a5914a4add762974 (diff)
downloadUXP-c7dc667e614cbff35c0d76d3647fde81f7192184.tar
UXP-c7dc667e614cbff35c0d76d3647fde81f7192184.tar.gz
UXP-c7dc667e614cbff35c0d76d3647fde81f7192184.tar.lz
UXP-c7dc667e614cbff35c0d76d3647fde81f7192184.tar.xz
UXP-c7dc667e614cbff35c0d76d3647fde81f7192184.zip
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
-rw-r--r--application/palemoon/base/content/tabbrowser.xml7
-rw-r--r--application/palemoon/components/places/PlacesUIUtils.jsm7
-rw-r--r--application/palemoon/components/search/content/search.xml5
-rw-r--r--netwerk/base/nsMediaFragmentURIParser.h1
4 files changed, 3 insertions, 17 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml
index 6555d3071..aa1a89200 100644
--- a/application/palemoon/base/content/tabbrowser.xml
+++ b/application/palemoon/base/content/tabbrowser.xml
@@ -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");
diff --git a/application/palemoon/components/places/PlacesUIUtils.jsm b/application/palemoon/components/places/PlacesUIUtils.jsm
index 05d79241c..e3a9e1322 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 4532f5720..0c33b1527 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>
diff --git a/netwerk/base/nsMediaFragmentURIParser.h b/netwerk/base/nsMediaFragmentURIParser.h
index acfa1d5fe..14ca60f53 100644
--- a/netwerk/base/nsMediaFragmentURIParser.h
+++ b/netwerk/base/nsMediaFragmentURIParser.h
@@ -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.