gecko/layout
Gabriel Ivăncescu 335da24386
Allow unescaped invalid URL chars in non-stringed CSS url() for IE7 and below.
With changes by: Jacek Caban <jacek@codeweavers.com>

IE7 and below parse unescaped chars (such as whitespace) of urls without
string as part of the url, unlike IE8+ which are spec compliant. So
url(file:///C:/a b/blah.jpg) and url(C:\\c d\\foo.png) both work but only
in IE7 and below modes, without having to escape the space with backslash
or enclosing the url in quotes. The launcher for Imperiums: Greek Wars
depends on this.

Note that on native it's not spaces that are special, but rather it looks
up until the closing parenthesis (unless it is escaped via backslash). For
example, even unescaped newline is processed as part of url:

background:url(
); background-color: black;

...sets it to black, but:

background:url(
; background-color: black;

...does not since it's invalid.

For some reason escaping a space via backslash `\ ` does not function as it
should, but others do (such as parentheses). The game's launcher actually
uses Regex.Escape(text).Replace("\ ", " "), so this is probably something
special there.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-02-22 18:13:25 +02:00
..
base Add XPCOM listener for MediaQueryList. 2022-07-28 21:08:06 +03:00
build Merge branch 'mozilla-central' 2016-03-06 06:37:22 +01:00
doc
forms Bug 1273129 - Fix typo from physical to logical conversion (in bug 1113206). r=jfkthame a=ritu 2016-05-18 18:21:41 +02:00
generic Bug 1293001 - Part 1: Change the BinaryName of nsIFrameLoaderOwner::frameLoader (which overloaded another virtual method) to FrameLoaderXPCOM, r=froydnj 2020-11-25 20:17:10 +01:00
inspector Bug 1268749 part 2 - Make pseudo-classes able to present conditionally like properties. r=heycam a=ritu 2016-05-13 21:17:53 +10:00
ipc Remove some static_casting in CompositorParent. (bug 1245765 part 5, r=mattwoodrow) 2016-02-29 01:53:14 -05:00
mathml Bug 1240799 - Apply axis height for mfrac elements without bar. r=fredw 2016-02-20 02:59:00 +01:00
media
printing Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
reftests Run 2to3 on source tree. 2019-09-06 15:43:04 +02:00
style Allow unescaped invalid URL chars in non-stringed CSS url() for IE7 and below. 2023-02-22 18:13:25 +02:00
svg Bug 1258843 - Don't build SVG display items if their visibility is hidden. r=dholbert, a=ritu 2016-04-01 14:36:46 +13:00
tables Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert 2016-02-24 18:01:11 +11:00
tools reftest: Explicitly specify utf8 file encoding. 2019-09-06 15:43:34 +02:00
xul Bug 1197913 - Keep the last hovered item highlighted after moving the cursor outside the <select> drop-down list on Windows. r=neil, a=ritu 2016-03-25 17:10:16 +08:00
moz.build