README 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. When updating src/net/base/registry_controlled_domains/effective_tld_names.dat:
  2. 1. Obtain the new effective_tld_names.dat, probably by downloading
  3. https://publicsuffix.org/list/public_suffix_list.dat
  4. 2. Remove whitespace from the ends of the lines.
  5. You could possibly use something like:
  6. sed -i -e "s/\s*$//g" \
  7. src/net/base/registry_controlled_domains/effective_tld_names.dat
  8. 3. Add the Chromium note back in just after the license at the top, and just
  9. before '===BEGIN ICANN DOMAINS==='. Ensure there is an empty line above and
  10. two empty lines below the note. The note should say:
  11. // Chromium note: this is based on Mozilla's file:
  12. // https://publicsuffix.org/list/public_suffix_list.dat
  13. 4. Diff the changes and restore any changes annotated with a "// CHROMIUM"
  14. comment.
  15. 5. Build tld_cleanup (the "(net)" > "tld_cleanup" project)
  16. 6. Run it (no arguments needed), typically from src/build/Release or
  17. src/build/Debug. It will re-generate
  18. src/net/base/registry_controlled_domains/effective_tld_names.gperf.
  19. 7. Check in the updated effective_tld_names.dat, effective_tld_names.gperf
  20. Note that gperf is no longer used for effective_tld_names, but when building
  21. chromium the file effective_tld_names.gperf will be parsed by make_dafsa.py
  22. to generate the file effective_tld_names-inc.cc, which is included in
  23. registry_controlled_domain.cc