forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1502097 - (Part 1) Move pref network.IDN.blacklist_chars to separ…
…ate hardcoded file IDNCharacterBlocklist.inc r=jfkthame,dragana * Moves the value of the pref and also the fallback definition in nsTextToSubURI.cpp to a separate file. * The file has better formatting, so we may follow its history more easily. Each range of consecutive values is defined on a separate line. * Renames `blacklist` to `blocklist` for pref and variable names (for this individual pref. network.IDN.whitelist.* needs to be handled in a separate bug) * Changes nsIDNService::mIDNBlocklist from being an nsString to sorted nsTArray<char16> and uses mozilla::BinarySearch() to check for characters. Differential Revision: https://phabricator.services.mozilla.com/D12209 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
9 changed files
with
172 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// ASCII Space | ||
0x0020, | ||
0x00A0, | ||
0x00BC, 0x00BD, 0x00BE, | ||
0x01C3, | ||
0x02D0, | ||
0x0337, 0x0338, | ||
0x0589, 0x058A, | ||
0x05C3, | ||
0x05F4, | ||
0x0609, 0x060A, | ||
0x066A, | ||
0x06D4, | ||
0x0701, 0x0702, 0x0703, 0x0704, | ||
0x115F, 0x1160, | ||
0x1735, | ||
0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, | ||
0x200E, 0x200F, 0x2010, | ||
0x2019, | ||
0x2024, | ||
0x2027, 0x2028, 0x2029, 0x202A, 0x202B, 0x202C, 0x202D, 0x202E, 0x202F, | ||
0x2039, 0x203A, | ||
0x2041, | ||
0x2044, | ||
0x2052, | ||
0x205F, | ||
0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215A, 0x215B, 0x215C, 0x215D, 0x215E, 0x215F, | ||
0x2215, | ||
0x2236, | ||
0x23AE, | ||
0x2571, | ||
0x29F6, | ||
0x29F8, | ||
0x2AFB, | ||
0x2AFD, | ||
0x2FF0, 0x2FF1, 0x2FF2, 0x2FF3, 0x2FF4, 0x2FF5, 0x2FF6, 0x2FF7, 0x2FF8, 0x2FF9, 0x2FFA, 0x2FFB, | ||
// Ideographic Space | ||
0x3000, | ||
0x3002, | ||
0x3014, 0x3015, | ||
0x3033, | ||
0x30A0, | ||
0x3164, | ||
0x321D, 0x321E, | ||
0x33AE, 0x33AF, | ||
0x33C6, | ||
0x33DF, | ||
0xFE14, 0xFE15, | ||
0xFE3F, | ||
0xFE5D, 0xFE5E, | ||
0xFEFF, | ||
0xFF0E, 0xFF0F, | ||
0xFF61, | ||
0xFFA0, | ||
0xFFF9, 0xFFFA, 0xFFFB, 0xFFFC, 0xFFFD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters