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
This commit is contained in:
Matt A. Tobin 2019-05-12 21:00:32 -04:00 • committed by Roy Tam
commit cc3e413793
4 changed files with 3 additions and 17 deletions

View file

@ -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");