mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 998372 - part 4 - explain the escape-fest in permissions.py better; r=jmaher
This commit is contained in:
parent
5976c9aa57
commit
9dcdd5ca78
@ -304,9 +304,13 @@ class Permissions(object):
|
||||
proxy.update(user_proxy)
|
||||
|
||||
# TODO: this should live in a template!
|
||||
# TODO: So changing the 5th line of the regex below from (\\\\\\\\d+)
|
||||
# to (\\\\d+) makes this code work. Not sure why there would be this
|
||||
# difference between automation.py.in and this file.
|
||||
# If you must escape things in this string with backslashes, be aware
|
||||
# of the multiple layers of escaping at work:
|
||||
#
|
||||
# - Python will unescape backslashes;
|
||||
# - Writing out the prefs will escape things via JSON serialization;
|
||||
# - The prefs file reader will unescape backslashes;
|
||||
# - The JS engine parser will unescape backslashes.
|
||||
pacURL = """data:text/plain,
|
||||
var knownOrigins = (function () {
|
||||
return [%(origins)s].reduce(function(t, h) { t[h] = true; return t; }, {})
|
||||
|
Loading…
Reference in New Issue
Block a user