Bug 1662671 - Remove css for adding an unused resize property for Windows, r=NeilDeakin,remote-protocol-reviewers,maja_zf

Before Quantum, we needed resizer icon on Windows, because when the
add-on statusbar was hidden, we could not resize the window. This is not
needed anymore and is dead code. Consequentially, this also helps reduce
unused images loaded at startup time.

Differential Revision: https://phabricator.services.mozilla.com/D91196
This commit is contained in:
Anny G 2020-09-25 00:10:23 +00:00
parent cc04d2696e
commit b6286bd455
4 changed files with 2 additions and 10 deletions

View File

@ -57,11 +57,6 @@ const knownUnshownImages = [
intermittentShown: ["win", "linux"],
},
{
file: "chrome://global/skin/icons/resizer.svg",
platforms: ["win"],
},
{
file: "chrome://browser/skin/window-controls/maximize.svg",
platforms: ["win"],

View File

@ -92,7 +92,7 @@ var RequestWatcher = {
// have the flag, so we just ignore them.
// We also see, eg, resource://gre-resources/loading-image.png, so
// skip resource:// URLs too.
// We may also see, eg, chrome://global/skin/icons/resizer.svg, so
// We may also see, eg, chrome://browser/skin/chevron.svg, so
// skip chrome:// URLs too.
if (req.name.startsWith("about:") || req.name.startsWith("resource:") ||
req.name.startsWith("chrome:") || req.name.startsWith("documentchannel:")) {

View File

@ -254,9 +254,6 @@
*|*::-moz-viewport-scroll {
overflow: auto;
%ifdef XP_WIN
resize: both;
%endif
}
*|*::-moz-column-set,

View File

@ -78,7 +78,7 @@ function checkLoadFlags(flags, url) {
// have the flag, so we just ignore them.
// We also see, eg, resource://gre-resources/loading-image.png, so
// skip resource:// URLs too.
// We may also see, eg, chrome://global/skin/icons/resizer.svg, so
// We may also see, eg, chrome://browser/skin/chevron.svg, so
// skip chrome:// URLs too.
if (
request.name.startsWith("about:") ||